|
Answer Posted: 18 Mar 2006
This is the answer in VB.NET. You should be able to convert it to C# easily.
Dim cmd As New OleDbCommand("DuplicateQuery") cmd.CommandType = CommandType.StoredProcedure cmd.Connection = New OleDbConnection("Your Connection String")
'If you have any parameters in the query, you set them up like this cmd.Parameters.Add("@Variable", OleDbType.VarChar).Value = DBNull.Value 'or the actul value
Dim ds As New DataSet Dim da As New OleDbDataAdapter(cmd) da.Fill(ds)
|