By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,228 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

SQLColumns crash (Access violation)

P: n/a
Hello,

I have some code that uses ODBC to retreive column information
from a SQL Server database. The call to ::SQLColumns succeeds.
I then bind my C variables to the HSTMT handle. I then call
::SQLFetch to get the next row. ::SQLFetch crashes with an
access violation. I am unable to debug

The same code works without issue against a MySQL database.

Has anyone ever encountered this crash?
Is there a work-around anyone knows of?

Thank you very much for your help.

Sep 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
vi********@gmail.com wrote:
Hello,

I have some code that uses ODBC to retreive column information
from a SQL Server database. The call to ::SQLColumns succeeds.
I then bind my C variables to the HSTMT handle. I then call
::SQLFetch to get the next row. ::SQLFetch crashes with an
access violation. I am unable to debug

The same code works without issue against a MySQL database.

Has anyone ever encountered this crash?
Is there a work-around anyone knows of?

Thank you very much for your help.


I have no idea about accessing MSSQL from C, but I suspect
that without a code sample, you won't get a very useful answer - it
would help if you can clarify which client library you're using, and
also give some specific code that fails.

Simon
Sep 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.