Define a varbinary(max) column using sqlalchemy on MS SQL Server

Posted by Mark Hall on Stack Overflow See other posts from Stack Overflow or by Mark Hall
Published on 2010-06-18T08:25:55Z Indexed on 2010/06/18 8:33 UTC
Read the original article Hit count: 355

Filed under:
|

Hi,

I'm querying an SQL Server database using SQLAlchemy and need to cast a column to varbinary(max). The thing I am struggling with is the "max" part. I can get the cast to work for any actual number (say varbinary(20)), but I cannot find how to get it to work for the "max" size of the varbinary column.

Any pointers? Links? Solutions?

Regards, Mark

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about sqlalchemy