You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Formatting a query containing nvarchar string for SQL Server e.g. N'string' causes it to change to N 'string' which is considered an error in query.
Longer example:
USE [DATABASE]
GO
INSERT INTO [SCHEMA_DIGIT].[TABLE_table] ([COLUMN_1], [COLUMN_2], [COLUMN_3]) VALUES (N'Value1', N'ALongValueHereNotSureWhy', N'Value3');
Turns into:
USE [DATABASE]
GO
INSERT INTO
[SCHEMA_DIGIT].[TABLE_table] ([COLUMN_1], [COLUMN_2], [COLUMN_3])
VALUES
(
N'Value1',
N 'ALongValueHereNotSureWhy',
N'Value3'
);
The text was updated successfully, but these errors were encountered:
Formatting a query containing nvarchar string for SQL Server e.g.
N'string'
causes it to change toN 'string'
which is considered an error in query.Longer example:
Turns into:
The text was updated successfully, but these errors were encountered: