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
CSS wrong MIME type in Firefox on Apache, AddType text/css .css is there
Cross-forest trust: The domain controllers required to find the selected objects in the following domains are not available
Excel Chart Library Development in VB.NET/C#
windrose chart in excel 2003/2007
Convert chinese caracters
Dell desktop will not boot
Voltage sensor detected a failure on DELL PowerEdge 2650 server
Wyse thin client and Citrix display/graphic lag
Unknown USB Device
I need to stop, then re-start, a thread in a web service using IIS