You are here: Re: Configuring SQL « MsSQL Server « IT news, forums, messages
Re: Configuring SQL

Posted by francois.bourdages on 11/20/06 16:53

Create a batch file that will use OSQL or ISQL, and run all script you
want.
something like :

SET SERVERNAME=XYZ
SET DBNAME=ABC
SET USERNAME=ABC
SET PSW=ABC

ISQLW -U%USERNAME% -P%PSW% -S%SERVERNAME% -d%DBNAME%
-ic:\temp\script1.SQL -oLOGFILE.LOG -FA -n
TYPE LOGFILE.LOG >> FULLLOG.LOG

ISQLW -U%USERNAME% -P%PSW% -S%SERVERNAME% -d%DBNAME%
-ic:\temp\script3.SQL -oLOGFILE.LOG -FA -n
TYPE LOGFILE.LOG >> FULLLOG.LOG



Eng.Rana@gmail.com wrote:
> Thanx Benedikt :),
> plz note i'm using SQL server 2000
>
> any other ideas??
>
>
> Benedikt Ries wrote:
> > Have you considered using the Script-Task in the SSIS-package? AFAIK you
> > can access all functions there and write your Script in VB.NET code.
> >
> >
> > --
> > Benedikt Ries
> > ------------------------------------------------------------------------
> > Benedikt Ries's Profile: http://www.dbtalk.net/m1098
> > View this thread: http://www.dbtalk.net/t345220

 

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

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