I spent yesterday trying various approaches to this found on google. Couldn't get any to work.What I'm looking for is a powershell script that will work for a single table, generating the create script for the table, PK, indexes, foreign keys and ( ideally ) statistics.
↧