DataJuggler.SQLSnapshot
1.0.0
See the version list below for details.
dotnet add package DataJuggler.SQLSnapshot --version 1.0.0
NuGet\Install-Package DataJuggler.SQLSnapshot -Version 1.0.0
<PackageReference Include="DataJuggler.SQLSnapshot" Version="1.0.0" />
paket add DataJuggler.SQLSnapshot --version 1.0.0
#r "nuget: DataJuggler.SQLSnapshot, 1.0.0"
// Install DataJuggler.SQLSnapshot as a Cake Addin #addin nuget:?package=DataJuggler.SQLSnapshot&version=1.0.0 // Install DataJuggler.SQLSnapshot as a Cake Tool #tool nuget:?package=DataJuggler.SQLSnapshot&version=1.0.0
SQLSnapshot
DataJuggler.SQLSnapshot allows you to export a snapshot of a SQL Server database including all data rows to Excel with one line of code.
Pass in a connectionstring and a path to save.
using DataJuggler.SQLSnapshot;
// Set a connectionstring
string connectionString = ConnectionTextBox.Text;
// Set the export path
string exportPath = @"c:\Temp\DataJugglerExport.xlsx";
// export the result
SQLExportResult result = SQLExcelBridge.ExportSnapshot(connectionString, exportPath);
The file name for the Excel file will be saved and combined with a partial guid, so it will be unique in a folder.
Future updates and features may include:
- Ability to only write changes since last snapshot
- Export database schema
- Consolidate data to update a Test or Dev server with production data
The reason I created this project is SQL Backups are great for data protection, however this requires restoring the entire database to lookup values. There are also times I need to discover when data changed to help determine when a new bug was introduced.
If you have any problems, please create an issue and welcome any feedback as to if you think this project is valuable. I am considering building a Windows Service to create a commercial product out of this with more robust features.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- DataJuggler.Excelerate (>= 7.2.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.0.0 | 265 | 11/17/2023 |
1.1.2 | 164 | 8/14/2023 |
1.1.1 | 150 | 7/24/2023 |
1.1.0 | 144 | 7/17/2023 |
1.0.11 | 172 | 4/10/2023 |
1.0.10 | 181 | 4/10/2023 |
1.0.9 | 185 | 4/5/2023 |
1.0.8 | 192 | 4/5/2023 |
1.0.7 | 196 | 4/2/2023 |
1.0.6 | 201 | 4/2/2023 |
1.0.5 | 200 | 4/2/2023 |
1.0.4 | 208 | 4/1/2023 |
1.0.2 | 215 | 3/28/2023 |
1.0.1 | 194 | 3/28/2023 |
1.0.0 | 218 | 3/28/2023 |
This project combines two of my Nuget packages, DataJuggler.Net7 for database schema reading
and DataJuggler.Excelerate for Excel exporting.
I will create a video soon.