Jump to content

Can I use Multiple Databases for my application


sayedsohail

Recommended Posts

  • 2 weeks later...
You can use multiple databases, but it would probably be easier if you kept a single database -- depending on your application, of course. You may want to look at row level security.

Alternatively, you can do multiple databases, even at the same time:

$db1 = mssql_connect("localhost","user","pass",true);
$db2 = mssql_connect("localhost","user","pass",true);

mssql_select_db("database1",$db1);
mssql_select_db("database2",$db2);
Link to comment
Share on other sites

MCP is right you never need to use more than one db in an application, people try to use the same db for all there applications so they can easily work together, you can hav endless tables and stuff in one db so why use 2, but yes like MCP say its done like that conect to one do your stuff close connect to another etc or just treat them as two connections
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.