dotnet-storedprocsgen 10.1.0

dotnet tool install --global dotnet-storedprocsgen --version 10.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local dotnet-storedprocsgen --version 10.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-storedprocsgen&version=10.1.0
                    
nuke :add-package dotnet-storedprocsgen --version 10.1.0
                    

Stored procedures generator for SQL Server written in .NET Core tools

You can learn more about global tools here: https://docs.microsoft.com/en-us/dotnet/core/tools/global-tools

Usage: dotnet storedprocsgen [options]

Options: -?|-h|--help Show help information

-s|--server Server name

--database Database name

-t|--table Table name

-sc|--schema Schema name

-k|--kind Procedure kind: update|delete|insert|search|getbyid

-p|--prefix Stored procedure prefix

--drop Generate drop statement

-r|--rowVersionColumn Row version column name

-pc|--parentColumn Parent column name

-e|--search_columns Search columns, separated by |

-o|--order_by_columns Order by columns, separated by |

--upper Uppercase procedure name

This tool generates stored procedures. Use -s to specify server name and -d for the database name. Use --schema to target a specific schema, otherwise the tool keeps using the schema returned from table metadata. SSPI will be used.

Example for search generation: dotnet storedprocsgen -s . -d ContactManager -t Company -k search --drop -e City -o City

Example for schema-specific generation: dotnet storedprocsgen -s . -d ContactManager -t Company -sc sales -k getbyid

To install run

dotnet tool install dotnet-storedprocsgen -g

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
10.1.0 49 6/24/2026
10.0.1 114 5/1/2026
2.1.0 420 4/1/2024
2.0.0 543 12/27/2022
1.9.0 993 12/27/2022
1.7.0 932 4/18/2019
1.6.0 825 4/4/2019
1.5.0 830 2/20/2019
1.4.0 874 2/9/2019
1.3.0 1,001 9/29/2018
1.2.0 1,004 9/22/2018
1.1.0 1,104 9/6/2018
1.0.0 1,066 9/3/2018

1.0 Initital release
1.1 Implement search
1.2 Implement Get by Id
1.3 Implement Get by parent id
1.4 Change procedures to user output into to support triggers on that tables
1.5 Implement upper casing of procedure names
1.6 Address issue with updating primary key inside update procedure.  Update paramter size for search procedures
1.7 Address issue with nvarchar paramters were generated with double the size
1.8 Update Dotnet version
1.9 Update nugets
2.0 Update doc.  -d paramter does not work in latest dotnet tool.  Use --database
2.1 Security update and .net 8 adoption
10.0 Update to .net 10 and latest nugets and add support to procedures schema name
10.1 Fully qualify columns and tables with schema name.