Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

LOAD .SQL file
Hi dear members,
Can onyone please tell me that how can we load multiple files/ or even
a single .SQL file stored on any physical location(Hard Disk) from SQL
prompt.
i have written some scripts in diffrent files, now i want to run those
scripts, Do i always need to manually open those scripts and run it on
query analyser or is there some way out.
Please HELP!!!


Report this thread to moderator Post Follow-up to this message
Old Post
mr.nitinjain@gmail.com
11-29-05 08:23 AM


Re: LOAD .SQL file
<mr.nitinjain@gmail.com> wrote in message
news:1133252435.378052.52860@g14g2000cwa.googlegroups.com...
> Hi dear members,
> Can onyone please tell me that how can we load multiple files/ or even
> a single .SQL file stored on any physical location(Hard Disk) from SQL
> prompt.
> i have written some scripts in diffrent files, now i want to run those
> scripts, Do i always need to manually open those scripts and run it on
> query analyser or is there some way out.
> Please HELP!!!

I'm sure there is an easier way (and I genuinely look forward to someone
telling me), but I use .cmd scripts which call osql passing the sql script I
want. That way if I want to run half a dozen scripts I need half a dozen
calls to osql in my .cmd file each of which gets passed one of my sql
scripts.

Hope this helps.
--
Brian Cryer
www.cryer.co.uk/brian



Report this thread to moderator Post Follow-up to this message
Old Post
Brian Cryer
11-29-05 12:23 PM


Re: LOAD .SQL file
I dont know if this is an option for you, but can you make a DTS package
with sql statements task?
Then you can execute DTS package from command prompt using dtsrun utility.

MC


"Brian Cryer" <brianc@127.0.0.1.activesol.co.uk> wrote in message
 news:caWdnYudXqARsRH
eRVnyuA@pipex.net...
> <mr.nitinjain@gmail.com> wrote in message
> news:1133252435.378052.52860@g14g2000cwa.googlegroups.com... 
>
> I'm sure there is an easier way (and I genuinely look forward to someone
> telling me), but I use .cmd scripts which call osql passing the sql script
> I want. That way if I want to run half a dozen scripts I need half a dozen
> calls to osql in my .cmd file each of which gets passed one of my sql
> scripts.
>
> Hope this helps.
> --
> Brian Cryer
> www.cryer.co.uk/brian
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
MC
11-30-05 08:23 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 02:48 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006