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
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to remove column "rowguid" from table in SQL server 2008?

How to remove column "rowguid" from table in SQL server 2008?

Scheduled Pinned Locked Moved Database
databasehelpsql-servercomsysadmin
2 Posts 1 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.
  • H Offline
    H Offline
    Hy Chanhan
    wrote on last edited by
    #1

    Dear all, My hosting server is using SQL server 2008 and it is using replication. I have copied the databases from hosting to restore in my laptop then i see all tables are attached with "rowguid" column, i want to remove it from all tables but it did not allow me to remove at all. How to resolve this problem??? please see the error message below: ======================================================== TITLE: Microsoft SQL Server Management Studio ------------------------------ Drop failed for Column 'rowguid'. (Microsoft.SqlServer.Smo) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ\_RTM).100402-1540+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Drop+Column&LinkId=20476 ------------------------------ ADDITIONAL INFORMATION: An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) ------------------------------ It is invalid to drop the default constraint on the rowguid column that is used by merge replication. The schema change failed during execution of an internal replication procedure. For corrective action, see the other error messages that accompany this error message. The transaction ended in the trigger. The batch has been aborted. (Microsoft SQL Server, Error: 25005) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=25005&LinkId=20476 ------------------------------ BUTTONS: OK ------------------------------ ================================================= :( I am looking forward to hear from you. regards, Han

    H 1 Reply Last reply
    0
    • H Hy Chanhan

      Dear all, My hosting server is using SQL server 2008 and it is using replication. I have copied the databases from hosting to restore in my laptop then i see all tables are attached with "rowguid" column, i want to remove it from all tables but it did not allow me to remove at all. How to resolve this problem??? please see the error message below: ======================================================== TITLE: Microsoft SQL Server Management Studio ------------------------------ Drop failed for Column 'rowguid'. (Microsoft.SqlServer.Smo) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ\_RTM).100402-1540+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Drop+Column&LinkId=20476 ------------------------------ ADDITIONAL INFORMATION: An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) ------------------------------ It is invalid to drop the default constraint on the rowguid column that is used by merge replication. The schema change failed during execution of an internal replication procedure. For corrective action, see the other error messages that accompany this error message. The transaction ended in the trigger. The batch has been aborted. (Microsoft SQL Server, Error: 25005) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=25005&LinkId=20476 ------------------------------ BUTTONS: OK ------------------------------ ================================================= :( I am looking forward to hear from you. regards, Han

      H Offline
      H Offline
      Hy Chanhan
      wrote on last edited by
      #2

      I just found a solution it helped me a lot now. To remove all ""rowguid" column from all table in SQL server which used replication you just run this script "exec sp_removedbreplication" in sql query and then all rowguid column will be deleted. thanks, Han :)

      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