Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i m using storedprocedure and i m using visual studio 2010.when i try to add parameters then they tell me to add(system.data.sqlclient.sqlparameters).but i can't add this as namespace...so how can i pass parameteres in storedprocedure....help me..

thanx in advance....!!!
Posted
Comments
uspatel 3-Apr-12 1:24am    
can you share your code that you are using......

try by adding system.Data and System.Data.SqlClient namespaces.
 
Share this answer
 
In Solution Explorer, right-click the project node and click Add Reference.

In the Add Reference dialog box, select the tab indicating the type of component you want to reference.

Which in this instance will be System.Data.dll

Select the components you want to reference, and then click OK.
Then type out the type which is SqlParameter and press Ctrl + dot combined and there will be an option to resolve that types namespace.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900