Created
July 28, 2015 11:35
-
-
Save Kevin-Bronsdijk/c25470e0c2f1874bb70e to your computer and use it in GitHub Desktop.
SQL Server Connector – Azure API App – Part 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE SCHEMA [Test] | |
GO | |
CREATE TABLE Test.CustomerA ( | |
CustomerID int IDENTITY(1,1) NOT NULL, | |
FirstName nvarchar(25) NOT NULL, | |
LastName nvarchar(25) NOT NULL, | |
CompanyName nvarchar(100) NOT NULL, | |
Verified bit NOT NULL, | |
NeedToContact bit NOT NULL | |
) | |
GO | |
INSERT INTO Test.CustomerA | |
(FirstName | |
,LastName | |
,CompanyName | |
,Verified | |
,NeedToContact) | |
VALUES | |
('Orlando','Gee','A Bike Store',0,0), | |
('Keith','Harris','Progressive Sports',1,1), | |
('Donna','Carreras','Advanced Bike Components',1,0), | |
('Janet','Gates','Modular Cycle Systems',0,1), | |
('Lucy','Harrington','Metropolitan Sports Supply',1,1) | |
GO | |
ALTER PROCEDURE Test.GetCustomers | |
@Output int = NULL OUTPUT | |
AS | |
BEGIN | |
SET NOCOUNT ON; | |
SET @Output = 3 | |
END | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment