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);
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.