Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 9:04 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: database not connecting when published
PostPosted: May 18th, 2010, 1:49 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
I have a database with query actions and script queries. Both use the same DSN, but when published the script query would not connect!

the script query I had

myDB = new Database("FILEDSN=C:\\Program Files\\Common Files\\ODBC\\Data Sources\\EditCert.dsn;").

I didn't think the path was relevant when published since opus writes the DSN internally. I tried relative paths, but after a bit of head scratching, trial and error, I found that changing the database object to

myDB = new Database("FILEDSN=EditCert.dsn;")
so removing all reference to the path for the script query cured the problem. It now works in preview and published.

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group