Files
sql-server-samples/samples/features/json/dotnet-todo-rest-api/setup/setup.sql
T
Jovan Popovic 5e99204183 Added dotnet Todo REST API
Added sample app that shows how to create REST API using JSON
functionalities in SLQ server 2016/Azure SQL Database
2016-06-14 22:25:40 +02:00

19 lines
504 B
Transact-SQL

DROP TABLE IF EXISTS Todo
GO
CREATE TABLE Todo (
Id int IDENTITY PRIMARY KEY,
Title nvarchar(30) NOT NULL,
Description nvarchar(4000),
Completed bit,
TargetDate datetime2
)
GO
INSERT INTO Todo (Title, Description, Completed, TargetDate)
VALUES
('Install SQL Server 2016','Install RTM version of SQL Server 2016', 0, '2016-06-01'),
('Get new samples','Go to github and download new samples', 0, '2016-06-02'),
('Try new samples','Install new Management Studio to try samples', 0, '2016-06-02')