Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot get Command Object to Detect @TEXT parameter
Message
From
26/11/2001 07:15:34
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Title:
Cannot get Command Object to Detect @TEXT parameter
Miscellaneous
Thread ID:
00585670
Message ID:
00585670
Views:
28
I have a stored procedure which I am passing in a parameter which is specified as text. The problem is that the command object parameter object is not detecting the text field, the text field in my stored procedure is being interpreted as a varchar.

Any Ideas as what could be causing this.




CREATE PROCEDURE sp_Bannanas
@text text

as ....

I have a visual basic routine which populates a command parameters object i.e.
Set Qy = New ADODB.Command
Set objCN = New ADODB.Connection
objCN.Commandtimeout = Commandtimeout
objCN.CursorLocation = adUseClient
objCN.Open strDSN
Set Qy.ActiveConnection = objCN
Qy.Commandtimeout = Commandtimeout
Qy.CommandType = adCmdStoredProc
Qy.CommandText = "sp_Bannanas"

I then populate the command paramters e.g.
For Each param In parameters
If param.Type = adLongVarBinary Or param.Type = adLongVarWChar Then
AddChunk param, vntValue

end if
next

Regards

Mike
Next
Reply
Map
View

Click here to load this message in the networking platform