I have created a stored procedure only with an insert statement in sql server 2005.
How can i call this stored procedure through code in ASP.NET page using vb.
i want to pass one parameter that comes from a text box in asp.net page.
my emailid is:g12garg@.yahoo.co.in pls reply.
Thank you
Gaurav
dim conn as new sqlconnection("Your connection string here")
dim cmd as new sqlcommand("Your stored procedure name here",conn)
cmd.CommandType=CommandType.StoredProcedure
cmd.parameters.add("@.Your parameter name here",Your parameter type here).value=your parameter value here
conn.open
cmd.executenonquery
conn.close
|||
Thank you.
Now i want to encrypt this passing value in the stored procedure. i want the encryption to be done in the stored procedure using symmetric key. So do i need to convert this value to varbinary in the stored procedure. or only in the table?
No comments:
Post a Comment