Skip to content

Commit f34a122

Browse files
committed
Update description
1 parent 67ecb29 commit f34a122

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# SQL Bulk Copy & Merge
22

3-
This library aims to make copying table data between SQL databases easier.
3+
This library aims to make easier and more efficient specific workflows in .NET that copy table data between SQL databases.
44

55
SQLBulkCopy is useful to copy between databases, but truncating the destination table each time before copying is not always possible or efficient.
6-
An alternative is to use SQLBulkCopy to copy to a temporary table and then run SQL MERGE between the temporary table and target.
7-
Some other solutions that do this require extra work defining the table schemas or are dependant on a stored proc.
6+
An alternative workflow is to use SQLBulkCopy to copy to a temporary table and then run SQL MERGE between the temporary table and target.
7+
Some other solutions that do this require extra work defining the table schemas or are dependant on a SQL stored proc.
88

99
This .NET library has the following methods:
1010

@@ -22,7 +22,7 @@ The specific steps it performs:
2222
### Usage:
2323
```
2424
var copyService = new SqlBulkCopyMergeService(sourceDbConnectionString, targetDbConnectionString);
25-
var result = await copyService.CopyAndMerge(sourceTable, targetTable);
25+
var result = await copyService.CopyAndMerge(sourceTableOrView, targetTable);
2626
Console.WriteLine("Rows Inserted: " + result.Inserted);
2727
Console.WriteLine("Rows Updated: " + result.Updated);
2828
Console.WriteLine("Rows Deleted: " + result.Deleted);
@@ -35,7 +35,7 @@ var columnMappings = new List<ColumnMapping>
3535
new ColumnMapping("id", "code"),
3636
new ColumnMapping("notes", "description")
3737
};
38-
var result = await copyService.CopyAndMerge(sourceTable, targetTable, columnMappings);
38+
var result = await copyService.CopyAndMerge(sourceTableOrView, targetTable, columnMappings);
3939
```
4040

4141
## CopyLatest
@@ -52,7 +52,7 @@ The result of the source query is directly copied into the target table using SQ
5252
### Usage:
5353
```
5454
var copyService = new SqlBulkCopyMergeService(sourceDbConnectionString, targetDbConnectionString);
55-
var result = await copyService.CopyLatest(sourceTable, targetTable, keyColumnName);
55+
var result = await copyService.CopyLatest(sourceTableOrView, targetTable, keyColumnName);
5656
Console.WriteLine("Rows Copied: " + result.RowsCopied);
5757
```
5858

src/SqlBulkCopyMerge/SqlBulkCopyMerge.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Authors>Steve Kirkegard</Authors>
55
<Product>SqlBulkCopyMerge</Product>
66
<TargetFrameworks>netstandard2.1;net5.0</TargetFrameworks>
7-
<Description>Copy data from a table in one database to a table in another database. It does not TRUNCATE the target table. Uses SQLBulkCopy behind the scenes.</Description>
7+
<Description>This library aims to make easier and more efficient specific workflows in .NET that copy table data between SQL databases.</Description>
88
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
99
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1010
</PropertyGroup>

0 commit comments

Comments
 (0)