I am using below command in BCP but it's not working. because EMP table is different server and config is in different server.
EMP table is in server1
config table is in server2
Running the BCP command from config table server but it's showing invalid config table. I think it's looking config table in EMP server. is there a way to fix this issue.
Select * from %database%.dbo.EMP (NOLOCK) where EMPID > (Select EMPID from %config_database%.dbo.Config ) and EMPIDID <= 10" queryout %folderpath%EMP.txt -c -T -S %servername%
srinivas