Re: executing querys from a batch file



http://msdn.microsoft.com/library/default.asp?url=/library/en-us/acdata/ac_8_mta_01_5zxi.asp

--
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike@xxxxxxxxxxxx

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

"William Kossack" <kossackw@xxxxxxx> wrote in message
news:11fktjioc9cp78d@xxxxxxxxxxxxxxxxxxxxx
> Can you point me to an example or somewhere to look online?
>
> Erland Sommarskog wrote:
>
>>William Kossack (kossackw@xxxxxxx) writes:
>>
>>>Someone asked me a curious question.
>>>Can I execute a query to sql server from a bat file? how?
>>>
>>>If not is there a simple scripting laguage that this person might use to
>>>drive his process that is similar to a dos bat file?
>>>
>>
>>You can use the command-line tool OSQL for this.
>>
>>
>>
>>


.



Relevant Pages

  • Re: executing querys from a batch file
    ... Mike Epprecht, Microsoft SQL Server MVP ... Blog: http://www.msmvps.com/epprecht/ ... >>>Can I execute a query to sql server from a bat file? ...
    (comp.databases.ms-sqlserver)
  • Re: Thanks Re: Query Analyser Owner, table access
    ... Tibor Karaszi, SQL Server MVP ... http://www.karaszi.com/sqlserver/default.asp http://www.solidqualitylearning.com/ Blog: http://solidqualitylearning.com/blogs/tibor/ ... USE SolutionsNet ...
    (microsoft.public.sqlserver.tools)
  • Re: Question about SQL Server 2005
    ... >> Mike Epprecht, Microsoft SQL Server MVP ... >> MVP Program: http://www.microsoft.com/mvp ... >> Blog: http://www.msmvps.com/epprecht/ ...
    (microsoft.public.sqlserver.setup)
  • Re: SQl server processors and threads
    ... Mike Epprecht, Microsoft SQL Server MVP ... Blog: http://www.msmvps.com/epprecht/ ... > to the threads running and the priority is w.r.t. what? ...
    (comp.databases.ms-sqlserver)
  • Re: Return Key (identity) on INSERT operation (SQL/ASP)
    ... hopefully he can expedite processing your full subscription. ... SQL Server MVP ... Columnist, SQL Server Professional ... Please reply to the newsgroup. ...
    (microsoft.public.inetserver.asp.general)