Jumping DB's Easily?

Posted: 03-14-2005, 04:13 PM
I am setting up a Central Database to hold all the configurations of each
database. Each database will be idential in tables and stored procedures.
Question, when logging in, I want to be able to set datasource=#LoginDB#. Is
there a way to do this and use a different database on a person session
database. Example: { datasource variable } LoginDB = 'company1' { user
variable } User = '1' Datasource in Coldfusion = 'companies' with the default
database = 'company1' If another users logins and wants to use database
'company2' how can i switch to it for that user only and without having to
setup another datasource and setting for that user LoginDB = 'company2'
Thanks,

Reply With Quote

Responses to "Jumping DB's Easily?"

Pete Thomas
Guest
Posts: n/a
 
Re: Jumping DB's Easily?
Posted: 03-14-2005, 06:55 PM
If you are using SQL server or similar you can use: 'dbo.databasename.tablename' in your cfquery and dynamically populate that.


Reply With Quote
 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which MM product creates forms easily? Northyork webforumsuser@macromedia.com Macromedia Fireworks 1 07-02-2003 04:35 AM