Digital Workshop

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Database problems when publishing
PostPosted: March 29th, 2006, 12:22 pm 
Offline

Joined: February 5th, 2006, 3:39 am
Posts: 55
Location: Scotland
Can anyone shed some light on this problem for me?

I have made a publication which writes info to a couple of databases.
Another page in this publication queries the databases.

All this is fine and works well in preview, but as soon as I publish it I seem to lose all info held in databases including my prebuilt tables. The file size of the db after this happens is 0kb.

Can anyone offer any help?

Edit: After running my published exe. the databases are also unable to open with Access. I get an error message telling me its not a valid file type.

I am running Access 2000 and Opus Pro 5.5 all on Windows 2000

I am publishing on to a network. I dont know if this has something to do with it but the files are on the network when previewing and this works great!


Top
 Profile  
 
 Post subject:
PostPosted: April 2nd, 2006, 1:18 am 
Offline

Joined: February 5th, 2006, 3:39 am
Posts: 55
Location: Scotland
After thinking about this again, I tried republishing my presentation to a different path then cut and pasting into its final destination.

This worked and allowed me to use my db's as intended.

Opus does ask if you would like to overwrite when publishing to an existing directory but it seems that it also overwrites your database if its in that said directory!

I did have a few other files in this directory which relate to the publication. None of these files were harmed when publishing so why does the database get wiped?

This is a pain, especially if you have a lot of work in the database!

never mind, alls well now

Jim


Top
 Profile  
 
 Post subject: Also problems after publishing
PostPosted: April 6th, 2006, 11:15 am 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
Hello all,


I have simular problems after publishing my publication. I use opus 5.5XE.
In preview mode i have no problems getting all my data from a Mysql database. But after publishing some parts return undefined.

It's pretty though trying to understand the problem, because it only happens after publishing. [edit: not true...]

I get data from the mysql database using a ODBC- connection and execute sql like this: records = db.ExecuteSQL(sql);

What can be the problem. This is pretty anoying.


Last edited by Reemski on April 6th, 2006, 4:23 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: April 6th, 2006, 1:03 pm 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
My problem seems to be the next line of code:

Code:
this.numRec = records.GetNumberOfRecords();


In preview mode it returns the right number of rows. After publishing, it stops the code. No crash, but it stops the execution of the script.

[edit: ]
The reason it did work when previewing, was the reason the preview used another database (other .ini file). Now using the same database, the problem also happens when using the preview.

Will look further for clues.......


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Majestic-12 [Bot] and 51 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