
-2147217889 [ODBC SQL Server Driver] String Data, Right Truncation
I tried to pass a text report to SQL Server DB by calling
a stored procedure from VB. The following code is
Dim cmd ADODB.command
Dim param As ADODB.Parameter
cmd.CommandText = "test_passed_text"
cmd.CommandType = adCmdStoredProc
Set param = New ADODB.Parameter
Set param = cmd.CreateParameter("TextReport", adBSTR,
adParamInput,64000,sTextReport)
cmd.Parameters.Append param
cmd.Execute
PS: sTextReport is a 29K report.
The stored procedure "test_passed_text" is
CREATE PROCEDURE test_passed_text
AS
RETURN
After running my VB code, I got an error message "-
2147217889 [ODBC SQL Server Driver] String Data, Right
Truncation".
I use VB6 running on Win2000 server with SQL2000. ADO is a
2.1 version.
Any idea???
Thanks
Shirley