Home > Archive > MS SQL Server > October 2006 > How to enable direct catalog changes in sql 2005?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to enable direct catalog changes in sql 2005?
Søren Chrsitensen

2006-10-24, 6:28 pm

I need to run this sql statement: UPDATE sysobjects SET xtype = 'S' WHERE
name = 'dtproperties'

In Sql server 2000 I had to 'Allow modifications to be made directly to the
system catalog'.
How is this done in Sql server 2005?

Thanks,
Søren


Uri Dimant

2006-10-24, 6:28 pm

Hi
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/2e6e4eeb-b70b-4f45-a253-28ac4e595d75.htm




"Søren Chrsitensen" <xxxx@xxxx.com> wrote in message
news:uQFMMmv2GHA.476@TK2MSFTNGP06.phx.gbl...
>I need to run this sql statement: UPDATE sysobjects SET xtype = 'S' WHERE
>name = 'dtproperties'
>
> In Sql server 2000 I had to 'Allow modifications to be made directly to
> the system catalog'.
> How is this done in Sql server 2005?
>
> Thanks,
> Søren
>



Dan Guzman

2006-10-24, 6:28 pm

SQL 2005 does not allow direct updates to system tables. May I ask why you
need to do this?

--
Hope this helps.

Dan Guzman
SQL Server MVP

"Søren Chrsitensen" <xxxx@xxxx.com> wrote in message
news:uQFMMmv2GHA.476@TK2MSFTNGP06.phx.gbl...
>I need to run this sql statement: UPDATE sysobjects SET xtype = 'S' WHERE
>name = 'dtproperties'
>
> In Sql server 2000 I had to 'Allow modifications to be made directly to
> the system catalog'.
> How is this done in Sql server 2005?
>
> Thanks,
> Søren
>



Kalen Delaney

2006-10-24, 6:29 pm

Sysobjects is not a table in SQL 2005; it is a view.
The underlying table is undocumented , and doesn't even have column called
xtype.
So even if direct updates were allowed (as others have told you they are
not), you would need to do quite a bit of analysis on the definition of the
sysobjects view to figure out what you really wanted to change.

--
HTH
Kalen Delaney, SQL Server MVP


"Søren Chrsitensen" <xxxx@xxxx.com> wrote in message
news:uQFMMmv2GHA.476@TK2MSFTNGP06.phx.gbl...
>I need to run this sql statement: UPDATE sysobjects SET xtype = 'S' WHERE
>name = 'dtproperties'
>
> In Sql server 2000 I had to 'Allow modifications to be made directly to
> the system catalog'.
> How is this done in Sql server 2005?
>
> Thanks,
> Søren
>



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com