varchar(max) With a UTF-8 collation 2 GB str Use parameterized queries to safely insert and fetch string data from the database. import mssql_python conn = mssql_python.connect(connection_string) ...