--
Message posted via http://www.sqlmonster.com
Is there any requirement that you use ADO? I would suggest that the
best alternative to connect to SQL Server from C++ is ODBC, since there
is an ODBC driver which supports all features in SQL 2008, but with
ADO you are locked to what SQL 2000 provides.
--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server-connectivity/201005/1
And what data type is d? How do you check for NULL values?
Erland Sommarskog wrote:
>> i had no problem with reading the values for a, b and c. But had problem
>> with reading the d value. Something like:
>> with this i was getting mismatch error.
>> strcpy(strbuf,pRS->Fields->GetItem("d")->Value);
>> with this i was getting an unusual negative value.
>> sprintf(strbuf, "%d", pRS->Fields->GetItem("d")->Value);
>
>And what data type is d? How do you check for NULL values?
>
>
--
The Value property is a Variant. You find the definition of this data type
on http://msdn.microsoft.com/en-us/library/ms221627%28VS.90%29.aspx.