SQL server convert entire table to a script? -


i want create entire table script - columns, constraints, rows etc. script in sql server management studio. how do ?

right click on database in object explorer. go tasks > generate scripts.

enter image description here

choose "select specified objects" , expand tables , select table want. on "set script options" page, click advanced , make sure have table related stuff set true. there field in advanced called "types of data script" - set "schema , data" include insert statements.

note: i'm referencing management studio 2012 sql standard. assume it's same 2008, wrong...

enter image description here


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -