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.
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...
Comments
Post a Comment