Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to create a c# program that will create empty tables that can be used windows crash or new client

What I have tried:

USE [master]
GO
/****** Object:  Database [PCS_MH]    Script Date: 2021/08/04 16:04:03 ******/
CREATE DATABASE [PCS_MH]
 CONTAINMENT = NONE
 ON  PRIMARY 
( NAME = N'PCS_MH', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\PCS_MH.mdf' , SIZE = 61440KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
 LOG ON 
( NAME = N'PCS_MH_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\PCS_MH_log.ldf' , SIZE = 24384KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
 COLLATE Latin1_General_CI_AS
Posted
Comments
[no name] 5-Aug-21 17:26pm    
That has nothing to do with MSI at this point. Writing a C# program that sends SQL to the server is your first requirement.

https://docs.microsoft.com/en-us/troubleshoot/dotnet/csharp/create-sql-server-database-programmatically

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900