catalyst2 community forums  

Go Back   catalyst2 community forums > Support > Database Support

Reply
 
LinkBack Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
Old 03-10-2005, 07:03 PM   #1 (permalink)
Registered User
 
dredger's Avatar
 
Join Date: May 2005
Posts: 21
Creating my Databases

I notice that Helm offers me the Option to create a database and says there are none set up for my domain.
However I have created a passworded access DB at work (much better tools available there) and have copied it into my DB subdirectory.

Simply
A) will it work there?

B) should by connection string be
"Provider=Microsoft.Jet.OLEDB.4.0;data source=d:\\domains\\ourladyoflourdesschool.co.uk\\ db\\olol. mdb; Jet OLEDBatabase Password=PASSWORD" ??
The extra slashes are there as it's stored in a Web Config file for .Net

c) If my site is up and running and I need to overwrite the DB with a newer version, Do I have to stop the website ?? (I have to stop the ASPNET WP on my work box )
dredger is offline   Reply With Quote
Old 03-10-2005, 10:32 PM   #2 (permalink)
Administrator
 
Jacob's Avatar
 
Join Date: May 2003
Posts: 1,299
In answer to your questions:

1. Yes
2. Looks ok to me, you are using the right absolute path
3. No, but when upload the new db, your site will not be able to access the db, so an error message will occur. A way to get round this is to upload the database under a different name then rename the db's once uploaded.

Hope that helps, any further questions, just post back.

Regards,

Jacob
Jacob is offline   Reply With Quote
Old 04-10-2005, 04:07 AM   #3 (permalink)
Registered User
 
dredger's Avatar
 
Join Date: May 2005
Posts: 21
cheers!
now to get my .Net app working........
dredger is offline   Reply With Quote
Old 04-10-2005, 08:36 PM   #4 (permalink)
Registered User
 
dotnetmachine's Avatar
 
Join Date: Sep 2005
Location: Yorkshire, England
Posts: 34
Post

A good idea when uploading is to implement a maintenance mode based upon a key in the web.config. You flick the site to maintenance mode and every visitor gets a nice page (that doesn't access the DB) telling them to come back in five minutes.

There is an example on how to do this in the Code Snippets area of the forums.
__________________
Richard
www.dotnetmachine.co.uk
dotnetmachine is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:22 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.