Re: execute a sql file
From: Erland Sommarskog (sommar_at_algonet.se)
Date: 05/23/04
- Next message: Erland Sommarskog: "Re: Execute without reporting errors"
- Previous message: Aaron Bertrand [MVP]: "Re: date diff"
- In reply to: joe: "execute a sql file"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 23 May 2004 22:28:55 +0000 (UTC)
joe (pearl_77@hotmail.com) writes:
> beside ISQLW, OSQL, and ISQL utilities,
> what are the other ways to execute a sql file? (in my example, I have a
> bunch of queries in this file)
Hey, you can always try ABASQL, get it on http://www.abaris.se/abaperls/,
but beware that this tools performs a whole of things behind your
back!
Or roll your own completely, write a Perl script that reads the file
and uses MSSQL:Sqllib to submit the commands.
(See http://www.sommarskog.se/mssqlperl/index.html.)
(I'm the author of both. It's freeware.)
> I can't use this crappy utilities because
>
> 1. ISQL sucks! too slow.
> 2. OSQL is better than ISQL, still a little slow.
> 3. ISQLW is fast, but sometimes hang, could take up to 15 minutes.
>
> any suggestions?
...on the other hand, I think your problems are elsewhere. I've never
noticed any speed problems with any of these tools as such. Unless,
that is, I have issued SELECT statements which has produced very many
rows. But if your SQL is slow, then the tools are not making it any
quicker.
So while you are welcome to try my tools, I don't think they will
change much.
-- Erland Sommarskog, SQL Server MVP, sommar@algonet.se Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
- Next message: Erland Sommarskog: "Re: Execute without reporting errors"
- Previous message: Aaron Bertrand [MVP]: "Re: date diff"
- In reply to: joe: "execute a sql file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|