SELECT p.Id, p.FirstName, p.LastName, p.BirthDate FROM OPENROWSET (BULK 'C:\temp\PeopleLarge.json', SINGLE_CLOB) as j CROSS APPLY OPENJSON(BulkColumn) WITH ( Id INT, FirstName VARCHAR(50), LastName VARCHAR(10), BirthDate DATETIME ) AS p
Reference : http://www.sqlservercentral.com/articles/SQL+Server+2016/175784/?utm_source=SSC&utm_medium=pubemail
No comments:
Post a Comment