Groups | Blog | Home
all groups > sql server new users > may 2005 >

sql server new users : SQL Server install script


Mike Epprecht (SQL MVP)
5/23/2005 12:00:00 AM
Hi

Either call OSQL.EXE with the script file as one of the parameters, or write
some code that connects to the DB, and executes the contents of the file.

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

IM: mike@epprecht.net

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

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

[quoted text, click to view]

kevinf
5/23/2005 3:15:00 PM
I am working on a C# application, using SQL Server. I can create a script to
create the database, but I'm want to have the database created during the
setup of my application - not running the script from Query Analyzer. It
seems like there would be a simple way of running the DB script from the
setup routine.

Can anyone point me in the right direction?

AddThis Social Bookmark Button