Forum Discussion

zelenskya's avatar
zelenskya
Occasional Contributor
12 years ago

SQL Query results export (CreateADOQuery, exec xp_cmdshell bcp)

Hello! I'm trying to execute SQL-query which export the result to txt-file: var Qry = ADO.CreateADOQuery(); Qry.SQL = "exec xp_cmdshell \'bcp \"SELECT * FROM EpicorDBEtalon.dbo.COA\" queryout...