Can I use a command line to attatch a database. Basically what I need to do is kick off a batch file to attach a DB in MS slq server. If i can do it then what would be the syntax for that.
-E = use a trusted account
-S = SQL Server server name
-Q = query to run and then exit. Wrap the command in DOUBLE quotes and any variables in single quotes.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.