Re: long SQL lines for osql
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Thu, 23 Feb 2006 17:13:42 +0000 (UTC)
pb648174 (google@xxxxxxxxxxx) writes:
We have a very long and complicated SQL script which we run to upgrade
a version of our software from old to new. It works great in Query
Analyzer, but when run through osql it takes errors on lines that are
very long and (I think) stops reading after a certain amount of
characters. I've searched the net but haven't found anyone mentioning
this before. I have tried the -w 5000 parm to no avail.
-w controls the width of the output. As I understand it, you have
problems with the input.
One thing to keep in mind, is by default OSQL runs with QUOTED_IDENTIFIER
off, which is different from Query Analyzer. Run with -I to change this.
It would have helped if you had included any error messages.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: long SQL lines for osql
- From: pb648174
- Re: long SQL lines for osql
- References:
- long SQL lines for osql
- From: pb648174
- long SQL lines for osql
- Prev by Date: long SQL lines for osql
- Next by Date: linked data bases
- Previous by thread: long SQL lines for osql
- Next by thread: Re: long SQL lines for osql
- Index(es):
Relevant Pages
|