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
Search found 20 matches
- Fri Mar 07, 2003 12:01 pm
- Forum: HostMonitor
- Topic: Getting error when executing stored procedure with ODBC Quer
- Replies: 2
- Views: 16073
- Thu Mar 06, 2003 10:52 am
- Forum: HostMonitor
- Topic: Getting error when executing stored procedure with ODBC Quer
- Replies: 2
- Views: 16073
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- spe...
- Wed Feb 26, 2003 8:32 am
- Forum: HostMonitor
- Topic: Subject text changes for e-mail notifications
- Replies: 5
- Views: 20715
- Tue Feb 25, 2003 9:20 pm
- Forum: HostMonitor
- Topic: Subject text changes for e-mail notifications
- Replies: 5
- Views: 20715
- Mon Feb 24, 2003 1:11 pm
- Forum: HostMonitor
- Topic: Subject text changes for e-mail notifications
- Replies: 5
- Views: 20715
- Thu Feb 20, 2003 10:53 pm
- Forum: HostMonitor
- Topic: SQL query does not run via host monitor
- Replies: 23
- Views: 134695
Hi Alex, I think the code needs a little bit of tweeking. If you have a couple of lines of SQL code in HM, it removes the space between the lines. For example, the code select * from tbl1 where a = 1 will become select * from tbl1where a = 1 to test it, enter few lines of code in HM, then do a cut/p...
- Wed Feb 19, 2003 3:14 pm
- Forum: HostMonitor
- Topic: SQL query does not run via host monitor
- Replies: 23
- Views: 134695
- Tue Feb 18, 2003 2:24 pm
- Forum: HostMonitor
- Topic: SQL query does not run via host monitor
- Replies: 23
- Views: 134695
- Tue Feb 18, 2003 1:48 pm
- Forum: HostMonitor
- Topic: SQL query does not run via host monitor
- Replies: 23
- Views: 134695
Hi Alex, 1. The link , http://www.ks-soft.net/download.hm366.zip does not work. 2. What version of HM do you use? 3.56 3. The following SQL creates the cartesian product. SELECT 'norcomq' as protcol, FROM FX_PRD05..tblWooStatusLog (NOLOCK) INNER JOIN FX_PRD05..vewEmpModem (NOLOCK) ON FX_PRD05..tblWo...
- Tue Feb 18, 2003 8:46 am
- Forum: HostMonitor
- Topic: SQL query does not run via host monitor
- Replies: 23
- Views: 134695
Hello Alex, I have tried both tests and they both pretty much give the same error number, though with different text. Here are the details. I tried the following SQL SELECT 'norcomq' as protcol, datediff(mi, MAX(dateadd(hh, -5, tblWooStatusLog.wslInsertedWhen ) ), getdate() )as MinutesPast , MAX(dat...
- Mon Feb 17, 2003 9:27 pm
- Forum: HostMonitor
- Topic: SQL query does not run via host monitor
- Replies: 23
- Views: 134695
- Mon Feb 17, 2003 9:15 pm
- Forum: HostMonitor
- Topic: SQL query does not run via host monitor
- Replies: 23
- Views: 134695
Hi Alex, I tried a simple SQL, SELECT count(*) from tblModem, and it worked fine. I think the problem is between NATIVE SQL code and ODBC code. The SQL I am having problems with, works fine in SQL Query Analyzer, but it won't work in HostMonitor because HM uses ODBC. I will have to test my SQL for O...
- Sun Feb 16, 2003 9:48 am
- Forum: HostMonitor
- Topic: SQL query does not run via host monitor
- Replies: 23
- Views: 134695
- Fri Feb 14, 2003 6:56 pm
- Forum: HostMonitor
- Topic: SQL query does not run via host monitor
- Replies: 23
- Views: 134695
Hi Alex, I get the following error in a dialog box: Error 4294967295 [Microsoft][ODBC Driver Manager] Function Sequence Error I don't even know how to test my code for ODBC compliance or how to test my SQL so that it can work in Host Monitor. Any ideas. I really like Host Monitor, but this has put a...
- Fri Feb 14, 2003 8:16 am
- Forum: HostMonitor
- Topic: SQL query does not run via host monitor
- Replies: 23
- Views: 134695
Hello, I am trying to run the following SQL, but it gives me an error. The code runs fine via SQL Query Analyzer. This is pure SQL Server code. Do I have to follow a certain syntax for ODBC ? If yes, then this puts a huge, limit on what we can do with host monitor. SELECT 'mobitex' as protcol, dated...