Jumping DB's Easily?

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Jumping DB's Easily?

    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,

    DriftrZ Guest

  2. Similar Questions and Discussions

    1. Outputting name of db's to text file
      I am looking for a way to output the results of the mysqlshow command to a text file. I can probably manage this with Perl but was wondering if...
    2. Handling case of field names in multiple db's
      (Bottom line: I think what I'm looking for is an easy way of changing the case of key values in an array.) I've got code that I'm trying to make...
    3. Showing records from two db's in one portal?
      Depends on the eventual mechanism you intend for analysing your data. If it means combining similar types of data into sets and sorting for...
    4. Same field in two DB's
      I am using Access 2000 I have two different databases; One for material disposition (DB-1) and another one for Vendor returns (DB- 2). In the...
    5. 2 Instances vs 2 DB's in SQL 2K
      I have to agree with Tom. The production environment should be separated from the dev and test environments as much as possible, preferably on it's...
  3. #2

    Default Re: Jumping DB's Easily?

    If you are using SQL server or similar you can use: 'dbo.databasename.tablename' in your cfquery and dynamically populate that.


    Pete Thomas Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139