I would to drop remote SQL Server db via sqsh but, I don't know how does it works. I can connect to sql server with command:
sqsh -Ulogin -Ppass -Smssql2005
I would to drop remote SQL Server db via sqsh but, I don't know how does it works. I can connect to sql server with command:
sqsh -Ulogin -Ppass -Smssql2005
Once you're connected to the server, you can drop a database with the command
Assuming that there's no one connected to it, it should work. And if it doesn't, it'll tell you why.
Maybe you are using the wrong tool to connect to MS SQL Server. If you are looking to connect to MS SQL Server then you can use this code:
The
-C
argument lets you specify a query to send to the SQL Server instance.So, I think this will do what you want: