Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

BCP command

$
0
0

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




Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>