You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to bulk insert a String into a VARCHAR(MAX), NVARCHAR(MAX) field, we get this error message.
CTDS version: 1.11.0
FreeTDS version: 1.00.80
Python 3.7
Windows 10 64 bit
Example:
CREATE TABLE dbo.Test
(
Id INT NOT NULL IDENTITY(1,1) PRIMARY KEY,
FancyCol INT NOT NULL,
[Value] NVARCHAR(MAX)
)
CREATE TABLE dbo.Test2
(
Id INT NOT NULL IDENTITY(1,1) PRIMARY KEY,
FancyCol INT NOT NULL,
[Value] NVARCHAR(4000)
)
Code to reproduce (sorry, really had problems to get the code properly formatted inside the Github Editor) test.txt
The text was updated successfully, but these errors were encountered:
gizmo93
changed the title
_tds.OperationalError: Received an invalid column length from the bcp client for colid 8.
_tds.OperationalError: Received an invalid column length from the bcp client for colid...
Feb 19, 2020
Hey, there are no problems with "normal" VARCHAR/NVARCHAR columns, they work as expected, if I wrap them in ctds.VarChar().
Problem seems to be only when trying to BULK INSERT into a VARCHAR/NVARCHAR (MAX) column.
Is there any solution / workaround for this?
When trying to bulk insert a String into a VARCHAR(MAX), NVARCHAR(MAX) field, we get this error message.
CTDS version: 1.11.0
FreeTDS version: 1.00.80
Python 3.7
Windows 10 64 bit
Example:
Code to reproduce (sorry, really had problems to get the code properly formatted inside the Github Editor)
test.txt
The text was updated successfully, but these errors were encountered: