SQL Express logon and scripting
Posted: Fri Jun 23, 2006 11:40 am
Hi everyone,
I'm having difficulty executing a script against my SQL Express server deployed by the installer.
Assuming the server exists, I would like InstallAware to create a database, then run a setup script against it. Whilst trying to debug it, all I can get from the script result variable is "ERROR". Enabling LOGGING to a file doesn't help, because none of the errors are dumped to the log file.
I think the problem lies in the Server name and Instance name. Bearing in mind I want to use the Default instance and Windows mode authentication. I have tried various combinations of all these details, namely:
Server: .\\SQLEXPRESS
Instance: (blank)
Database: Snax
User: (blank)
Password: (blank)
Variable: MYSCRIPT
All I want to happen at the moment is a database to be created on the server. I've read some other forum posts regarding this problem but no luck so far. I've also installed SQL Express Management Studio to check the results of any successful database creation and scripting.
The value of MYSCRIPT is always ERROR.
Any ideas?
Thanks, Tom
I'm having difficulty executing a script against my SQL Express server deployed by the installer.
Assuming the server exists, I would like InstallAware to create a database, then run a setup script against it. Whilst trying to debug it, all I can get from the script result variable is "ERROR". Enabling LOGGING to a file doesn't help, because none of the errors are dumped to the log file.
I think the problem lies in the Server name and Instance name. Bearing in mind I want to use the Default instance and Windows mode authentication. I have tried various combinations of all these details, namely:
Server: .\\SQLEXPRESS
Instance: (blank)
Database: Snax
User: (blank)
Password: (blank)
Variable: MYSCRIPT
All I want to happen at the moment is a database to be created on the server. I've read some other forum posts regarding this problem but no luck so far. I've also installed SQL Express Management Studio to check the results of any successful database creation and scripting.
The value of MYSCRIPT is always ERROR.
Any ideas?
Thanks, Tom