This should be as simple as a PHP script that opens a connection to the destination server (with rights to do all actions you mentioned)..
Opens a text file with all the SQL commands you want to issue, and starts firing them off at the server 1 by 1... Once you create the database, you need to make sure: - might have to grant rights to it - change it to the current database for that connection, or disconnect and reconnect to desired database. On Tue, 17 Jun 2003, Gerard Samuel wrote: > Im trying to make an install script that would run under MSSQL. > I could make it either create a database or populate a database. > I can't seem to do both. > Has anyone been able to create and populate a MSSQL database via php in > one shot?? > > Thanks > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php