Home > Archive > Microsoft SQL Server forum > September 2005 > SQLColumns crash (Access violation)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author SQLColumns crash (Access violation)
vishal.k.s@gmail.com

2005-09-22, 8:24 pm

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.

Simon Hayes

2005-09-22, 8:24 pm

vishal.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
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com