Hi all,

I'm trying read some data from an SQL Server database via ODBC ala SOCI. 
Everything seems to work except for varchar columns. SQLDescribeCol 
generates an error and odbc_soci_error
"column size" is thrown (soci/src/backends/odbc/statement.cpp - 
odbc_statement_backend::column_size())

I've tried different DBs on the same server, and I still get the same 
problem.

The code is as simple as it gets:

std::string resName;
int res = 5;
session mssql(odbc, connectString);
mssql << "select name from test.dbo.res where id = :res", use(res, 
"res"), into(resName);

Any ideas what is wrong?

Simon
-- 
simonsmicrophone.com

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to