SQLCmd is not recognized... what library does it need?

ismirnov

New member
Joined
Jul 19, 2011
Messages
2
Programming Experience
3-5
Hello,
I'm rather new to asp.net and vb.net. I'm trying to execute a stored procedure on itemdeleting event. When I use SQLCmd it is not recognized. What library should I include to make it work? Thanks so much!
 
sqlCmd does not exist - sqlCommand does.

You may be getting confused when creating a new object instance - I personally use sqlCmd as my instance identifier e.g

VB.NET:
Expand Collapse Copy
Dim sqlCmd as New sqlCommand(sqlStr, sqlConn)
 
Last edited:
Back
Top