|
-
Sep 24th, 2000, 10:01 PM
#1
Thread Starter
New Member
can any one show me an example of delete function using stored procedure??
-
Sep 25th, 2000, 11:43 AM
#2
Do you mean Delete statement?
delete from tablename where col1 = "ABC"
-
Sep 25th, 2000, 08:28 PM
#3
Thread Starter
New Member
nope not that one, i mean calling a stored procedure which deletes a certain record, pls help.. thanks
-
Sep 26th, 2000, 10:42 AM
#4
First, Stored procedure to delete a row:
create procedure Procname
@colval varchar(10) as
delete from tablename where col1 = @colval
To execute the stored proc from your VB code:
dim conn as ADODB.Connection
Set conn = New ADODB.Connection
conn.ConnectionString = strConnectString ' specify your connect string
conn.Open
conn.execute "Procname 'ABC'",,adcmdStoredProc + adExecuteNoRecords
Hope this helps.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|