Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

SQL Server Metadata DDL scripts

$
0
0

I need to get DDL scripts for few tables in SQL server. In Oracle I did the same using below query

Select DBMS_METADATA.GET_DDL('TABLE','TABLE_NAME','DATABASE_NAME') AS DB from DUAL";

Any Idea how to get the same in SQL server in case we have the table name and corresponding schema name???


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>