Microsoft
Software
Hardware
Network
Question : Can I use a sql query file (.sql) with bcp.exe?
I'm currently using the SQL server tool bcp.exe to export data from my sql database.
I have many queries saved in .sql files and would like to use them with bcp.exe
I'm currently using the following command:
bcp.exe "SELECT * FROM dbase.dbo.items'" queryout "c:\output\output.csv" -c -T -t;
But I would like to use something like:
bcp.exe "my_query.sql" queryout "c:\output\output.csv" -c -T -t;
Does anyone know how to achieve this?
I can't seem to find the correct notation/parameters.
Thanks in advance,
Clyde.
Answer : Can I use a sql query file (.sql) with bcp.exe?
I started using SQLCMD instead.
I could remove the headers with the -h-1 option.
Thanks for the replies anyway!
Random Solutions
Do I need to run setup /ps and setup prepareAD if I am installing Excahnge 2010 into a an Excahnge 2007 organization? I insert the xch2010 on the new server and run teh comands there or on the D
Plsql tables in oracle
getting null
Event ID 3030, 3018, 3015 logged, lots of messages in Queues
How do I make a copy of a Sharepoint and move it to a virtual test environment on the domain?
Web hosting control panel
Could an expert please try to interpret this VBS code
Commit Data on lost focus
content.EI5
Problem with MS Outlook 2003