Open GoogleCodeExporter opened 9 years ago
Exactly how big, in bytes, is the value that fails?
I've updated the SQL Server unittests (tests2/sqlservertests) to include 'max'
tests for varchar, nvarchar, and binary and to include 5MB and 50MB inserts,
which work.
Original comment by mkleehammer
on 29 Sep 2012 at 3:06
Original comment by mkleehammer
on 29 Sep 2012 at 3:10
The imbBuffer.len property returns 2359350 which matches the 2,305KB size of
the file if I save it as a file. I also receive the error at 640x480 (921654
bytes)
If I reduce the size of the image to 320x420 which takes 230454 bytes the
script executes perfectly and SQL Server confirms that it stores the varbinary
data.
I also tested this on a completely separate machine with SQL Server 2012
Express with the same results.
Original comment by timothyawiseman@gmail.com
on 29 Sep 2012 at 6:22
[deleted comment]
And this is where I realize how I have been overlooking something obvious and
apologize for wasting your time. I work with numerous machines with several
versions of SQL Server, and it never occurred to me while I was troubleshooting
this to check that I was using the right driver for the version I was using. I
failed to notice this even though I made certain to test this on more than one
machine and more than one install of SQL Server 2008 (and later 2012) before
filing the bug report.
In short, when I switch to DRIVER={SQL Server Native Client 10.0} instead of
DRIVER={SQL Server} in the connection string, the error vanishes and works
properly.
I finally figured this out after playing with and then starting to actually
read through the SQL Server Unittests you provided.
Thanks again.
Original comment by timothyawiseman@gmail.com
on 10 Oct 2012 at 10:10
Original issue reported on code.google.com by
timothyawiseman@gmail.com
on 17 Jul 2012 at 9:54