Link to home
Start Free TrialLog in
Avatar of chokka
chokkaFlag for United States of America

asked on

How to export sql to csv using BCP?

How to export sql to csv using BCP?

1) My sql server does not have office. So we are not planning to use SSIS package.

2) I have a stored procedure which has input parameter of getting the file name.

SP returns 25 columns. We wanted to save the data in a csv file. We will have another SP which will send email alert with this csv file attached to the email distribution list.

How to export a stored procedure which has input parameter to csv file?
ASKER CERTIFIED SOLUTION
Avatar of lcohan
lcohan
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chokka

ASKER

Great , very helpful ..

Just trying to pass a stored procedure with paramater ..