|
-
Aug 2nd, 2002, 06:51 AM
#1
Thread Starter
New Member
Stored Procedures
am using the below code to execute a normal statement, but now want to turn it into a stored procedure. I ahve written the syored procedure 'sp_showTasks' and need to pass a parameter to it. How do I convert the below code to work with the SP??
Dim nwindConn As SqlConnection = New SqlConnection(SQLCon)
nwindConn.Open()
Dim myCMD As SqlCommand = New SqlCommand("SELECT * FROM todo WHERE " & sqlStr & "", nwindConn)
Dim todo As SqlDataReader = myCMD.ExecuteReader()
Dim i = 0
Do While todo.Read()
loop
....................
Cheers
Tim
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|