pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/liolb/sql2csv

https://github.githubassets.com/assets/primer-70be7debc79a8eff.css" /> GitHub - liolb/sql2csv: Export SQL Server Table data to CSV · GitHub
Skip to content

liolb/sql2csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

SQL Server Tables to CSV Exporter PowerShell Script

This PowerShell script efficiently exports data from multiple SQL Server tables to CSV files. It utilizes connection pooling, optimized queries, and batch processing to handle large datasets.

Features:

  • Multiple Table Support: Exports data from a list of specified tables.
  • Connection Pooling: Reuses database connections for improved performance.
  • Batch Processing: Exports data in batches to handle large tables efficiently.
  • Primary Key Ordering: Orders data by the primary key of each table.
  • Customizable Output: Optionally specify a single output file or separate files for each table.
  • Error Handling: Includes basic error handling and logging.

Usage:

  • Configure Parameters: Modify the script parameters to specify the server, database, table list, and output file options.
  • Run the Script: Execute the script with the desired parameters.

Example Usage:

.\SQL2CSV.ps1 -Server "your_server" -Database "your_database" -TableList "Table1,Table2,Table3" -OutputDirectory "c:/sql2csv_export/"

Releases

No releases published

Packages

 
 
 

Contributors

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy