ethergeek 0 Report post Posted January 3, 2008 So I have an application that's using SQL Server Compact Edition 2005. I need to export the table schema to a file of SQL statements, containing only the schema...no data, no rows, just the tables, indexes, and constraints.Now, when using SQL 2000/2005 I just use the script table as... feature to do exactly this, but because SQL server Compact Edition doesn't have the support for it, I can't do this.The tables in SQL Server Compact *do* have the information_schema views though, so I was wondering if anyone knows of any tools that can read these views and generate sql ce code to build the tables? Share this post Link to post Share on other sites
iGuest 3 Report post Posted June 11, 2010 script to exctract tables with unique columns from MS SQL serverScript Tables On Sql Server CompactI have a very large MS SQL 2005 server with so many different databases and tables I am looking for how I can authomatically extract some tables that has some unique columns in them from the database Schemas without having to go through the schemas one by one and then go through the tables one by one to search for the one thathas the require columns. I believe this can be achieved with a PHP script or Oracle PLSQl. please help!-reply by Irene Share this post Link to post Share on other sites