sqlcon 2.4.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package sqlcon --version 2.4.3
NuGet\Install-Package sqlcon -Version 2.4.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="sqlcon" Version="2.4.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add sqlcon --version 2.4.3
#r "nuget: sqlcon, 2.4.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install sqlcon as a Cake Addin
#addin nuget:?package=sqlcon&version=2.4.3

// Install sqlcon as a Cake Tool
#tool nuget:?package=sqlcon&version=2.4.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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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.

Version Downloads Last updated
2.6.1 1,194 1/24/2022
2.4.3 921 6/17/2021
2.4.0 977 4/9/2021
2.3.0 1,317 10/25/2020
2.2.3 1,216 8/22/2019
2.1.0 1,202 4/19/2019
1.8.3 1,507 9/21/2017
1.7.10 1,535 3/30/2017
1.7.9 1,512 3/30/2017

6/17/2021 v2.4.3.0
   Bug Fixes:
     1. Current database is not switched on calling .sqc script after database is switched by command chdir.

 4/11/2021 v2.4.2.0
Bug Fixes:
1. Change PropertyName to PropertyName1 when PropertyName==ClassName in dc1

 4/11/2021 v2.4.1.0
Improvements/Enhancements:
1. Command "dir" can display stored procedures and functions.
2. Command "type" can display definition of stored procedures and functions.

 4/3/2021 v2.4.0.0
Improvements/Enhancements:
1. Import/extract string from C# source code into SQL table for string resource.
2. Display progress bar during exporting SQL table data rows into SQL script.
3. Export INSERT INTO VALUES without column-name to reduce script size.

Bug Fixes:
1. Crash when sqlcon doesn't have permssion to create clog file in the disk.
2. Fixed bug on Query expression when a instance of class is used on Select Linq Expression.

 2/12/2021 v2.3.4.0
Bug Fixes:
1. Cannot copy or xcopy table rows when table schema is not dbo

     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