-2147217889 [ODBC SQL Server Driver] String Data, Right Truncation 
Author Message
 -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



Sun, 26 Jun 2005 12:58:31 GMT  
 -2147217889 [ODBC SQL Server Driver] String Data, Right Truncation


Fri, 19 Jun 1992 00:00:00 GMT  
 -2147217889 [ODBC SQL Server Driver] String Data, Right Truncation


Quote:
> 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

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.435 / Virus Database: 244 - Release Date: 30/12/2002


Sun, 26 Jun 2005 17:42:50 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. 01004 - 0 - [Microsoft][ODBC SQL Server Driver]String data, right truncation

2. VB Sql Server Via ADO Problem: [Microsoft][ODBC Sql Server Driver]

3. string truncation with crystal reports 8.5 and sql server 7

4. Insert date type varible through ODBC SQL server driver to SQL 7.0 database

5. Right String Truncation in SQLServer 2000

6. S1T00[Microsoft][ODBC SQL SERVER DRIVER] TIMEOUT EXPIRED ?????????

7. Error: 40002 - 01S03: [Microsoft][ODBC SQL Server Driver]No rows updated or deleted

8. Need faster ODBC drivers for VB-to-SQL Server

9. SQL Server ODBC Driver Error

10. Problems with ODBC drivers for SQL Server 6.5

11. Distribute SQL Server ODBC driver ?

12. S1T00[Microsoft][ODBC SQL SERVER DRIVER] TIMEOUT EXPIRED ????

 

 
Powered by phpBB® Forum Software