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
How do i add a link to a favorite in outlook that will open the website within outlook?
how to change some user's password in Linux using a script (.sh or other)
SQL 2k Database restore using only MDF flies
Not receiving mail from some internal senders
Sybase Database truncate table issues
Enteprise Application Documentation Application
Need to Create A Form With 2 Actions.
APEX Applications using SSL
Windows Live Messenger XXXX is now friends with YYY
VirtualBox Guest-Guest networking