Jump to content

mssql_connect


mATOK

Recommended Posts

Is there a way using mssql_connect to specify a default db?

Currently I am doing the following:

line 42 - $cs = mssql_connect ( 'server\server', 'User', 'Password' ) or die ( 'Can not connect to server' );
line 43 - mssql_select_db('dbname',$cs);

Because the default db is off line I see 'Warning: mssql_connect(): message: Cannot open user default database. Using master database instead.'

and

Warning: mssql_select_db(): Unable to select database: dbname in f:\web\intranet\operations\bram\mail\connect.php on line 43
Link to comment
https://forums.phpfreaks.com/topic/28272-mssql_connect/
Share on other sites

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.