Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Atena
Starting Member
1 Post |
Posted - 2009-12-04 : 05:06:00
|
| Hello. When I try and send astring that is over 4000 characters long from our program to the SQL Serverfor a stored procedure, I always get the following error :Implicit conversion from data type ntext to varchar is not allowed. Use theCONVERT function to run this query.If the string is less than 4000 characters, it goes over fine. What I amtrying to figure out is why/where the string is being converted from avarchar to a ntext datatype. In the stored procedure, the string is expectedin a varchar(8000) format, and the string is defiend as a JAVA string on theprogram side. Is it possible that the connection JDBC driver is converting thestring to ntext when over 4000 characters long?heer is my proc:CREATE PROCEDURE InsertData @fileID int, @firma VARCHAR(50), @listzw Varchar(8000)INSERT INTO firma ( [firma], [fileID], [list]) VALUES( @fileID , @firma , @listzw)list has also datatyp varchar(8000) Thanks! |
|
|
|
|
|