sqlcon 2.2.3
See the version list below for details.
dotnet add package sqlcon --version 2.2.3
NuGet\Install-Package sqlcon -Version 2.2.3
<PackageReference Include="sqlcon" Version="2.2.3" />
paket add sqlcon --version 2.2.3
#r "nuget: sqlcon, 2.2.3"
// Install sqlcon as a Cake Addin #addin nuget:?package=sqlcon&version=2.2.3 // Install sqlcon as a Cake Tool #tool nuget:?package=sqlcon&version=2.2.3
Operate databases(servers) like file system on the disk
sqlcon command: dir,cd,md,rd,del,type,ren,copy,comp,xcopy,cls,ver,echo,rem,set,import,export,mount,umount,open,save,edit,clean,execute,attrib
Support SQL Server, LocalDB, SQL Azure, SQL Server Express
Support Xml database on disk or web/ftp site which is used to compare database on 2 differnet networks.
Support unlimited database server connections
Compare data/schema between 2+ databases or database servers, and generate SQL script
Copy data/schema between 2+ databases or database servers
Search data rows, column, table, view, proc and database name by wildcard(*,?)
Edit data on GUI or console
Clean redundant rows
Delete rows with constraints
Generate data in format of json, CSV, and SQL script
Generate C# class: data contract, Linq to SQL, and entity framework
Execute SQL Script file
Support all SQL statements
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.5
- Tie (>= 2.0.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
8/21/2019 v2.2.3.0
Improvements/Enhancements:
1. support append to existing file on output. The command option is "/append"
2. for example:
export /INSERT /out:test.sql /append dbo.Products
7/10/2019 v2.2.2.0
Improvements/Enhancements:
1. export UPDATE script for data rows
1. export IF NOT EXISTS INSERT ELSE UPDATE script for data rows
7/8/2019 v2.2.1.0
Improvements/Enhancements:
1. export data contract class from last DataSet requires option /last
Example:
let output = @"C:\src\Solution1\Project1";
let ns = "Solution1.Project1";
SELECT TOP 10 * FROM CtrlRom;
export /ns:{ns} /using:Sys.Data /method:GetField /col:Cid,RomType /dc1 /out:{output} /class:CtrlRom /last
5/29/2019 v2.2.0.0
Improvements/Enhancements:
1. make class Command to public API
5/23/2019 v2.1.1.0
Bug Fixes:
1. create incorrect IF EXISTS DROP TABLE script if table schema is not "dbo"
2. treat path string as absolute path if path string starts with ".\" or "..\"
4/18/2019 v2.1.0.0
New Features:
1. add new statement ":label", "goto label", "if condition goto label" to sqlcon script(.sqc)
2. create enum class with attribute [Description("any words")] from SQL table
1/20/2019 v2.0.0.0
New Features:
1. open an Xml file of .net DataSet as database file. The connection string provider is "file/dataset/xml"
2. open an Xml file of a list of .net DataSet as database server file. The connection string provider is "file/datalake/xml"
3. open a Json file as database file. The connection string provider is "file/dataset/json"
4. open a Json file as database server file. The connection string provider is "file/datalake/json"
5. open data contract C# source code file as database file. The connection string provider is "file/c#"
1/10/2019 v1.9.8.0
Improvements/Enhancements:
1. command "call" can dump memory to output file when option /dump used.
1/5/2019 v1.9.7.0
Bug Fixes:
1. cannot generate flat style C# class for configuration array.
12/21/2018 v1.9.6.0
Improvements/Enhancements:
1. support property lambda getter and setter on the C# class builder
2. can generate ToDictionary/FromDictionary methods on the Entity class builder
12/7/2018 v1.9.5.0
Improvements/Enhancements:
1. in the command export tablename /delete, set foreign key = NULL when foreign key column is nullable.
12/3/2018 v1.9.4.0
Improvements/Enhancements:
1. export entity class for the methods of Copy/Clone/Compare/Equals
2. Compare columne name with ignoring case
11/16/2018 v1.9.3.0
Improvements/Enhancements:
1. export DROP TABLE Script, command "export tableName /drop [/if]"
10/3/2018 v1.9.2.2
Bug Fixes:
1. compare data on identity column or computed column
6/6/2018 v1.9.2.1
Bug Fixes:
1. IDENTITY(1,1) is on incorrect place when CREATE/ALTER a table
2/14/2018 v1.9.2.0
Improvements/Enhancements:
1. command "last" can display/load/save dataset xml file
2/6/2018 v1.9.1.0
Bug Fixes:
1. display wrong grid when console window resized
2/2/2018 v1.9.0.0
Improvements/Enhancements:
1. export /c# support user defined data type
2/1/2018 v1.8.10.0
Improvements/Enhancements:
1. add command "ltype" to display local file content. like windows console command "type" in cmd.exe
1/31/2018 v1.8.9.0
Improvements/Enhancements:
1. add command "check" to check key-value pair syntax, e.g. check dbo.config /syntax /key:Key /value:Value
12/07/2017 v1.8.8.0
Improvements/Enhancements:
1. redesign class stdio class. use cin,cout,cerr and clog instead.
2. add deployment and installation classes
10/23/2017 v1.8.6.0
Improvements/Enhancements:
1. display error message when connection string is not supported
2. upgrade command "md" which supports alias name of filter/locator
Bugs Fixes:
1. crash on command "rd" to delete locators.
09/26/2017 v1.8.5.0
Improvements/Enhancements:
1. export to .cfg file from dbo.config
2. import .cfg file to dbo.config
09/21/2017 v1.8.4.0
Improvements/Enhancements:
1. configuration excluded table is replaced by included table names for data comparison and data export.
2. create multiple C# classes from DataSet.xml
3. export data contract class for read only purpose
4. export SCUD SQL script to indicating directory
5. import .csv file to current table
09/20/2017 v1.8.3.0
Improvements/Enhancements:
1. support {expression} on the command line. e.g. "export /conf /out:{path}" where "path" is variable
09/19/2017 v1.8.2.0
Improvements/Enhancements:
1. create config classes for key=value pairs. command>export /conf /type:const /key:col1 /default:col2
09/11/2017 v1.8.1.0
Improvements/Enhancements:
1. disable query function on the user.cfg, use command batch file instead.
2. run batch file by arguments %1, %2, ....
09/11/2017 v1.8.0.0
Improvements/Enhancements:
1. sqlcon support command batch file (.sqc).
2. support command echo [on|off]
09/06/2017 v1.7.13.0
Improvements/Enhancements:
1. command export /c# uses current table name as class name
2. remove /c# option on the command> type, use export /c# instead.
3. add new command> last to display last query result.
Bugs Fixes:
1. command export /c# doesn't export UniqueIdentifier type column correctly.
06/27/2017 v1.7.12.0
Improvements/Enhancements:
1. command dir can match table name without dbo schema, for example, command>dir cust* can match dbo.cust*
Bugs Fixes:
1. code builder doesn't generate attributes
2. output of sqlcon cannot redirect when table displays.
05/19/2016 v1.7.11.0
New Features:
1. command>export /c# /ns:xxx /class:name /type:dict|[list] /out:path generate C# class of List
or Dictionary data from last table result
03/29/2017 v1.7.10.0
Bug fixes:
1. fixed namespace of some classes in syscore.dll
03/15/2017 v1.7.9.0
New Features:
1. first release to nuget