{"id":20299142,"url":"https://github.com/pregress/sqlserverbulkcopytool","last_synced_at":"2026-04-12T23:41:59.115Z","repository":{"id":146045051,"uuid":"291944454","full_name":"pregress/SqlServerBulkCopyTool","owner":"pregress","description":"Command line tool, to copy data between a source an destination SQL server.","archived":false,"fork":false,"pushed_at":"2020-10-13T06:26:11.000Z","size":78,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-09T21:38:49.834Z","etag":null,"topics":["bulk-loader","datapump","mssql","sql-server","tsql"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pregress.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-01T08:42:56.000Z","updated_at":"2022-04-21T10:11:29.000Z","dependencies_parsed_at":"2023-07-10T15:01:37.876Z","dependency_job_id":null,"html_url":"https://github.com/pregress/SqlServerBulkCopyTool","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pregress/SqlServerBulkCopyTool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pregress%2FSqlServerBulkCopyTool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pregress%2FSqlServerBulkCopyTool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pregress%2FSqlServerBulkCopyTool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pregress%2FSqlServerBulkCopyTool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pregress","download_url":"https://codeload.github.com/pregress/SqlServerBulkCopyTool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pregress%2FSqlServerBulkCopyTool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280949320,"owners_count":26418950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bulk-loader","datapump","mssql","sql-server","tsql"],"created_at":"2024-11-14T16:13:39.635Z","updated_at":"2025-10-25T11:44:06.214Z","avatar_url":"https://github.com/pregress.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SqlServerBulkCopyTool\n\u003cimg src=\"https://github.com/pregress/SqlServerBulkCopyTool/raw/master/logo.png\" width=\"200\"\u003e\n\n\n:bullettrain_side: Command line tool, to bulk copy data between a source an destination SQL server. \n\nWhen you need to move data between 2 SQL server instances you can do this with [SqlBulkCopy](https://docs.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlbulkcopy). These tool eliminates the coding and allows for passing in the arguments to copy the data between the 2 servers.\n\n![CI](https://github.com/pregress/SqlServerBulkCopyTool/workflows/CI/badge.svg)\n![Release](https://github.com/pregress/SqlServerBulkCopyTool/workflows/Release/badge.svg)\n\nYou can download the single exe from the [release page](https://github.com/pregress/SqlServerBulkCopyTool/releases)\n\n# Arguments\n| Argument      | Description   | Required  | Default |\n| ------------- | ------------- |------------- |------------- |\n| source-connectionstring | The connection string of the source database. | yes | |\n| source-query | The tSQL query to retrieve data from the source database. | yes |  |\n| destination-connectionstring | The connection string of the destination database. | yes |  |\n| destination-tablename | The name of the table in the destination database where the data is inserted. | yes |  |\n| bulk-insert-timeout | A timeout in seconds to execute the bulk insert. | no | 60 |\n| bulk-copy-options | The [SqlBulkCopyOptions](https://docs.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlbulkcopyoptions#fields) as provided by Microsoft. | no | Default |\n\n\n## Examples\n\n### Bulk copy from localhost to a remote sql server with integrated security\n\n```\nSqlServerBulkCopyTool.exe --source-connectionstring \"Server=localhost;Database=TestDb;Integrated Security=SSPI;\" --source-query \"SELECT * FROM MySourceTable\" --destination-connectionstring \"Server=tcp:remote.sample-server.com,1433;Database=TestDb;Integrated Security=SSPI;\" --destination-tablename \"MyDestinationTable\"\n```\n\n### Bulk copy from localhost to a remote sql server with bulk copy options: TableLock and CheckConstrains\n\nExecutes the bulk copy with table lock and check constraints.\n\n```\nSqlServerBulkCopyTool.exe --source-connectionstring \"Server=localhost;Database=TestDb;Integrated Security=SSPI;\" --source-query \"SELECT * FROM MySourceTable\" --destination-connectionstring \"Server=tcp:remote.sample-server.com,1433;Database=TestDb;Integrated Security=SSPI;\" --destination-tablename \"MyDestinationTable\" --bulk-copy-options TableLock,CheckConstraints\n```\n\n### :x: Known limitations\n- Table definition between the 2 instances/databases should be the same.\n- There is no error handling, assuming the user can understand the exceptions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpregress%2Fsqlserverbulkcopytool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpregress%2Fsqlserverbulkcopytool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpregress%2Fsqlserverbulkcopytool/lists"}