Drop Table
Support Forum for database administrators and web based access to important newsgroups related to databasesHello, 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.
Post Follow-up to this messagevishal.k.s@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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread