Changing database for same connection is not working

More
2 years 11 months ago #20270 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)
Attachments:

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #20271 by admin
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.

More
2 years 11 months ago #20272 by HarryK
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

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #20273 by HarryK
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.

More
2 years 11 months ago #20274 by admin
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.

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #20275 by HarryK
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

Please Log in or Create an account to join the conversation.