Skip to content

Generate create, read, update, delete stored procedure for table in SQL SEREVR

License

Notifications You must be signed in to change notification settings

jdcomplex/CRUD-Stored-Procedures-Generator-For-SQL-SERVER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

CRUD-Stored-Procedures-Generator-For-SQL-SERVER

Generate create, read, update, delete stored procedure for single table/table with prefix/schema in SQL SEREVR. This stored procedure generate six stored procedure for specified table. Insert Only, Update Only, Select Only (All or By ID), Delete Only, Insert/Update in one stored procedue, Get List (with pagination)

Examples

EXEC [dbo].[usp_GenerateCRUD] 'HumanResources.Employee','','Kamal Khanal' -- table name and author name

EXEC [dbo].[usp_GenerateCRUD] '','HumanResources', 'Kamal Khanal' --table name, prefix (all schema/table name start with HumanResources) and author name

EXEC [dbo].[usp_GenerateCRUD] 'HumanResources.Employee','', 'Kamal Khanal',1 --table name, prefix, author name with nolock hint

EXEC [dbo].[usp_GenerateCRUD] 'HumanResources.Employee','', 'Kamal Khanal',0,1 --table name, prefix, author name and execute

EXEC [dbo].[usp_GenerateCRUD] 'HumanResources.Employee_Temporal', '', 'Kamal Khanal'

image

image

About

Generate create, read, update, delete stored procedure for table in SQL SEREVR

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages