Python Forum
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BCP Export sql data to csv
#2
You can do this with python, but what you have above is a Microsoft sqlcmd command for SQL server, and isn't python code.
In python, this can be done using pandas.
see pandas.DataFrame.to_csv
Reply


Messages In This Thread
BCP Export sql data to csv - by mg24 - Nov-19-2022, 05:16 PM
RE: BCP Export sql data to csv - by Larz60+ - Nov-19-2022, 08:37 PM
RE: BCP Export sql data to csv - by Pedroski55 - Nov-20-2022, 11:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Export data from PDF as tabular format zinho 5 920 Nov-11-2023, 08:23 AM
Last Post: Pedroski55
  How to keep columns header on excel without change after export data to excel file? ahmedbarbary 0 1,256 May-03-2022, 05:46 PM
Last Post: ahmedbarbary

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020