
May 16th, 2004, 10:39 PM
|
|
Contributing User
|
|
Join Date: Apr 2003
Posts: 45
Time spent in forums: 4 m 36 sec
Reputation Power: 6
|
|
|
Executing MSSQL from command line with parameters. How To?
Hi there.. i have a question here, it is possible to run a trasactsql command from a command line parameter within sql server?
For example, im doing a installer with my application, but i need to copy the .mdf file to the client hard drive and then using a ATTACHBD to make the database available for the program... but i want tht client not to open the administrative tools of mssql or data analyzer for dongin that job, so can i do someting like
mssql.exe /run "sp_attach_db"... ???
Thanks in advance!
|