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.
Author |
Topic |
Jayeeta Mitra
Starting Member
11 Posts |
Posted - 2008-03-10 : 15:00:33
|
How can I call a store procedure created in my database from .Net?Pls help. |
|
jsmith8858
Dr. Cross Join
7423 Posts |
|
Jayeeta Mitra
Starting Member
11 Posts |
Posted - 2008-03-10 : 15:45:59
|
just by searching google for some sql queries.anyway,thanks a lot |
|
|
osirisa
Constraint Violating Yak Guru
289 Posts |
Posted - 2008-03-12 : 12:47:56
|
Dim conString As String = "Data Source= "Your datasource- SQL Server" Security=SSPI;persist security info=False;" Dim sql As String = "exec sp_Your Stored procedure name" Dim sqlConnection As New SqlConnection(conString) Dim sqlCommand As New SqlCommand(sql, sqlConnection) sqlConnection.Open() sqlConnection.Close()Hope this help |
|
|
|
|
|