Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete record from the table
Message
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00752409
Message ID:
00752431
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>strSql='delete from CartDetail where ItemID = '+cStr(intItemID)
>set conn = Server.CreateObject("ADODB.Connection")
>conn.open "connection string"
>conn.execute sql, , &H00000080
>
>Question: If we don't have the specific ItemID to delete, what would happen?

What's the value of intItemID in this case?

> And how do we know, if the record was deleted or we didn't have this record to start from?
>
Try
strSql='delete from CartDetail where ItemID = '+cStr(intItemID)' +
  " SELECT @@RowCount"
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform