Add project files.
This commit is contained in:
22
EmployeeDb/Script.PostDeployment1.sql
Normal file
22
EmployeeDb/Script.PostDeployment1.sql
Normal file
@ -0,0 +1,22 @@
|
||||
/*
|
||||
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
|
||||
Reference in New Issue
Block a user