SQLColumns crash (Access violation)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vishal.k.s@gmail.com

    SQLColumns crash (Access violation)

    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

    #2
    Re: SQLColumns crash (Access violation)

    vishal.k.s@gmai l.com wrote:[color=blue]
    > 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.
    >[/color]

    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

    Comment

    Working...