SQL Express logon and scripting

Got a problem you cannot solve? Try here.
tgarratt
Posts: 4
Joined: Fri Jun 23, 2006 11:27 am

SQL Express logon and scripting

Postby tgarratt » 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

Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Postby Gizm0 » Fri Jun 23, 2006 1:21 pm

Should be:

Server: (local)
Instance: SQLEXPRESS

Don't forget to hit the Generate command line button, on the InstallAWARE SQL plugin..
Panagiotis Kefalidis
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
InstallAware Software Corporation

tgarratt
Posts: 4
Joined: Fri Jun 23, 2006 11:27 am

Postby tgarratt » Mon Jun 26, 2006 3:41 am

Thanks gizmo, it worked perfectly! Just need to double check a few issues about instance...

Assuming we need an instance, how is the initial install supposed to work? I have been informed that a strong password is required for the sa account on the first install. From then on, instances can have their own username/password (but they're probably not required).

So... First install requires a strong password. An instance doesn't, even if it is the first install???

Can you please shed any light on how this is meant to work?

Thanks, Tom


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 236 guests