"SQLGetDiagRec Failed" in SQL Server...

Posted on 2007-10-11
Last Modified: 2008-09-20
Hi all, I got the message "SQLGetDiagRec Failed" in SQL server 2005. From what I found from Internet, SQLGetDiagRec is an ODBC functions to return the status of diagnostic records that contains error, warning, or status information. But I do not use this function in my Stored Proc (SP). There is a part in my SP that has a cursor loop and inside the cursor loop I do some freetext search. I suspect this error is occured somewhere within this cursor loop.

Does anyone of  you have any idea on this message? How it happens? And how to resolve or avoid this?

Thanks in advance and any help would be greatly appreciated!
Question by:IxCraZee
    1 Comment
    LVL 14

    Accepted Solution

    This is internal to the ODBC layer. It's not happening in the stored proc, unless your stored proc is using ODBC to access a datasource external to SQL.

    Is there anything in the SQL server log relating to this - there may be more info there that will help diagnose the problem

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Suggested Solutions

    Title # Comments Views Activity
    SQL Server - Performance Very Sluggish 14 57
    Import csv files to MS SQL 5 34
    query question 4 19
    Introduction In my previous article ( I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
    Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
    This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
    Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now