Page 1 of 1

Connect to mssql server & run code-NOT connect to a databas

Posted: Wed Mar 28, 2012 3:38 pm
by jassing
I need to connect to a mssql server and run some code -- this code is specifically detaching and attaching databases to a server...
I have been unsuccessful so far - does anyone have any suggestions?

I'm trying to avoid shelling to osql or sqlcmd

thanks
-josh