- Posts: 23
- Thank you received: 2
Changing database for same connection is not working
2 years 11 months ago #20270
by HarryK
Changing database for same connection is not working was created by HarryK
When I change the database where my SQL connection is pointing to, this is not reflected in the dataflow correctly and the flow does not run.
Seems to be a problem with the insert identity statement
Advanced ETL Processor Version: 6.3.6.16
Windows 10
Database version: MSSQl v12 (Azure db)
Seems to be a problem with the insert identity statement
Advanced ETL Processor Version: 6.3.6.16
Windows 10
Database version: MSSQl v12 (Azure db)
Please Log in or Create an account to join the conversation.
2 years 11 months ago #20271
by admin
Mike
ETL Architect
Replied by admin on topic Changing database for same connection is not working
Can you post here insert script as text so we can see it, please
Mike
ETL Architect
Please Log in or Create an account to join the conversation.
2 years 11 months ago #20272
by HarryK
Replied by HarryK on topic Changing database for same connection is not working
SET NOCOUNT ON;
SET IDENTITY_INSERT [FMS].[dbo].[AspNetUsers] ON
insert into [FMS].[dbo].[AspNetUsers] ("Id","Email","EmailConfirmed","PasswordHash","SecurityStamp","PhoneNumber","PhoneNumberConfirmed","TwoFactorEnabled","LockoutEnabled","AccessFailedCount","UserName" ) values (?,?,?,?,?,?,?,?,?,?,? )
SET IDENTITY_INSERT [FMS].[dbo].[AspNetUsers] OFF
SET NOCOUNT OFF
SET IDENTITY_INSERT [FMS].[dbo].[AspNetUsers] ON
insert into [FMS].[dbo].[AspNetUsers] ("Id","Email","EmailConfirmed","PasswordHash","SecurityStamp","PhoneNumber","PhoneNumberConfirmed","TwoFactorEnabled","LockoutEnabled","AccessFailedCount","UserName" ) values (?,?,?,?,?,?,?,?,?,?,? )
SET IDENTITY_INSERT [FMS].[dbo].[AspNetUsers] OFF
SET NOCOUNT OFF
Please Log in or Create an account to join the conversation.
2 years 11 months ago #20273
by HarryK
Replied by HarryK on topic Changing database for same connection is not working
I have already uploaded a screenshot of the dialog to show the correct table names on the left with the incorrect insert statement
Please Log in or Create an account to join the conversation.
2 years 11 months ago #20274
by admin
Mike
ETL Architect
Replied by admin on topic Changing database for same connection is not working
I am very confused here why you are using Insert statement to load the data?
I think in your case this the slowest way of loading the data
Our software will not modify insert statement for you if you change the database, you have to modify it yourself.
I think in your case this the slowest way of loading the data
Our software will not modify insert statement for you if you change the database, you have to modify it yourself.
Mike
ETL Architect
Please Log in or Create an account to join the conversation.
2 years 11 months ago #20275
by HarryK
Replied by HarryK on topic Changing database for same connection is not working
I am not using insert statement (Use user defined SQL is not ticked), this was just to show you what was being generated.
I just tried to run the dataflow as it was with the changed connection properties and just keeps failing
I just tried to run the dataflow as it was with the changed connection properties and just keeps failing
Please Log in or Create an account to join the conversation.