An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Split SQL script
Split an SQL script file into smaller chinks based on the specified maximum byte size.

![splitsqlscript](https://github.com/user-attachments/assets/c1e77e44-1a64-4612-a9c9-2b654bc9254d)

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 | |