Hi Team,
I have 2 tables on two database servers and I want table1 to feed table 2.
I have a database user "WEB" on both the databases with diff passwords.
I open a SqlConnection connection for database2 and execute following thru ExecuteNonQuery .
Query = "INSERT INTO table2 SELECT * FROM Server1.Databas e.dbo.table1
On running this query, I am getting below error
TCP Provider: An existing connection was forcibly closed by the remote host. Login failed for user 'WEB'. OLE DB provider "SQLNCLI" for linked server Server1 returned message "Communicat ion link.
I searched a lot but I did not find related with my scenario.
Please let me know if this is not the way or if I am doing anytihng wrong.
Thanks in advance!!
I have 2 tables on two database servers and I want table1 to feed table 2.
I have a database user "WEB" on both the databases with diff passwords.
I open a SqlConnection connection for database2 and execute following thru ExecuteNonQuery .
Query = "INSERT INTO table2 SELECT * FROM Server1.Databas e.dbo.table1
On running this query, I am getting below error
TCP Provider: An existing connection was forcibly closed by the remote host. Login failed for user 'WEB'. OLE DB provider "SQLNCLI" for linked server Server1 returned message "Communicat ion link.
I searched a lot but I did not find related with my scenario.
Please let me know if this is not the way or if I am doing anytihng wrong.
Thanks in advance!!
Comment