We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56feaa3 commit 3495276Copy full SHA for 3495276
SQL/WideWorldImportersUpdates.sql
@@ -175,9 +175,8 @@ GO
175
CREATE OR ALTER PROCEDURE web.get_customers
176
AS
177
SET NOCOUNT ON;
178
--- Cast is needed to corretly inform pyodbc of output type is NVARCHAR(MAX)
179
--- Needed if generated json is bigger then 4000 bytes and thus pyodbc trucates it
180
--- https://stackoverflow.com/questions/49469301/pyodbc-truncates-the-response-of-a-sql-server-for-json-query
+-- Cast is needed to corretly inform the drived of output type is NVARCHAR(MAX)
+-- to make sure it won't be truncated
181
SELECT CAST((
182
SELECT
183
[CustomerID],
@@ -186,4 +185,3 @@ SELECT CAST((
186
185
[Sales].[Customers]
187
FOR JSON PATH) AS NVARCHAR(MAX)) AS JsonResult
188
GO
189
-
0 commit comments