Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting nvarchar strings for SQL Server causes errors in query #41

Open
JakubOr opened this issue Apr 4, 2022 · 0 comments
Open

Comments

@JakubOr
Copy link

JakubOr commented Apr 4, 2022

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'
    );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant