Skip to content

Getting error while saving records into table which has '.' in name #394

@PetarCurkovic

Description

@PetarCurkovic

I have table with name 'dbo.some.Name'. When I'm trying to save object to table, I've got an error:

TinyTds::Error: Incorrect syntax near ')'.

EXEC sp_executesql N'INSERT INTO [some.Name] ([Path], ...) OUTPUT INSERTED.[ID] 
VALUES (@0, @1, @2, @3, @4, @5, @6, @7, @8)', 
N'@0 float, @1 float, @2 float, @3 float, @4 varchar(), @5 int, @6 int, @7 varchar(), @8 int', 
@0 = 41.872668000000004, @1 = 17.291462, @2 = 9.137186, @3 = 9.137186, @4 = N'somestring', @5 = N'125708', @6 = N'39318', @7 = N'GUID', @8 = N'0'

Notice that @4 varchar() doesn't have value in parenthesis.
In table which doesn't contains '.' in name, it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions