views:

10

answers:

1

In SSMS is there a way to generate a script for table creation based on the table output by a view?

A: 

There is no simple way of doing such a thing, because selected data is not sufficient to describe the table. Eg. there might be identity column and you won't know or some column may be nullable but actual data has no nulls and so on.

This is in general a complex task that requires a dedicated program, not an ordinary database management utility.

kubal5003

related questions