DELETE * when using asp and MSSQL
#1
DELETE * when using asp and MSSQL
Ive finally worked out that DELETE * does not work in MSSQL from my asp pages. Does anyone know what the correct syntax is for deleting the whole record when you know the persons ID for example:
Record is:
Person ID : jim
age : 25
Address : henderson str
etc
When i do
objComm.CommandText = "DELETE FROM PersonDetails Where PID = '" & Pid & "' "
it does not work.
If i do
objComm.CommandText = "DELETE * FROM PersonDetails Where PID = '" & Pid & "' "
I get an error.
Any ideas?
Thanks
Record is:
Person ID : jim
age : 25
Address : henderson str
etc
When i do
objComm.CommandText = "DELETE FROM PersonDetails Where PID = '" & Pid & "' "
it does not work.
If i do
objComm.CommandText = "DELETE * FROM PersonDetails Where PID = '" & Pid & "' "
I get an error.
Any ideas?
Thanks
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM