Files
EmployeeDbApp/EmployeeDb/Script.PostDeployment1.sql
2023-10-02 08:24:46 +02:00

22 lines
898 B
Transact-SQL

/*
Post-Deployment Script Template
--------------------------------------------------------------------------------------
This file contains SQL statements that will be appended to the build script.
Use SQLCMD syntax to include a file in the post-deployment script.
Example: :r .\myfile.sql
Use SQLCMD syntax to reference a variable in the post-deployment script.
Example: :setvar TableName MyTable
SELECT * FROM [$(TableName)]
--------------------------------------------------------------------------------------
*/
if not exists(select * from dbo.Employee)
begin
insert into dbo.Employee (FirstName, LastName, Title)
values
('John', 'Doe', 'Manager'),
('Jane', 'Doe', 'Assistant Manager'),
('Bob', 'Smith', 'Clerk'),
('Sally', 'Smith', 'Clerk'),
('Tom', 'Jones', 'Clerk')
end
go