You are here: Re: loading sql files from a master file Oracle equivalent « MsSQL Server « IT news, forums, messages
Re: loading sql files from a master file Oracle equivalent

Posted by Jeff Kish on 05/22/06 05:49

On Fri, 19 May 2006 22:14:03 +0000 (UTC), Erland Sommarskog
<esquel@sommarskog.se> wrote:

>Jeff Kish (jeff.kish@mro.com) writes:
>> I need to give my customer an sql file that they can run in query
>> analyzer. All the stuff they need to run is in a set of existing files.
>> I'd like to just tell them to load this file (this is oracle syntax):
>>
>>
>> @file1.sql
>> @file2.sql
>> @file3.sql
>>
>>
>> is there some way of calling these files (that are in the same dir) from a
>> master sql file?
>
>In Query Analyzer, no. In the command-line tool OSQL, yes. But I would
>prefer to run each script from a separate OSQL invocation, and but that
>in a .Bat file.
>
>When you invoke OSQL, be sure to use the -I option to turn on the setting
>QUOTED_IDENTIFIER which is off by default with OSQL.
Thanks Erland. I was just having problems finding a definitive answer
for query analyzer. Too bad really, as my end users are more
familiar/comfortable with that than isql/osql.

regards,

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация