Skip to content

Commit 340457c

Browse files
committed
corrected comment
1 parent b55e4d9 commit 340457c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sql/WideWorldImportersUpdates.sql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,10 @@ GO
179179
CREATE OR ALTER PROCEDURE web.get_customers
180180
AS
181181
SET NOCOUNT ON;
182-
-- Cast is needed to corretly inform pyodbc of output type is NVARCHAR(MAX)
183-
-- Needed if generated json is bigger then 4000 bytes and thus pyodbc trucates it
184-
-- https://stackoverflow.com/questions/49469301/pyodbc-truncates-the-response-of-a-sql-server-for-json-query
182+
-- Cast is needed to simplify JSON management on the client side:
183+
-- https://docs.microsoft.com/en-us/sql/relational-databases/json/use-for-json-output-in-sql-server-and-in-client-apps-sql-server
184+
-- as a single JSON result can be returned as chunked into several rows. By casting it into a NVARCHAR(MAX) it will always be
185+
-- returned as one row instead (but with a 2GB limit...which shouldn't be a problem.)
185186
SELECT CAST((
186187
SELECT
187188
[CustomerID],

0 commit comments

Comments
 (0)