Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

DELETE * when using asp and MSSQL

Thread Tools
 
Search this Thread
 
Old 17 April 2004, 02:06 AM
  #1  
MaxPower2010
Scooby Newbie
Thread Starter
 
MaxPower2010's Avatar
 
Join Date: Jun 2003
Posts: 5
Likes: 0
Received 0 Likes on 0 Posts
Unhappy 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
Old 17 April 2004, 02:45 AM
  #2  
MaxPower2010
Scooby Newbie
Thread Starter
 
MaxPower2010's Avatar
 
Join Date: Jun 2003
Posts: 5
Likes: 0
Received 0 Likes on 0 Posts
Exclamation OK id made a mistake

Sorry seems the first method does work. but i named my dim incorrectly.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Darrell@Scoobyworx
Trader Announcements
26
30 January 2024 01:27 PM
Pro-Line Motorsport
Car Parts For Sale
48
21 July 2017 09:50 PM
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
Ganz1983
Subaru
5
02 October 2015 09:22 AM



Quick Reply: DELETE * when using asp and MSSQL



All times are GMT +1. The time now is 04:39 PM.