Build SQL database during installation

  • Thread starter Thread starter pcPirate
  • Start date Start date
P

pcPirate

Hi,

i) Is it possible to build the SQL database structure during the
installation of a C# applicaton? If yes, how?

Pls advice and thanks in advance

pcPirate
 
Hi,

i) Is it possible to build the SQL database structure during the
installation of a C# applicaton? If yes, how?

Pls advice and thanks in advance

pcPirate

Yes it is.
Just connect to the master database of your database server and then start
a script similar to this one:

CREATE DATABASE newDatabase .....(lots of parameters here)

Use newDatabase
GO

CREATE TABLE .....
GO
CREATE TABLE .....
GO
CREATE VIEW .....
GO



--
------ooo---OOO---ooo------

Peter Koen - www.kema.at
MCAD CAI/RS CASE/RS IAT

------ooo---OOO---ooo------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top