Files
sqltoolsservice/test/Microsoft.SqlTools.ServiceLayer.Test.Common/TestData/TSqlFormatter/TestFiles/KeywordCaseConversion.sql
Kevin Cunnane ccd2c9caa9 Update Keywords list to include most tokens (#244)
- Fixes https://github.com/Microsoft/vscode-mssql/issues/705
- Updated the keyword list to include most common keyword ranges and added test to cover top 10 missing keywords
- Fixed a bug in TestUtilities.cs where text range was not defined correctly.
2017-02-21 18:21:59 -08:00

41 lines
925 B
Transact-SQL

-- Case: common type keywords
cReaTe tAbLe [SimpleTable]
(
-- this is a comment before document
[DocumentID] INT iDentIty (1, 1) NOT NULL,
-- this is a comment before Title
[Title] NVARCHAR (50) NOT NULL,
-- this is a comment before FileName
[FileName] NVARCHAR (400) NOT NULL,
-- this is a comment before FileExtension
[FileExtension] nvarchar(8)
);
GO
CREATE vIEw v1 aS select * from [SimpleTable]
GO
CREATE pRoceduRe p1 aS
bEgIn
select * from [SimpleTable]
eNd
GO
iNsert iNto t dEfault vAlues
GO
GO
iNsert oPenQUERY (OracleSvr, 'SELECT name FROM joe.titles')
VALUES ('NewTitle');
GO
INSERT INTO myTable(FileName, FileType, Document)
SELECT 'Text1.txt' AS FileName,
'.txt' AS FileType,
* FROM openROWSET(bUlK N'C:\Text1.txt', siNGLE_BLOB) AS Document;
GO
sELECT *
FROM openXML (@idoc, '/ROOT/Customers')
exEC sp_xml_removedocument @idoc;