Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Compare Table Structure in SQL Server 2005

Compare Table Structure in SQL Server 2005

Scheduled Pinned Locked Moved Database
databasesql-serversysadmin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi Experts i am using sql server 2005. i Have a table with Five Field structure Give Below Col Name Data type Code int Name varchar Address varchar Fee Decimal AddDate DateTime Now Suppose i change the Structure of the table like Col Name Data type Code int Name varchar Fee Decimal AddDate DateTime Address varchar and Save It now i want to Compare Stucture of Last modified and Current Table and know the alter position of the column name Dinesh Sharma

    M 1 Reply Last reply
    0
    • L Lost User

      Hi Experts i am using sql server 2005. i Have a table with Five Field structure Give Below Col Name Data type Code int Name varchar Address varchar Fee Decimal AddDate DateTime Now Suppose i change the Structure of the table like Col Name Data type Code int Name varchar Fee Decimal AddDate DateTime Address varchar and Save It now i want to Compare Stucture of Last modified and Current Table and know the alter position of the column name Dinesh Sharma

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Take a look at the system views, they have all this information. Columns have an ordinal position! If you are looking at synchronising the databases then look at the Red-Gate tools

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups