Pls give me a idea how to use stored procedure in .net...
whats the wrong in my code..................
Dim con1 As OleDbConnection
Dim cmd1 As OleDbCommand
Dim ds1 As New DataSet()
Dim str1 As String
str1 = "Provider=SQLOLEDB;Data Source=WIN2000\SQLANA;Initial Catalog=pubs;Integrated Security=SSIP"
cmd1.CommandText = "proc2"
con1 = New OleDbConnection(str1)
cmd1 = New OleDbCommand("Proc2", con1)
cmd1.CommandType = CommandType.StoredProcedure
con1.Open()
pls give me a idea soon....
Thank you
Satya
whats the wrong in my code..................
Dim con1 As OleDbConnection
Dim cmd1 As OleDbCommand
Dim ds1 As New DataSet()
Dim str1 As String
str1 = "Provider=SQLOLEDB;Data Source=WIN2000\SQLANA;Initial Catalog=pubs;Integrated Security=SSIP"
cmd1.CommandText = "proc2"
con1 = New OleDbConnection(str1)
cmd1 = New OleDbCommand("Proc2", con1)
cmd1.CommandType = CommandType.StoredProcedure
con1.Open()
pls give me a idea soon....
Thank you
Satya