KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Getting error when executing stored procedure with ODBC Quer

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    KS-Soft Forum Index -> HostMonitor
View previous topic :: View next topic  
Author Message
unclelude



Joined: 22 Jan 2003
Posts: 20

PostPosted: Thu Mar 06, 2003 10:52 am    Post subject: Reply with quote

Alex,

I have an ODBC Query Test, which executes a stored procedure as follows.

exec SysAdmin..Job_Monitor_Interval @jobname = 'FX Broadcast and Status Job', @view='T'


I am getting the following error when the job runs.

Error: [Microsoft][ODBC SQL Server Driver]Prepared statement is not a cursor-
specification

However, when I test the stored with the "When x = y" condition, it runs fine.

Any ideas ?

Regards,

Adnan
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Thu Mar 06, 2003 11:15 pm    Post subject: Reply with quote

Truth to say don't have any idea now, but I can try to find something. Does stored procedure returns some set of records? Do you use "Alert when field ROW:COL.." option of the ODBC test? If yes, does the same error appears when option is disabled?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
unclelude



Joined: 22 Jan 2003
Posts: 20

PostPosted: Fri Mar 07, 2003 12:01 pm    Post subject: Reply with quote

Alex,

I think I have fixed the problem. The stored procedure was generating a system message before returning the recordset, when I was deleting a #temp table in the code. I have chenged the stored procedure and it is working now.

Thanks,

Adnan
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    KS-Soft Forum Index -> HostMonitor All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index