When I call a stored procedure, I combine the values together, my question is how do you call the stored procedure, but send the value "NULL" in one of the parameters?
Let's say that AID = null, but if I pass this to my request, I get an error message ?!
QueryConn.Execute("Search_Res " & Count & "," & AccessList("InvoiceLevel") & "," & AID)
Okay, so my next question will be how do I pass a boolean variable?
In my stored procedure, var @SearchChildren is either true or false, but how can I determine this or should I go with int and make things simple for myself and just use 0 or 1?
MS SQL Server 2005.
source share