|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
SQL Server 2005 - Getting an exception while running the particular query first time
Hi Friends,
we are getting an exception while running the following query first time. next time its executing properly. 05/13/2008 02:06:59|RxOrderServer_DEVTEST12_1|6|2|SQLQuery: erform_rs|Running query [GET_MCRORDERS_POF_RETRIEVE]05/13/2008 02:06:59|RxOrderServer_DEVTEST12_1|6|2|SQLQuery_OS ql: erform| IN: QueryID=[22627]05/13/2008 02:06:59|RxOrderServer_DEVTEST12_1|6|2|SQLQuery_OS ql::runQuery|Running query [SELECT A.ORDER_ID FROM SDA_POF.POF_FACILITY A, SDA_POF.RXORDER B WHERE A.WORK_TELEPHONE_NUMBER = '9725074641' AND B.ACCOUNT_ID = '6442224' AND B.ORDER_STATUS = 'MCR'AND A.ORDER_ID = B.ORDER_ID] 05/13/2008 02:06:59|RxOrderServer_DEVTEST12_1|6|0|LibExceptio n constructor|[SQLQUERY_Oracle::runQuery] - [0: [SQLQUERY_Oracle::runQuery]Error executing query] 05/13/2008 02:06:59|RxOrderServer_DEVTEST12_1|6|0|LibExceptio n constructor|[SQLQuery_OSql::runQuery] - [0: [SQLQuery_OSql::runQuery]Unable to run query 22627] 05/13/2008 02:06:59|RxOrderServer_DEVTEST12_1|6|1|SQLQuery_OS ql: erform|Running query [22627], will try alternate05/13/2008 02:06:59|RxOrderServer_DEVTEST12_1|6|2|SQLQuery: erform|Query ID=[22627]05/13/2008 02:06:59|RxOrderServer_DEVTEST12_1|6|2|SQLQuery: erform|Query SQL = [SELECT A.ORDER_ID FROM SDA_POF.POF_FACILITY A, SDA_POF.RXORDER B WHERE A.WORK_TELEPHONE_NUMBER = '9725074641' AND B.ACCOUNT_ID = '6442224' AND B.ORDER_STATUS = 'MCR'AND A.ORDER_ID = B.ORDER_ID]05/13/2008 02:06:59|RxOrderServer_DEVTEST12_1|6|2|SQLQuery_OS ql: erform| OUT: QueryID=[22627]I want to correct this error. please help me what is wrong in this query. TIA |
|
#2
|
||||
|
||||
|
Hi,
I'm not sure if this is the cause, but there appears to be no space between 'MCR' and the AND: Code:
SELECT A.ORDER_ID FROM SDA_POF.POF_FACILITY A, SDA_POF.RXORDER B WHERE A.WORK_TELEPHONE_NUMBER = '9725074641' AND B.ACCOUNT_ID = '6442224' AND B.ORDER_STATUS = 'MCR'AND A.ORDER_ID = B.ORDER_ID |
|
#3
|
|||
|
|||
|
Quote:
Thanks a lot. we missed to notice this. Due to this only we are getting error. |
|
#4
|
||||
|
||||
|
Quote:
No problem, glad it helped!!! It looks as if the reason it only failed on the first iteration is because it appears to be executing an alternative query if the first execution fails!! |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > SQL Server 2005 - Getting an exception while running the particular query first time |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|