Hi all,I am writing an application that is required to create specific Databases on the fly.I am coding with PHP and have no troubles in creating DB's, example code as follows://Create new DB$create_db = "CREATE DATABASE " . $_POST['name'] . " ON ( NAME = " . $_POST['name'] . "_dat, FILENAME = 'c:\program files\microsoft sql server\mssql\data\\" . $_POST['name'] . ".mdf SIZE = 10,MAXSIZE = 50,FILEGROWTH = 5 ) LOG ON ( NAME = " . $_POST['name'] . "_log, FILENAME = 'c:\program files\microsoft sql server\mssql\data\\" . $_POST['name'] . ".ldf',SIZE = 5MB,MAXSIZE = 25MB,FILEGROWTH = 5MB )";
The problem occurs when I try to view the database through a third party application (MSSQL Manager), it wont appear until its registered.Therein lies my problem, how to register the database via code or scripts.Am I even on the right track here?RegardsHebbs