Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3495276

Browse files
committed
updated sql script
1 parent 56feaa3 commit 3495276

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎SQL/WideWorldImportersUpdates.sql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,8 @@ GO
175175
CREATE OR ALTER PROCEDURE web.get_customers
176176
AS
177177
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
178+
-- Cast is needed to corretly inform the drived of output type is NVARCHAR(MAX)
179+
-- to make sure it won't be truncated
181180
SELECT CAST((
182181
SELECT
183182
[CustomerID],
@@ -186,4 +185,3 @@ SELECT CAST((
186185
[Sales].[Customers]
187186
FOR JSON PATH) AS NVARCHAR(MAX)) AS JsonResult
188187
GO
189-

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /