Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BCP

Status
Not open for further replies.

be1s

Programmer
Dec 8, 2003
59
US
The results of the code below places the result of the query in a text file. Is there a way to include a header?

What is the syntax when you need to use a variable in the query?

What is the syntax when you need to use a string literal in the query?


EXEC master..xp_cmdshell 'bcp "select claim,adjrun,paybatch,referral,claim_status from ##closedreferrals" queryout F:\claimsnet\ClosedReferrals.txt -c -S CCMFISCALNT3 -T'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top