Hi,
Here's my question. How do I script out the CREATE syntax for a table, NOT using Management Studio. That is, I would like a SQL method of scripting the table out, much like what is provided by the "sp_helptext" function for scripting out stored procedures and triggers. The output would look like:
CREATE TABLE myTable ... etc
Does anyone know how to do this. Obviously, there is a way, because you can do it using the interface. But not sure how using only SQL commands.
Any help greatly appreciated!!
Thanks
Here's my question. How do I script out the CREATE syntax for a table, NOT using Management Studio. That is, I would like a SQL method of scripting the table out, much like what is provided by the "sp_helptext" function for scripting out stored procedures and triggers. The output would look like:
CREATE TABLE myTable ... etc
Does anyone know how to do this. Obviously, there is a way, because you can do it using the interface. But not sure how using only SQL commands.
Any help greatly appreciated!!
Thanks