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
{{ message }}
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
CREATE TABLE [dbo].[User](
[UserId] [int] IDENTITY(1,1) NOT NULL,
[UserName] [varchar](24) NOT NULL,
PRIMARY KEY CLUSTERED ( [UserId] ASC )) ON [PRIMARY]
GO
insert into [dbo].[User] (UserName) values ('Jaxel')
When i run an ssc pull combined with the data configuration for the sample table above, the command does not add the SET IDENTITY_INSERT ON option for tables that includes identity. Current result
I expect the data query to include the SET IDENTITY_INSERT dbo.User ON; clause to be included prior to the insert, and turned off (SET IDENTITY_INSERT dbo.User OFF; ) post insertion.
Like so:
SET IDENTITY_INSERT [dbo].[User] ON;
insert into [dbo].[User] (UserId, UserName) values (1, 'Jaxel')
SET IDENTITY_INSERT [dbo].[User] OFF;
Steps to Reproduce
Execute the following command on SQL Server:
CREATE TABLE [dbo].[User](
[UserId] [int] IDENTITY(1,1) NOT NULL,
[UserName] [varchar](24) NOT NULL,
PRIMARY KEY CLUSTERED ( [UserId] ASC )) ON [PRIMARY]
GO
insert into [dbo].[User] (UserName) values ('Jaxel')
Type
What kind of issue is this?
Current Behavior
Given the following query:
When i run an ssc pull combined with the data configuration for the sample table above, the command does not add the SET IDENTITY_INSERT ON option for tables that includes identity. Current result
Expected behavior
I expect the data query to include the SET IDENTITY_INSERT dbo.User ON; clause to be included prior to the insert, and turned off (SET IDENTITY_INSERT dbo.User OFF; ) post insertion.
Like so:
Steps to Reproduce
Execute the following command on SQL Server:
Add the data clause to the ssc.json file:
Other Information
DB: SQL Server 2017
Platform: Win 10
The text was updated successfully, but these errors were encountered: