Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why am i prompted for the odbc connection? 1

Status
Not open for further replies.

sedgely

Technical User
Feb 21, 2002
406
GB
i have created 2 pass thru' queries as below, both work fine but the second propmts for the connection everytime it is run, they both use the same connection and everything else seems the same. has anyone any ideas?

passthru 1:
Code:
SET DATEFORMAT DMY EXEC sp_exception_CatBAll '01/08/2005','01/08/2005'

passthru 2:
Code:
SET DATEFORMAT DMY EXEC sp_YAS_ExcessTurnRoundByHospital '03/07/06','09/07/06'

Cheers, Craig
Si fractum non sit, noli id reficere
 
Try checking the odbc Connect string property of each query. In design view select the view menu and then properties. Chances are the second is different from the first. I would also expect specifying the connect string and then saving the query to fix it assuming you are using a FILE DSN (Machine DSN's work but a File DSN will force the whole connect sctring in instead of referencing the DSN).
 
thanks for that, you were correct - the second query didn't have the connect string in at all! thats sorted now. Have a shiny thing.

Cheers, Craig
Si fractum non sit, noli id reficere
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top