I have a stored procedure and my VB6 apps need to pass the parameter to it.
I need to pass Null value to a text(in T-sql), if I use:

Code:
Set prm5 = cmd.CreateParameter("@xmlStation", adLongVarChar, adParamInput, 0, null)
or

Code:
Set prm5 = cmd.CreateParameter("@xmlStation", adLongVarChar, adParamInput,  , null)
I get:

Code:
Parameter object is improperly defined. Inconsistent or incomplete information was provided.
Anyone knows?