Microsoft
Software
Hardware
Network
Question : asp.net .
the first ID is an Integer and match Equipment.ID = @ID this OK.
but the rest of the updates need the ID converted to a string
I Need a means to convert @ID to a string
UPDATE [Equipment] SET [IsLockedOut] = 'True', [LastLockOutDate] = GetDate() WHERE Equipment.ID = @ID
UPDATE [CustomerImages] Set [IsLockedOut] = 'True', [LastLockOutDate] = GetDate() WHERE [CustomerImages].[ImageId]
= @ID.ToString() + '%'
UPDATE [Radactive_ILoad_Images] Set [IsLockedOut] = 'True', [LastLockOutDate] = GetDate() WHERE [Radactive_ILoad_Images].[
ImageId] = @ID.ToString() + '%'
UPDATE [Radactive_ILoad_Indexes] Set [IsLockedOut] = 'True', [LastLockOutDate] = GetDate() WHERE [Radactive_ILoad_Indexes].
[ImageId] = @ID.ToString() + '%'"
Answer : asp.net .
I guess you also need like:
WHERE [CustomerImages].[ImageId]
= @ID.ToString() + '%'
-->
starts with:
WHERE [CustomerImages].[ImageId]
like '%' + cast(@ID as varchar) + '%'
or contains:
WHERE [CustomerImages].[ImageId]
like cast(@ID as varchar) + '%'
Random Solutions
Link to PDF files from DVD Menu
Firebox X500 - Where to start....
Resize multi select boxes in SharePoint form
Email sent to Tiscali email addresses bouncing with No PTR record error
Is there a funtion that if I use substr(col,1,1) will tell me where a value is not a character
Running RMI on Tomcat Servlet - How do I set up RMISecurityManager?
compareTo() - JavaScript example needed
Iphone Can't get Exchange mail on LAN but ok on 3G.
Code was working in Android 2.1 SDK but not on 2.2
‘Browse’ button component in jsf