sql-serverssms

How to get table definition of a table in SQL Server


I'm new to SQL Server. There are a couple of tables that in my team's database that we need to replicate. I was wondering if it's possible to get the DDL of the tables. Like for a specific table, get its "CREATE TABLE ...." definition???

I tried going to the Object Explorer -> right clicking the table and selecting Properties, but this doesn't give what I need.


Solution

  • You were close :) From management studio

    And there you go!

    enter image description here