https://github.com/erossini/splitsqlscript
Split an SQL script file into smaller chinks based on the specified maximum byte size.
https://github.com/erossini/splitsqlscript
split splitter sql sql-script sql-scripts
Last synced: 7 months ago
JSON representation
Split an SQL script file into smaller chinks based on the specified maximum byte size.
- Host: GitHub
- URL: https://github.com/erossini/splitsqlscript
- Owner: erossini
- Created: 2024-08-02T14:21:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-21T10:13:41.000Z (about 1 year ago)
- Last Synced: 2025-02-22T21:51:26.575Z (7 months ago)
- Topics: split, splitter, sql, sql-script, sql-scripts
- Language: C#
- Homepage: https://puresourcecode.com/dotnet/csharp/split-sql-script-tool/
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Split SQL script
Split an SQL script file into smaller chinks based on the specified maximum byte size.
For a description of the code, please visit my blog [PureSourceCode.com](https://puresourcecode.com/dotnet/csharp/split-sql-script-tool/).
## Usage
> SplitSQLScript [options]
## Options
| Option | Description | Default |
|-----------------------------|--------------------------------------------------------------------------------------|---------|
| file | The SQL script file to split. | |
| destination | The destination folder. If this is empty or null, the new files will be created in the same directory as the original file. | |
| limit | The maximum bytes limit for the new files. [default: 10240000] | 10240000 |
| add-go | If set to true the procedure will add the command GO at the end of each file. | True |
| version | Show version information | |
| ?, h, help | Show help and usage information | |