ShikkurDude
Programmer
I've declared two objects:
and passed them into a subroutine:
I'm getting the strangest error: [tt][SqlException: Line 1: Incorrect syntax near 'RequistionProducts_lst_Requistion'.][/tt]
This code is around line 200, not line 1... The SP seems to work fine in Query Analyzer with the same value for it's parameter...
Any ideas, please???
Thanks!
E.
Code:
Dim ds As New DataSet
Dim da As New SqlDataAdapter(cmDB)
Code:
Private Sub FillReqItemsDt(ByRef ds As DataSet, ByVal da As SqlDataAdapter)
Dim dtRequestedReqItems As New DataTable
cmDB.CommandText = "RequistionProducts_lst_Requistion"
cmDB.Parameters.Clear()
cmDB.Parameters.Add("@RequistionId", readyReq)
ds.Tables.Add(dtRequestedReqItems)
da.Fill(dtRequestedReqItems)
End Sub
This code is around line 200, not line 1... The SP seems to work fine in Query Analyzer with the same value for it's parameter...
Any ideas, please???
Thanks!
E.