Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Sending a SP a data to effect the result

Author  Topic 

yossibaram
Yak Posting Veteran

82 Posts

Posted - 2002-10-10 : 05:35:26
Hi,
I used to work with DAO and access and I used to do the following:
sSQL = "DELETE * FROM Product WHERE " & sFieldName & " = " & vValue
sFieldName is a variable that could be changed.
Using ADO, How can i do the same with a stored procedure?
Thanks
Yossi

smccreadie
Aged Yak Warrior

505 Posts

Posted - 2002-10-10 : 06:15:55
see dynamic sql and sp_execute_sql.

Go to Top of Page

ValterBorges
Master Smack Fu Yak Hacker

1429 Posts

Posted - 2002-10-10 : 19:16:09
Check Out
http://www.sqlteam.com/item.asp?ItemID=4599
http://www.sqlteam.com/item.asp?ItemID=4619

Go to Top of Page
   

- Advertisement -