Home > Archive > MS SQL Server ODBC > June 2005 > Query Analyzer success vs ODBC Connection Failure









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 Query Analyzer success vs ODBC Connection Failure
Geoffrey Kahan via SQLMonster.com

2005-06-27, 8:23 pm

We are calling a stored procedure that accepts a very long comma delimited
parm. In the body of the stored proc, we loop through the parm using a user
defined function to pull out the tokens. The function call uses 2 input
parms: the original long parm and the int position of which token to extract.
When we run the code through the ODBC connection, the query dies after
calling the function 150-160 times, whereas when we run the EXACT same query
through Query Analyzer, it completes the necessary 340 calls to the function.
Is there some kind of stack limit or function call limit inside the ODBC that
QA is not experiencing?

--
Message posted via http://www.webservertalk.com
Warren Read

2005-06-27, 8:23 pm

QA uses ODBC to connect to the Server, so I'm not sure what the issue is.
Perhaps you could turn on ODBC Trace when you execute the query using your
ODBC application, and then again using QA, and see if you see any
differences in the trace files that will solve your issue.


Sponsored Links





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

Copyright 2009 droptable.com