Unix Technical Forum

Query Analyzer success vs ODBC Connection Failure

This is a discussion on Query Analyzer success vs ODBC Connection Failure within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> We are calling a stored procedure that accepts a very long comma delimited parm. In the body of the ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 09:47 PM
Geoffrey Kahan via SQLMonster.com
 
Posts: n/a
Default Query Analyzer success vs ODBC Connection Failure

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.sqlmonster.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 09:47 PM
Warren Read
 
Posts: n/a
Default RE: Query Analyzer success vs ODBC Connection Failure

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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:06 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com