Skip to content

Provides a basic SQL DDL statement for a Table/View.

Notifications You must be signed in to change notification settings

jeffrose20/SQL_DDL_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

SQL_DDL_Generator

Provides a basic SQL DDL statement for a Table/View.

Created this SPROC after realizing that SQL Server does not provide a way to programatically create DDL for tables / views. The only way that I am aware of to get this information in SQL Server is through the GUI, which is not always efficient.

For tables and views. this will provide a partial DDL "Create" statement programatically. The following aspects of the DDL statement are included based on my specific use case.

  • Table/View name
  • Schema
  • Basic formatting of create statment
  • Column names
  • Columns data types
  • Identity columns (including seed_value and increment_value)

Also added an output parameter so that the DDL String that this SPROC produces can be returned as output, in addition to being printed to the console.

About

Provides a basic SQL DDL statement for a Table/View.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages