473,420 Members | 4,460 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,420 software developers and data experts.

loading sql files from a master file Oracle equivalent

Hi.

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?
Thanks
Jeff Kish
May 17 '06 #1
2 1935
Jeff Kish (je*******@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.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
May 19 '06 #2
On Fri, 19 May 2006 22:14:03 +0000 (UTC), Erland Sommarskog
<es****@sommarskog.se> wrote:
Jeff Kish (je*******@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,
May 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Cindy Lee | last post by:
I need to insert rows into MySql database from oracle, which I imagine is a rather common task. The path I decided to take is write a java procedure, as recommended in the manual. However, java...
1
by: RAK | last post by:
A client is testing a system on Oracle 9i and Win 2000 (why not 10g and 2003 etc? dont ask, long story). Performance was poor. Among other issues, we discovered that the Oracle datafiles are...
5
by: Raj | last post by:
Hi all, Can anyone help me with a script which would delete files or move them to a different folder at some scheduled time..! Please.....!!! Thanks in advance...
0
by: dioscuroi | last post by:
When I call OCI (Oracle Call Interface) functions in Debug mode of VC+ 7.0, it takes too much time to load oracle debug symbols, and finall failed. Error messages are printed in output window, just...
6
by: Homer J. Simpson | last post by:
Hi all, I have enough experience with HTML/classic ASP to get by, and I'm trying to learn ASP.NET. Traditionally, I've taken the habit of breaking out extra-long CSS files into multiple,...
0
by: dixonjm | last post by:
Hi, I have a master page & various pages that will use this master page. Each content page will have a CSS & JS file which will be named the same as the content page. When I try to load the CSS...
2
by: msch.prv | last post by:
I have been experimenting with VWD Express Extension 3.5 and noticed that quite often it takes up to 1..2 min to load external js or css files. This occurs often after rebuilding the site. The...
2
by: defn noob | last post by:
from Tkinter import * import os master = Tk() w = Canvas(master, width=800, height=600) print os.path.exists('C:/me/saftarn/desktop/images/blob4.jpg') im = PhotoImage(file =...
1
by: hvellani | last post by:
Okay here is my problem... I have multiple csv files with data in each file. They are connected via foreign keys (with each table having its on primary key). I want to load these tables into an...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.