database question.
Apr. 11th, 2008 10:14 amOkay, quick question. Maybe somebody out there on my friends page will know.
I have a bunch of queries that I'd like to run on a MS-SQL server. It's a remote server, and I'd like to run these queries in batch, and save the results to my local hard drive. The current way (which is the only way I know) I'm running queries is through an MS Visual Studio connection, which doesn't seem to do what I want it to do. (At least, there's no easy way to hand it a bunch of queries, and tell it to run each one and save the results.)
So, can anybody help?
-kat
I have a bunch of queries that I'd like to run on a MS-SQL server. It's a remote server, and I'd like to run these queries in batch, and save the results to my local hard drive. The current way (which is the only way I know) I'm running queries is through an MS Visual Studio connection, which doesn't seem to do what I want it to do. (At least, there's no easy way to hand it a bunch of queries, and tell it to run each one and save the results.)
So, can anybody help?
-kat
no subject
Date: 2008-04-11 05:22 pm (UTC)no subject
Date: 2008-04-11 05:26 pm (UTC)Unfortunately, this is Microsoft's SQL version, and I'm not sure the machine running the database is running a web browser. So there's got to be a way to hook in and grab the queries I need, but...it's not obvious.
-kat
no subject
Date: 2008-04-11 06:11 pm (UTC)Unfortunately, it seems that the more interesting such programs for MS SQL cost money. At least with the open source databases the tools are generally also free (e.g. pgAdmin for PostgreSQL).
no subject
Date: 2008-04-11 06:57 pm (UTC)It's a lot tougher if you want individual files for each query result. (In fact, you'd probably be better creating a batch file that runs multiple SQLCMD commands, and use a > to set the filename for output.)
no subject
Date: 2008-04-11 06:59 pm (UTC)no subject
Date: 2008-04-11 07:56 pm (UTC)-kat
no subject
Date: 2008-04-11 08:32 pm (UTC)