Sunday, 28 April 2013

How does you call and execute a SP in .NET? | VB.Net Interview Questions

Using command object we can execute a SP. Instead of sqlquery we have to pass the SP Name.
[command.connection =connectionstring
command.commandType=commandType.storedProcedure
command.commandtext="sp_name"
command.executenonquery()]

No comments: