I have a database and I want to grant an external user access to only one
view in my database. Using SQL Studio I generated these scripts and ran
them.
Once I did that I logged into the database as [loginExternalApp] and was
happy that I could not see any of the raw tables. But I found that I could
SELECT from all of the views in my database, not just the one I granted the
SELECT to.
What did I miss? I thought by default that the new role would have no
permissions for anything that I did not grant. It doesn't seem right that I
would need to specifically deny access to all of the views.
Any thoughts would be welcome.
Richard Speiss
Here is the script that I ran
USE [master]
GO
CREATE LOGIN [loginExternalApp] WITH PASSWORD=N'password',
DEFAULT_DATABASE=[TestDB], CHECK_EXPIRATION=OFF
GO
USE [TestDB]
GO
CREATE USER [userExternalApp] FOR LOGIN [loginExternalApp]
GO
CREATE ROLE [roleExternalApp]
GO
EXEC sp_addrolemember N'roleExternalApp', N'useExternalApp'
GO
GRANT SELECT ON [dbo].[vTestView] TO [roleExternalApp]
GOHi Richard,
Verify the permissions granted to the public role. Every user is a member of
the public role and has access to the objects granted to it.
Right-click any of these views in Management Studio, select Properties and
Permissions. See if permissions have been granted to public.
Also, you are not talking about catalog views, right?
Hope this helps,
Ben Nevarez
"Richard Speiss" wrote:
> I have a database and I want to grant an external user access to only one
> view in my database. Using SQL Studio I generated these scripts and ran
> them.
> Once I did that I logged into the database as [loginExternalApp] and was
> happy that I could not see any of the raw tables. But I found that I could
> SELECT from all of the views in my database, not just the one I granted the
> SELECT to.
> What did I miss? I thought by default that the new role would have no
> permissions for anything that I did not grant. It doesn't seem right that I
> would need to specifically deny access to all of the views.
> Any thoughts would be welcome.
> Richard Speiss
>
> Here is the script that I ran
> USE [master]
> GO
> CREATE LOGIN [loginExternalApp] WITH PASSWORD=N'password',
> DEFAULT_DATABASE=[TestDB], CHECK_EXPIRATION=OFF
> GO
> USE [TestDB]
> GO
> CREATE USER [userExternalApp] FOR LOGIN [loginExternalApp]
> GO
> CREATE ROLE [roleExternalApp]
> GO
> EXEC sp_addrolemember N'roleExternalApp', N'useExternalApp'
> GO
> GRANT SELECT ON [dbo].[vTestView] TO [roleExternalApp]
> GO
>
>|||Thanks, those views are granting 'public' accessibility (user views, not
catalog views)
I don't see an easy way to disable the 'public' role though or to get my
[userExternalApp] to not be part of 'public'.
Is there any way to disable the public role or do I need to explicitly
revoke permissions to public on each view (and/or table, etc)?
Thanks again
Richard
"Ben Nevarez" <bnevarez@.no.spam.please.sunamerica.com> wrote in message
news:449C85C5-A8D8-49F5-8480-80584D1E91CD@.microsoft.com...
> Hi Richard,
> Verify the permissions granted to the public role. Every user is a member
> of
> the public role and has access to the objects granted to it.
> Right-click any of these views in Management Studio, select Properties and
> Permissions. See if permissions have been granted to public.
> Also, you are not talking about catalog views, right?
> Hope this helps,
> Ben Nevarez
>
>
> "Richard Speiss" wrote:
>> I have a database and I want to grant an external user access to only one
>> view in my database. Using SQL Studio I generated these scripts and ran
>> them.
>> Once I did that I logged into the database as [loginExternalApp] and was
>> happy that I could not see any of the raw tables. But I found that I
>> could
>> SELECT from all of the views in my database, not just the one I granted
>> the
>> SELECT to.
>> What did I miss? I thought by default that the new role would have no
>> permissions for anything that I did not grant. It doesn't seem right
>> that I
>> would need to specifically deny access to all of the views.
>> Any thoughts would be welcome.
>> Richard Speiss
>>
>> Here is the script that I ran
>> USE [master]
>> GO
>> CREATE LOGIN [loginExternalApp] WITH PASSWORD=N'password',
>> DEFAULT_DATABASE=[TestDB], CHECK_EXPIRATION=OFF
>> GO
>> USE [TestDB]
>> GO
>> CREATE USER [userExternalApp] FOR LOGIN [loginExternalApp]
>> GO
>> CREATE ROLE [roleExternalApp]
>> GO
>> EXEC sp_addrolemember N'roleExternalApp', N'useExternalApp'
>> GO
>> GRANT SELECT ON [dbo].[vTestView] TO [roleExternalApp]
>> GO
>>
Showing posts with label ran. Show all posts
Showing posts with label ran. Show all posts
Thursday, March 29, 2012
Tuesday, March 27, 2012
Adding a new article to Transactional replication
Hi,
I added a new article to an already existing publication via EM,
and reintialized it. When the snapshot agent ran the change was
replicated, but the snapshot agent took the snapshot of all the
articles in the publication about 85 of them, instead of just
replicating the change.
IS there a way to reintialize an article in the publication, so
snapshot agent would only snap that one article instead of the whole
publication?
Does this also apply to adding a new column or dropping a column from a
publication?
Thanks for your help.
GG
for sql 2000 replicating to sql 2000 subscribers, only the article should be
replicated. I am not sure what happened in your case.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"GG" <gdabbara@.gmail.com> wrote in message
news:1117574970.901699.85980@.f14g2000cwb.googlegro ups.com...
> Hi,
> I added a new article to an already existing publication via EM,
> and reintialized it. When the snapshot agent ran the change was
> replicated, but the snapshot agent took the snapshot of all the
> articles in the publication about 85 of them, instead of just
> replicating the change.
> IS there a way to reintialize an article in the publication, so
> snapshot agent would only snap that one article instead of the whole
> publication?
> Does this also apply to adding a new column or dropping a column from a
> publication?
>
> Thanks for your help.
> GG
>
|||You mention that you reinitialized it - this is the reason why all articles
were created by the snapshot agent. After adding the article, you just need
to run the snapshot agent and then the distribution agent to get the single
article.
Rgds,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
|||Thanks for your responses. I will try just starting the snapshot agent
instead of reintializing the whole publication. I was under the
impression that snapshot agent doesn't know about the change unless I
reintialize.
Thanks
GG
|||Adding an article is normally taken care of when running the snapshot. There
are some exceptions - if the initial publication was a nosync one, then the
snapshot of the new article won't generate anything by default. However
assuming this is niot the case you'll be fine.
Rgds,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
I added a new article to an already existing publication via EM,
and reintialized it. When the snapshot agent ran the change was
replicated, but the snapshot agent took the snapshot of all the
articles in the publication about 85 of them, instead of just
replicating the change.
IS there a way to reintialize an article in the publication, so
snapshot agent would only snap that one article instead of the whole
publication?
Does this also apply to adding a new column or dropping a column from a
publication?
Thanks for your help.
GG
for sql 2000 replicating to sql 2000 subscribers, only the article should be
replicated. I am not sure what happened in your case.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"GG" <gdabbara@.gmail.com> wrote in message
news:1117574970.901699.85980@.f14g2000cwb.googlegro ups.com...
> Hi,
> I added a new article to an already existing publication via EM,
> and reintialized it. When the snapshot agent ran the change was
> replicated, but the snapshot agent took the snapshot of all the
> articles in the publication about 85 of them, instead of just
> replicating the change.
> IS there a way to reintialize an article in the publication, so
> snapshot agent would only snap that one article instead of the whole
> publication?
> Does this also apply to adding a new column or dropping a column from a
> publication?
>
> Thanks for your help.
> GG
>
|||You mention that you reinitialized it - this is the reason why all articles
were created by the snapshot agent. After adding the article, you just need
to run the snapshot agent and then the distribution agent to get the single
article.
Rgds,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
|||Thanks for your responses. I will try just starting the snapshot agent
instead of reintializing the whole publication. I was under the
impression that snapshot agent doesn't know about the change unless I
reintialize.
Thanks
GG
|||Adding an article is normally taken care of when running the snapshot. There
are some exceptions - if the initial publication was a nosync one, then the
snapshot of the new article won't generate anything by default. However
assuming this is niot the case you'll be fine.
Rgds,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
Labels:
adding,
agent,
article,
database,
existing,
microsoft,
mysql,
oracle,
publication,
ran,
reintialized,
replication,
server,
snapshot,
sql,
transactional,
via,
wasreplicated
Sunday, February 12, 2012
Ad hoc udpates to system tables in 2005 GONE!
Is it true? I enabled this and when I ran RECONFIGURE it said this was not
supported. Is there another option I have to set first?Yes, it is true. In fact, we cannot even see the real system tables anymore.
All we can see
(compatible views: sysobjects, catalog views: sys.objects and information sc
hema views: TABLES) are
views.
Why would you want to hack the system tables? If you have a real case for th
is, let MS know and they
should provide you with a supported interface to accomplish what you need:
http://lab.msdn.microsoft.com/productfeedback/
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
news:uDOfDuQdGHA.3712@.TK2MSFTNGP03.phx.gbl...
> Is it true? I enabled this and when I ran RECONFIGURE it said this was no
t supported. Is there
> another option I have to set first?
>|||Hi Tim
You can't even SEE system tables in SQL 2005, much less change them.
What do you want to do that you think you need this option for? You need to
figure out another way to do what you want to do that doesn't involve
updating system tables.
HTH
Kalen Delaney, SQL Server MVP
www.solidqualitylearning.com
"Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
news:uDOfDuQdGHA.3712@.TK2MSFTNGP03.phx.gbl...
> Is it true? I enabled this and when I ran RECONFIGURE it said this was
> not supported. Is there another option I have to set first?
>|||We have a backup from one server that was restored on a different server.
The uid that owns some objects in that db don't match the uid as defined on
that server...i.e.
Server 1
uid=1 name=web
Server 2
uid=2 name=web
Can't make permissions work right unless these uid's sync up. In the past,
I'd just momentarily enable ad-hoc updates and update the the uid in the
database sysusers table. This always fixed the issue before.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message
news:O64pv8QdGHA.4264@.TK2MSFTNGP05.phx.gbl...
> Hi Tim
> You can't even SEE system tables in SQL 2005, much less change them.
> What do you want to do that you think you need this option for? You need
> to figure out another way to do what you want to do that doesn't involve
> updating system tables.
> --
> HTH
> Kalen Delaney, SQL Server MVP
> www.solidqualitylearning.com
>
> "Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
> news:uDOfDuQdGHA.3712@.TK2MSFTNGP03.phx.gbl...
>|||This is what sp_change_users_login is for...
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
news:eNiSFITdGHA.1856@.TK2MSFTNGP03.phx.gbl...
> We have a backup from one server that was restored on a different server.
The uid that owns some
> objects in that db don't match the uid as defined on that server...i.e.
> Server 1
> uid=1 name=web
> Server 2
> uid=2 name=web
>
> Can't make permissions work right unless these uid's sync up. In the past
, I'd just momentarily
> enable ad-hoc updates and update the the uid in the database sysusers tabl
e. This always fixed
> the issue before.
>
> "Kalen Delaney" <replies@.public_newsgroups.com> wrote in message
> news:O64pv8QdGHA.4264@.TK2MSFTNGP05.phx.gbl...
>|||Thanks...that is just what I needed. I probably just need to take an
evening and go through BOL entries for all those system procs.....I just
never seem to "have the time" yet we can make time to continually do it the
hard way....
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:uAI$qrTdGHA.5036@.TK2MSFTNGP05.phx.gbl...
> This is what sp_change_users_login is for...
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
> news:eNiSFITdGHA.1856@.TK2MSFTNGP03.phx.gbl...
>|||Kalen,
What do you mean by "can't see" them? They still seem very accessible
to me:
select top 20 name from sysobjects where type='U'
name
--
TS_ORDER_BROKER
CS_TEST_GROUP_PRIVILEGE
FIX_TRADER
CSM_STATE
TS_ORDER_BROKER_TICKET
IMP_FEED
CSM_STATE_LIST
TS_ORDER_CODE
CSM_STATE_LIST_MEMBER
RTAPI_COLUMN
TS_ORDER_CONFIG
CSM_TIME_ZONES
CS_VIEW
TS_ORDER_FUND
IMP_FEED_COLUMN
TS_ORDER_GEN
CSM_TRANSACTION
IMP_FEED_TABLE
CSM_TRANSACTION_ORDER
CS_VIEW_TYPE_COLUMN
Regards,
E
Kalen Delaney wrote:
> Hi Tim
> You can't even SEE system tables in SQL 2005, much less change them.
> What do you want to do that you think you need this option for? You need t
o
> figure out another way to do what you want to do that doesn't involve
> updating system tables.
>|||A query from sysobjects where type = 'U' will return user
tables. You are looking at user tables. This thread is
discussing system tables.
-Sue
On Fri, 12 May 2006 09:36:10 -0400, Eric McGrane
<EricMcGrane@.crd.com> wrote:
[vbcol=seagreen]
>Kalen,
>What do you mean by "can't see" them? They still seem very accessible
>to me:
>select top 20 name from sysobjects where type='U'
> name
> --
> TS_ORDER_BROKER
> CS_TEST_GROUP_PRIVILEGE
> FIX_TRADER
> CSM_STATE
> TS_ORDER_BROKER_TICKET
> IMP_FEED
> CSM_STATE_LIST
> TS_ORDER_CODE
> CSM_STATE_LIST_MEMBER
> RTAPI_COLUMN
> TS_ORDER_CONFIG
> CSM_TIME_ZONES
> CS_VIEW
> TS_ORDER_FUND
> IMP_FEED_COLUMN
> TS_ORDER_GEN
> CSM_TRANSACTION
> IMP_FEED_TABLE
> CSM_TRANSACTION_ORDER
> CS_VIEW_TYPE_COLUMN
>Regards,
>E
>
>Kalen Delaney wrote:|||sysobjects is now a system view. it's no longer a _table_.
select objectproperty(object_id('sysobjects'),'
IsTable')
-oj
"Eric McGrane" <EricMcGrane@.crd.com> wrote in message
news:uX7rIkcdGHA.4576@.TK2MSFTNGP05.phx.gbl...[vbcol=seagreen]
> Kalen,
> What do you mean by "can't see" them? They still seem very accessible to
> me:
> select top 20 name from sysobjects where type='U'
> name
> --
> TS_ORDER_BROKER
> CS_TEST_GROUP_PRIVILEGE
> FIX_TRADER
> CSM_STATE
> TS_ORDER_BROKER_TICKET
> IMP_FEED
> CSM_STATE_LIST
> TS_ORDER_CODE
> CSM_STATE_LIST_MEMBER
> RTAPI_COLUMN
> TS_ORDER_CONFIG
> CSM_TIME_ZONES
> CS_VIEW
> TS_ORDER_FUND
> IMP_FEED_COLUMN
> TS_ORDER_GEN
> CSM_TRANSACTION
> IMP_FEED_TABLE
> CSM_TRANSACTION_ORDER
> CS_VIEW_TYPE_COLUMN
> Regards,
> E
>
> Kalen Delaney wrote:|||Ok, you caught me...
And Sue and oj caught you...
You are querying a view, as oj pointed out, not a system table. However, you
could change your query to look for System tables
select top 20 name from sysobjects where type='S'
and you will see some of the new system table names, which are very strange
and unlike anything we had in SQL Server 2000.(As oj mentions, sysobjects,
sysindexes, et al, are now VIEWS.)
But, what I actually meant was that you cannot see any of the data in the
system tables, at least not without jumping through hoops.
For example, one of my favorite system tables, whose name you will see when
you run the query above, is syshobts. So although you can see its name in
the sysobjects view, when you try to query it, with or without the schema
name, SELECT * from syshobts, you will get an error:
Msg 208, Level 16, State 1, Line 1
Invalid object name 'sys.syshobts'.
HTH
Kalen Delaney, SQL Server MVP
www.solidqualitylearning.com
"Eric McGrane" <EricMcGrane@.crd.com> wrote in message
news:uX7rIkcdGHA.4576@.TK2MSFTNGP05.phx.gbl...[vbcol=seagreen]
> Kalen,
> What do you mean by "can't see" them? They still seem very accessible to
> me:
> select top 20 name from sysobjects where type='U'
> name
> --
> TS_ORDER_BROKER
> CS_TEST_GROUP_PRIVILEGE
> FIX_TRADER
> CSM_STATE
> TS_ORDER_BROKER_TICKET
> IMP_FEED
> CSM_STATE_LIST
> TS_ORDER_CODE
> CSM_STATE_LIST_MEMBER
> RTAPI_COLUMN
> TS_ORDER_CONFIG
> CSM_TIME_ZONES
> CS_VIEW
> TS_ORDER_FUND
> IMP_FEED_COLUMN
> TS_ORDER_GEN
> CSM_TRANSACTION
> IMP_FEED_TABLE
> CSM_TRANSACTION_ORDER
> CS_VIEW_TYPE_COLUMN
> Regards,
> E
>
> Kalen Delaney wrote:
supported. Is there another option I have to set first?Yes, it is true. In fact, we cannot even see the real system tables anymore.
All we can see
(compatible views: sysobjects, catalog views: sys.objects and information sc
hema views: TABLES) are
views.
Why would you want to hack the system tables? If you have a real case for th
is, let MS know and they
should provide you with a supported interface to accomplish what you need:
http://lab.msdn.microsoft.com/productfeedback/
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
news:uDOfDuQdGHA.3712@.TK2MSFTNGP03.phx.gbl...
> Is it true? I enabled this and when I ran RECONFIGURE it said this was no
t supported. Is there
> another option I have to set first?
>|||Hi Tim
You can't even SEE system tables in SQL 2005, much less change them.
What do you want to do that you think you need this option for? You need to
figure out another way to do what you want to do that doesn't involve
updating system tables.
HTH
Kalen Delaney, SQL Server MVP
www.solidqualitylearning.com
"Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
news:uDOfDuQdGHA.3712@.TK2MSFTNGP03.phx.gbl...
> Is it true? I enabled this and when I ran RECONFIGURE it said this was
> not supported. Is there another option I have to set first?
>|||We have a backup from one server that was restored on a different server.
The uid that owns some objects in that db don't match the uid as defined on
that server...i.e.
Server 1
uid=1 name=web
Server 2
uid=2 name=web
Can't make permissions work right unless these uid's sync up. In the past,
I'd just momentarily enable ad-hoc updates and update the the uid in the
database sysusers table. This always fixed the issue before.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message
news:O64pv8QdGHA.4264@.TK2MSFTNGP05.phx.gbl...
> Hi Tim
> You can't even SEE system tables in SQL 2005, much less change them.
> What do you want to do that you think you need this option for? You need
> to figure out another way to do what you want to do that doesn't involve
> updating system tables.
> --
> HTH
> Kalen Delaney, SQL Server MVP
> www.solidqualitylearning.com
>
> "Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
> news:uDOfDuQdGHA.3712@.TK2MSFTNGP03.phx.gbl...
>|||This is what sp_change_users_login is for...
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
news:eNiSFITdGHA.1856@.TK2MSFTNGP03.phx.gbl...
> We have a backup from one server that was restored on a different server.
The uid that owns some
> objects in that db don't match the uid as defined on that server...i.e.
> Server 1
> uid=1 name=web
> Server 2
> uid=2 name=web
>
> Can't make permissions work right unless these uid's sync up. In the past
, I'd just momentarily
> enable ad-hoc updates and update the the uid in the database sysusers tabl
e. This always fixed
> the issue before.
>
> "Kalen Delaney" <replies@.public_newsgroups.com> wrote in message
> news:O64pv8QdGHA.4264@.TK2MSFTNGP05.phx.gbl...
>|||Thanks...that is just what I needed. I probably just need to take an
evening and go through BOL entries for all those system procs.....I just
never seem to "have the time" yet we can make time to continually do it the
hard way....
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:uAI$qrTdGHA.5036@.TK2MSFTNGP05.phx.gbl...
> This is what sp_change_users_login is for...
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
> news:eNiSFITdGHA.1856@.TK2MSFTNGP03.phx.gbl...
>|||Kalen,
What do you mean by "can't see" them? They still seem very accessible
to me:
select top 20 name from sysobjects where type='U'
name
--
TS_ORDER_BROKER
CS_TEST_GROUP_PRIVILEGE
FIX_TRADER
CSM_STATE
TS_ORDER_BROKER_TICKET
IMP_FEED
CSM_STATE_LIST
TS_ORDER_CODE
CSM_STATE_LIST_MEMBER
RTAPI_COLUMN
TS_ORDER_CONFIG
CSM_TIME_ZONES
CS_VIEW
TS_ORDER_FUND
IMP_FEED_COLUMN
TS_ORDER_GEN
CSM_TRANSACTION
IMP_FEED_TABLE
CSM_TRANSACTION_ORDER
CS_VIEW_TYPE_COLUMN
Regards,
E
Kalen Delaney wrote:
> Hi Tim
> You can't even SEE system tables in SQL 2005, much less change them.
> What do you want to do that you think you need this option for? You need t
o
> figure out another way to do what you want to do that doesn't involve
> updating system tables.
>|||A query from sysobjects where type = 'U' will return user
tables. You are looking at user tables. This thread is
discussing system tables.
-Sue
On Fri, 12 May 2006 09:36:10 -0400, Eric McGrane
<EricMcGrane@.crd.com> wrote:
[vbcol=seagreen]
>Kalen,
>What do you mean by "can't see" them? They still seem very accessible
>to me:
>select top 20 name from sysobjects where type='U'
> name
> --
> TS_ORDER_BROKER
> CS_TEST_GROUP_PRIVILEGE
> FIX_TRADER
> CSM_STATE
> TS_ORDER_BROKER_TICKET
> IMP_FEED
> CSM_STATE_LIST
> TS_ORDER_CODE
> CSM_STATE_LIST_MEMBER
> RTAPI_COLUMN
> TS_ORDER_CONFIG
> CSM_TIME_ZONES
> CS_VIEW
> TS_ORDER_FUND
> IMP_FEED_COLUMN
> TS_ORDER_GEN
> CSM_TRANSACTION
> IMP_FEED_TABLE
> CSM_TRANSACTION_ORDER
> CS_VIEW_TYPE_COLUMN
>Regards,
>E
>
>Kalen Delaney wrote:|||sysobjects is now a system view. it's no longer a _table_.
select objectproperty(object_id('sysobjects'),'
IsTable')
-oj
"Eric McGrane" <EricMcGrane@.crd.com> wrote in message
news:uX7rIkcdGHA.4576@.TK2MSFTNGP05.phx.gbl...[vbcol=seagreen]
> Kalen,
> What do you mean by "can't see" them? They still seem very accessible to
> me:
> select top 20 name from sysobjects where type='U'
> name
> --
> TS_ORDER_BROKER
> CS_TEST_GROUP_PRIVILEGE
> FIX_TRADER
> CSM_STATE
> TS_ORDER_BROKER_TICKET
> IMP_FEED
> CSM_STATE_LIST
> TS_ORDER_CODE
> CSM_STATE_LIST_MEMBER
> RTAPI_COLUMN
> TS_ORDER_CONFIG
> CSM_TIME_ZONES
> CS_VIEW
> TS_ORDER_FUND
> IMP_FEED_COLUMN
> TS_ORDER_GEN
> CSM_TRANSACTION
> IMP_FEED_TABLE
> CSM_TRANSACTION_ORDER
> CS_VIEW_TYPE_COLUMN
> Regards,
> E
>
> Kalen Delaney wrote:|||Ok, you caught me...
And Sue and oj caught you...
You are querying a view, as oj pointed out, not a system table. However, you
could change your query to look for System tables
select top 20 name from sysobjects where type='S'
and you will see some of the new system table names, which are very strange
and unlike anything we had in SQL Server 2000.(As oj mentions, sysobjects,
sysindexes, et al, are now VIEWS.)
But, what I actually meant was that you cannot see any of the data in the
system tables, at least not without jumping through hoops.
For example, one of my favorite system tables, whose name you will see when
you run the query above, is syshobts. So although you can see its name in
the sysobjects view, when you try to query it, with or without the schema
name, SELECT * from syshobts, you will get an error:
Msg 208, Level 16, State 1, Line 1
Invalid object name 'sys.syshobts'.
HTH
Kalen Delaney, SQL Server MVP
www.solidqualitylearning.com
"Eric McGrane" <EricMcGrane@.crd.com> wrote in message
news:uX7rIkcdGHA.4576@.TK2MSFTNGP05.phx.gbl...[vbcol=seagreen]
> Kalen,
> What do you mean by "can't see" them? They still seem very accessible to
> me:
> select top 20 name from sysobjects where type='U'
> name
> --
> TS_ORDER_BROKER
> CS_TEST_GROUP_PRIVILEGE
> FIX_TRADER
> CSM_STATE
> TS_ORDER_BROKER_TICKET
> IMP_FEED
> CSM_STATE_LIST
> TS_ORDER_CODE
> CSM_STATE_LIST_MEMBER
> RTAPI_COLUMN
> TS_ORDER_CONFIG
> CSM_TIME_ZONES
> CS_VIEW
> TS_ORDER_FUND
> IMP_FEED_COLUMN
> TS_ORDER_GEN
> CSM_TRANSACTION
> IMP_FEED_TABLE
> CSM_TRANSACTION_ORDER
> CS_VIEW_TYPE_COLUMN
> Regards,
> E
>
> Kalen Delaney wrote:
Ad hoc udpates to system tables in 2005 GONE!
Is it true? I enabled this and when I ran RECONFIGURE it said this was not
supported. Is there another option I have to set first?Yes, it is true. In fact, we cannot even see the real system tables anymore. All we can see
(compatible views: sysobjects, catalog views: sys.objects and information schema views: TABLES) are
views.
Why would you want to hack the system tables? If you have a real case for this, let MS know and they
should provide you with a supported interface to accomplish what you need:
http://lab.msdn.microsoft.com/productfeedback/
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
news:uDOfDuQdGHA.3712@.TK2MSFTNGP03.phx.gbl...
> Is it true? I enabled this and when I ran RECONFIGURE it said this was not supported. Is there
> another option I have to set first?
>|||Hi Tim
You can't even SEE system tables in SQL 2005, much less change them.
What do you want to do that you think you need this option for? You need to
figure out another way to do what you want to do that doesn't involve
updating system tables.
--
HTH
Kalen Delaney, SQL Server MVP
www.solidqualitylearning.com
"Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
news:uDOfDuQdGHA.3712@.TK2MSFTNGP03.phx.gbl...
> Is it true? I enabled this and when I ran RECONFIGURE it said this was
> not supported. Is there another option I have to set first?
>|||We have a backup from one server that was restored on a different server.
The uid that owns some objects in that db don't match the uid as defined on
that server...i.e.
Server 1
uid=1 name=web
Server 2
uid=2 name=web
Can't make permissions work right unless these uid's sync up. In the past,
I'd just momentarily enable ad-hoc updates and update the the uid in the
database sysusers table. This always fixed the issue before.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message
news:O64pv8QdGHA.4264@.TK2MSFTNGP05.phx.gbl...
> Hi Tim
> You can't even SEE system tables in SQL 2005, much less change them.
> What do you want to do that you think you need this option for? You need
> to figure out another way to do what you want to do that doesn't involve
> updating system tables.
> --
> HTH
> Kalen Delaney, SQL Server MVP
> www.solidqualitylearning.com
>
> "Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
> news:uDOfDuQdGHA.3712@.TK2MSFTNGP03.phx.gbl...
>> Is it true? I enabled this and when I ran RECONFIGURE it said this was
>> not supported. Is there another option I have to set first?
>|||This is what sp_change_users_login is for...
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
news:eNiSFITdGHA.1856@.TK2MSFTNGP03.phx.gbl...
> We have a backup from one server that was restored on a different server. The uid that owns some
> objects in that db don't match the uid as defined on that server...i.e.
> Server 1
> uid=1 name=web
> Server 2
> uid=2 name=web
>
> Can't make permissions work right unless these uid's sync up. In the past, I'd just momentarily
> enable ad-hoc updates and update the the uid in the database sysusers table. This always fixed
> the issue before.
>
> "Kalen Delaney" <replies@.public_newsgroups.com> wrote in message
> news:O64pv8QdGHA.4264@.TK2MSFTNGP05.phx.gbl...
>> Hi Tim
>> You can't even SEE system tables in SQL 2005, much less change them.
>> What do you want to do that you think you need this option for? You need to figure out another
>> way to do what you want to do that doesn't involve updating system tables.
>> --
>> HTH
>> Kalen Delaney, SQL Server MVP
>> www.solidqualitylearning.com
>>
>> "Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
>> news:uDOfDuQdGHA.3712@.TK2MSFTNGP03.phx.gbl...
>> Is it true? I enabled this and when I ran RECONFIGURE it said this was not supported. Is there
>> another option I have to set first?
>>
>|||Thanks...that is just what I needed. I probably just need to take an
evening and go through BOL entries for all those system procs.....I just
never seem to "have the time" yet we can make time to continually do it the
hard way....
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:uAI$qrTdGHA.5036@.TK2MSFTNGP05.phx.gbl...
> This is what sp_change_users_login is for...
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
> news:eNiSFITdGHA.1856@.TK2MSFTNGP03.phx.gbl...
>> We have a backup from one server that was restored on a different server.
>> The uid that owns some objects in that db don't match the uid as defined
>> on that server...i.e.
>> Server 1
>> uid=1 name=web
>> Server 2
>> uid=2 name=web
>>
>> Can't make permissions work right unless these uid's sync up. In the
>> past, I'd just momentarily enable ad-hoc updates and update the the uid
>> in the database sysusers table. This always fixed the issue before.
>>
>> "Kalen Delaney" <replies@.public_newsgroups.com> wrote in message
>> news:O64pv8QdGHA.4264@.TK2MSFTNGP05.phx.gbl...
>> Hi Tim
>> You can't even SEE system tables in SQL 2005, much less change them.
>> What do you want to do that you think you need this option for? You need
>> to figure out another way to do what you want to do that doesn't involve
>> updating system tables.
>> --
>> HTH
>> Kalen Delaney, SQL Server MVP
>> www.solidqualitylearning.com
>>
>> "Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
>> news:uDOfDuQdGHA.3712@.TK2MSFTNGP03.phx.gbl...
>> Is it true? I enabled this and when I ran RECONFIGURE it said this was
>> not supported. Is there another option I have to set first?
>>
>>
>|||Kalen,
What do you mean by "can't see" them? They still seem very accessible
to me:
select top 20 name from sysobjects where type='U'
name
--
TS_ORDER_BROKER
CS_TEST_GROUP_PRIVILEGE
FIX_TRADER
CSM_STATE
TS_ORDER_BROKER_TICKET
IMP_FEED
CSM_STATE_LIST
TS_ORDER_CODE
CSM_STATE_LIST_MEMBER
RTAPI_COLUMN
TS_ORDER_CONFIG
CSM_TIME_ZONES
CS_VIEW
TS_ORDER_FUND
IMP_FEED_COLUMN
TS_ORDER_GEN
CSM_TRANSACTION
IMP_FEED_TABLE
CSM_TRANSACTION_ORDER
CS_VIEW_TYPE_COLUMN
Regards,
E
Kalen Delaney wrote:
> Hi Tim
> You can't even SEE system tables in SQL 2005, much less change them.
> What do you want to do that you think you need this option for? You need to
> figure out another way to do what you want to do that doesn't involve
> updating system tables.
>|||A query from sysobjects where type = 'U' will return user
tables. You are looking at user tables. This thread is
discussing system tables.
-Sue
On Fri, 12 May 2006 09:36:10 -0400, Eric McGrane
<EricMcGrane@.crd.com> wrote:
>Kalen,
>What do you mean by "can't see" them? They still seem very accessible
>to me:
>select top 20 name from sysobjects where type='U'
> name
> --
> TS_ORDER_BROKER
> CS_TEST_GROUP_PRIVILEGE
> FIX_TRADER
> CSM_STATE
> TS_ORDER_BROKER_TICKET
> IMP_FEED
> CSM_STATE_LIST
> TS_ORDER_CODE
> CSM_STATE_LIST_MEMBER
> RTAPI_COLUMN
> TS_ORDER_CONFIG
> CSM_TIME_ZONES
> CS_VIEW
> TS_ORDER_FUND
> IMP_FEED_COLUMN
> TS_ORDER_GEN
> CSM_TRANSACTION
> IMP_FEED_TABLE
> CSM_TRANSACTION_ORDER
> CS_VIEW_TYPE_COLUMN
>Regards,
>E
>
>Kalen Delaney wrote:
>> Hi Tim
>> You can't even SEE system tables in SQL 2005, much less change them.
>> What do you want to do that you think you need this option for? You need to
>> figure out another way to do what you want to do that doesn't involve
>> updating system tables.|||sysobjects is now a system view. it's no longer a _table_.
select objectproperty(object_id('sysobjects'),'IsTable')
--
-oj
"Eric McGrane" <EricMcGrane@.crd.com> wrote in message
news:uX7rIkcdGHA.4576@.TK2MSFTNGP05.phx.gbl...
> Kalen,
> What do you mean by "can't see" them? They still seem very accessible to
> me:
> select top 20 name from sysobjects where type='U'
> name
> --
> TS_ORDER_BROKER
> CS_TEST_GROUP_PRIVILEGE
> FIX_TRADER
> CSM_STATE
> TS_ORDER_BROKER_TICKET
> IMP_FEED
> CSM_STATE_LIST
> TS_ORDER_CODE
> CSM_STATE_LIST_MEMBER
> RTAPI_COLUMN
> TS_ORDER_CONFIG
> CSM_TIME_ZONES
> CS_VIEW
> TS_ORDER_FUND
> IMP_FEED_COLUMN
> TS_ORDER_GEN
> CSM_TRANSACTION
> IMP_FEED_TABLE
> CSM_TRANSACTION_ORDER
> CS_VIEW_TYPE_COLUMN
> Regards,
> E
>
> Kalen Delaney wrote:
>> Hi Tim
>> You can't even SEE system tables in SQL 2005, much less change them.
>> What do you want to do that you think you need this option for? You need
>> to figure out another way to do what you want to do that doesn't involve
>> updating system tables.|||Ok, you caught me...
And Sue and oj caught you...
You are querying a view, as oj pointed out, not a system table. However, you
could change your query to look for System tables
select top 20 name from sysobjects where type='S'
and you will see some of the new system table names, which are very strange
and unlike anything we had in SQL Server 2000.(As oj mentions, sysobjects,
sysindexes, et al, are now VIEWS.)
But, what I actually meant was that you cannot see any of the data in the
system tables, at least not without jumping through hoops.
For example, one of my favorite system tables, whose name you will see when
you run the query above, is syshobts. So although you can see its name in
the sysobjects view, when you try to query it, with or without the schema
name, SELECT * from syshobts, you will get an error:
Msg 208, Level 16, State 1, Line 1
Invalid object name 'sys.syshobts'.
--
HTH
Kalen Delaney, SQL Server MVP
www.solidqualitylearning.com
"Eric McGrane" <EricMcGrane@.crd.com> wrote in message
news:uX7rIkcdGHA.4576@.TK2MSFTNGP05.phx.gbl...
> Kalen,
> What do you mean by "can't see" them? They still seem very accessible to
> me:
> select top 20 name from sysobjects where type='U'
> name
> --
> TS_ORDER_BROKER
> CS_TEST_GROUP_PRIVILEGE
> FIX_TRADER
> CSM_STATE
> TS_ORDER_BROKER_TICKET
> IMP_FEED
> CSM_STATE_LIST
> TS_ORDER_CODE
> CSM_STATE_LIST_MEMBER
> RTAPI_COLUMN
> TS_ORDER_CONFIG
> CSM_TIME_ZONES
> CS_VIEW
> TS_ORDER_FUND
> IMP_FEED_COLUMN
> TS_ORDER_GEN
> CSM_TRANSACTION
> IMP_FEED_TABLE
> CSM_TRANSACTION_ORDER
> CS_VIEW_TYPE_COLUMN
> Regards,
> E
>
> Kalen Delaney wrote:
>> Hi Tim
>> You can't even SEE system tables in SQL 2005, much less change them.
>> What do you want to do that you think you need this option for? You need
>> to figure out another way to do what you want to do that doesn't involve
>> updating system tables.|||Kalen Delaney wrote:
> Ok, you caught me...
> And Sue and oj caught you...
> You are querying a view, as oj pointed out, not a system table. However, you
> could change your query to look for System tables
> select top 20 name from sysobjects where type='S'
> and you will see some of the new system table names, which are very strange
> and unlike anything we had in SQL Server 2000.(As oj mentions, sysobjects,
> sysindexes, et al, are now VIEWS.)
> But, what I actually meant was that you cannot see any of the data in the
> system tables, at least not without jumping through hoops.
> For example, one of my favorite system tables, whose name you will see when
> you run the query above, is syshobts. So although you can see its name in
> the sysobjects view, when you try to query it, with or without the schema
> name, SELECT * from syshobts, you will get an error:
> Msg 208, Level 16, State 1, Line 1
> Invalid object name 'sys.syshobts'.
>
I executed the query to show that I could still get at sysobjects, the
fact that I queried for user tables was a "distraction". I should have
just left off the where clause.
However, I did not realize that the table had been replaced by a view.
As long as all of my old queries still work I am happy.
Thanks all.
E|||Kalen Delaney wrote:
> Ok, you caught me...
> And Sue and oj caught you...
> You are querying a view, as oj pointed out, not a system table. However, you
> could change your query to look for System tables
> select top 20 name from sysobjects where type='S'
> and you will see some of the new system table names, which are very strange
> and unlike anything we had in SQL Server 2000.(As oj mentions, sysobjects,
> sysindexes, et al, are now VIEWS.)
> But, what I actually meant was that you cannot see any of the data in the
> system tables, at least not without jumping through hoops.
> For example, one of my favorite system tables, whose name you will see when
> you run the query above, is syshobts. So although you can see its name in
> the sysobjects view, when you try to query it, with or without the schema
> name, SELECT * from syshobts, you will get an error:
> Msg 208, Level 16, State 1, Line 1
> Invalid object name 'sys.syshobts'.
>
I executed the query to show that I could still get at sysobjects, the
fact that I queried for user tables was a "distraction". I should have
just left off the where clause.
However, I did not realize that the table had been replaced by a view.
As long as all of my old queries still work I am happy.
Thanks all.
E|||> As long as all of my old queries still work I am happy.
There's a good section in Books Online about what differences there are between the old system
tables and the new compatibility views. Some documented stuff has been changed (mostly minor things)
and if you are using undocumented columns be prepared for some work. See in the Upgrading section
for what has changed in the documented part.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Eric McGrane" <EricMcGrane@.crd.com> wrote in message news:4464EFD3.5010900@.crd.com...
> Kalen Delaney wrote:
>> Ok, you caught me...
>> And Sue and oj caught you...
>> You are querying a view, as oj pointed out, not a system table. However, you could change your
>> query to look for System tables
>> select top 20 name from sysobjects where type='S'
>> and you will see some of the new system table names, which are very strange and unlike anything
>> we had in SQL Server 2000.(As oj mentions, sysobjects, sysindexes, et al, are now VIEWS.)
>> But, what I actually meant was that you cannot see any of the data in the system tables, at least
>> not without jumping through hoops.
>> For example, one of my favorite system tables, whose name you will see when you run the query
>> above, is syshobts. So although you can see its name in the sysobjects view, when you try to
>> query it, with or without the schema name, SELECT * from syshobts, you will get an error:
>> Msg 208, Level 16, State 1, Line 1
>> Invalid object name 'sys.syshobts'.
> I executed the query to show that I could still get at sysobjects, the fact that I queried for
> user tables was a "distraction". I should have just left off the where clause.
> However, I did not realize that the table had been replaced by a view.
> As long as all of my old queries still work I am happy.
> Thanks all.
> E
supported. Is there another option I have to set first?Yes, it is true. In fact, we cannot even see the real system tables anymore. All we can see
(compatible views: sysobjects, catalog views: sys.objects and information schema views: TABLES) are
views.
Why would you want to hack the system tables? If you have a real case for this, let MS know and they
should provide you with a supported interface to accomplish what you need:
http://lab.msdn.microsoft.com/productfeedback/
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
news:uDOfDuQdGHA.3712@.TK2MSFTNGP03.phx.gbl...
> Is it true? I enabled this and when I ran RECONFIGURE it said this was not supported. Is there
> another option I have to set first?
>|||Hi Tim
You can't even SEE system tables in SQL 2005, much less change them.
What do you want to do that you think you need this option for? You need to
figure out another way to do what you want to do that doesn't involve
updating system tables.
--
HTH
Kalen Delaney, SQL Server MVP
www.solidqualitylearning.com
"Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
news:uDOfDuQdGHA.3712@.TK2MSFTNGP03.phx.gbl...
> Is it true? I enabled this and when I ran RECONFIGURE it said this was
> not supported. Is there another option I have to set first?
>|||We have a backup from one server that was restored on a different server.
The uid that owns some objects in that db don't match the uid as defined on
that server...i.e.
Server 1
uid=1 name=web
Server 2
uid=2 name=web
Can't make permissions work right unless these uid's sync up. In the past,
I'd just momentarily enable ad-hoc updates and update the the uid in the
database sysusers table. This always fixed the issue before.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message
news:O64pv8QdGHA.4264@.TK2MSFTNGP05.phx.gbl...
> Hi Tim
> You can't even SEE system tables in SQL 2005, much less change them.
> What do you want to do that you think you need this option for? You need
> to figure out another way to do what you want to do that doesn't involve
> updating system tables.
> --
> HTH
> Kalen Delaney, SQL Server MVP
> www.solidqualitylearning.com
>
> "Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
> news:uDOfDuQdGHA.3712@.TK2MSFTNGP03.phx.gbl...
>> Is it true? I enabled this and when I ran RECONFIGURE it said this was
>> not supported. Is there another option I have to set first?
>|||This is what sp_change_users_login is for...
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
news:eNiSFITdGHA.1856@.TK2MSFTNGP03.phx.gbl...
> We have a backup from one server that was restored on a different server. The uid that owns some
> objects in that db don't match the uid as defined on that server...i.e.
> Server 1
> uid=1 name=web
> Server 2
> uid=2 name=web
>
> Can't make permissions work right unless these uid's sync up. In the past, I'd just momentarily
> enable ad-hoc updates and update the the uid in the database sysusers table. This always fixed
> the issue before.
>
> "Kalen Delaney" <replies@.public_newsgroups.com> wrote in message
> news:O64pv8QdGHA.4264@.TK2MSFTNGP05.phx.gbl...
>> Hi Tim
>> You can't even SEE system tables in SQL 2005, much less change them.
>> What do you want to do that you think you need this option for? You need to figure out another
>> way to do what you want to do that doesn't involve updating system tables.
>> --
>> HTH
>> Kalen Delaney, SQL Server MVP
>> www.solidqualitylearning.com
>>
>> "Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
>> news:uDOfDuQdGHA.3712@.TK2MSFTNGP03.phx.gbl...
>> Is it true? I enabled this and when I ran RECONFIGURE it said this was not supported. Is there
>> another option I have to set first?
>>
>|||Thanks...that is just what I needed. I probably just need to take an
evening and go through BOL entries for all those system procs.....I just
never seem to "have the time" yet we can make time to continually do it the
hard way....
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:uAI$qrTdGHA.5036@.TK2MSFTNGP05.phx.gbl...
> This is what sp_change_users_login is for...
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
> news:eNiSFITdGHA.1856@.TK2MSFTNGP03.phx.gbl...
>> We have a backup from one server that was restored on a different server.
>> The uid that owns some objects in that db don't match the uid as defined
>> on that server...i.e.
>> Server 1
>> uid=1 name=web
>> Server 2
>> uid=2 name=web
>>
>> Can't make permissions work right unless these uid's sync up. In the
>> past, I'd just momentarily enable ad-hoc updates and update the the uid
>> in the database sysusers table. This always fixed the issue before.
>>
>> "Kalen Delaney" <replies@.public_newsgroups.com> wrote in message
>> news:O64pv8QdGHA.4264@.TK2MSFTNGP05.phx.gbl...
>> Hi Tim
>> You can't even SEE system tables in SQL 2005, much less change them.
>> What do you want to do that you think you need this option for? You need
>> to figure out another way to do what you want to do that doesn't involve
>> updating system tables.
>> --
>> HTH
>> Kalen Delaney, SQL Server MVP
>> www.solidqualitylearning.com
>>
>> "Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
>> news:uDOfDuQdGHA.3712@.TK2MSFTNGP03.phx.gbl...
>> Is it true? I enabled this and when I ran RECONFIGURE it said this was
>> not supported. Is there another option I have to set first?
>>
>>
>|||Kalen,
What do you mean by "can't see" them? They still seem very accessible
to me:
select top 20 name from sysobjects where type='U'
name
--
TS_ORDER_BROKER
CS_TEST_GROUP_PRIVILEGE
FIX_TRADER
CSM_STATE
TS_ORDER_BROKER_TICKET
IMP_FEED
CSM_STATE_LIST
TS_ORDER_CODE
CSM_STATE_LIST_MEMBER
RTAPI_COLUMN
TS_ORDER_CONFIG
CSM_TIME_ZONES
CS_VIEW
TS_ORDER_FUND
IMP_FEED_COLUMN
TS_ORDER_GEN
CSM_TRANSACTION
IMP_FEED_TABLE
CSM_TRANSACTION_ORDER
CS_VIEW_TYPE_COLUMN
Regards,
E
Kalen Delaney wrote:
> Hi Tim
> You can't even SEE system tables in SQL 2005, much less change them.
> What do you want to do that you think you need this option for? You need to
> figure out another way to do what you want to do that doesn't involve
> updating system tables.
>|||A query from sysobjects where type = 'U' will return user
tables. You are looking at user tables. This thread is
discussing system tables.
-Sue
On Fri, 12 May 2006 09:36:10 -0400, Eric McGrane
<EricMcGrane@.crd.com> wrote:
>Kalen,
>What do you mean by "can't see" them? They still seem very accessible
>to me:
>select top 20 name from sysobjects where type='U'
> name
> --
> TS_ORDER_BROKER
> CS_TEST_GROUP_PRIVILEGE
> FIX_TRADER
> CSM_STATE
> TS_ORDER_BROKER_TICKET
> IMP_FEED
> CSM_STATE_LIST
> TS_ORDER_CODE
> CSM_STATE_LIST_MEMBER
> RTAPI_COLUMN
> TS_ORDER_CONFIG
> CSM_TIME_ZONES
> CS_VIEW
> TS_ORDER_FUND
> IMP_FEED_COLUMN
> TS_ORDER_GEN
> CSM_TRANSACTION
> IMP_FEED_TABLE
> CSM_TRANSACTION_ORDER
> CS_VIEW_TYPE_COLUMN
>Regards,
>E
>
>Kalen Delaney wrote:
>> Hi Tim
>> You can't even SEE system tables in SQL 2005, much less change them.
>> What do you want to do that you think you need this option for? You need to
>> figure out another way to do what you want to do that doesn't involve
>> updating system tables.|||sysobjects is now a system view. it's no longer a _table_.
select objectproperty(object_id('sysobjects'),'IsTable')
--
-oj
"Eric McGrane" <EricMcGrane@.crd.com> wrote in message
news:uX7rIkcdGHA.4576@.TK2MSFTNGP05.phx.gbl...
> Kalen,
> What do you mean by "can't see" them? They still seem very accessible to
> me:
> select top 20 name from sysobjects where type='U'
> name
> --
> TS_ORDER_BROKER
> CS_TEST_GROUP_PRIVILEGE
> FIX_TRADER
> CSM_STATE
> TS_ORDER_BROKER_TICKET
> IMP_FEED
> CSM_STATE_LIST
> TS_ORDER_CODE
> CSM_STATE_LIST_MEMBER
> RTAPI_COLUMN
> TS_ORDER_CONFIG
> CSM_TIME_ZONES
> CS_VIEW
> TS_ORDER_FUND
> IMP_FEED_COLUMN
> TS_ORDER_GEN
> CSM_TRANSACTION
> IMP_FEED_TABLE
> CSM_TRANSACTION_ORDER
> CS_VIEW_TYPE_COLUMN
> Regards,
> E
>
> Kalen Delaney wrote:
>> Hi Tim
>> You can't even SEE system tables in SQL 2005, much less change them.
>> What do you want to do that you think you need this option for? You need
>> to figure out another way to do what you want to do that doesn't involve
>> updating system tables.|||Ok, you caught me...
And Sue and oj caught you...
You are querying a view, as oj pointed out, not a system table. However, you
could change your query to look for System tables
select top 20 name from sysobjects where type='S'
and you will see some of the new system table names, which are very strange
and unlike anything we had in SQL Server 2000.(As oj mentions, sysobjects,
sysindexes, et al, are now VIEWS.)
But, what I actually meant was that you cannot see any of the data in the
system tables, at least not without jumping through hoops.
For example, one of my favorite system tables, whose name you will see when
you run the query above, is syshobts. So although you can see its name in
the sysobjects view, when you try to query it, with or without the schema
name, SELECT * from syshobts, you will get an error:
Msg 208, Level 16, State 1, Line 1
Invalid object name 'sys.syshobts'.
--
HTH
Kalen Delaney, SQL Server MVP
www.solidqualitylearning.com
"Eric McGrane" <EricMcGrane@.crd.com> wrote in message
news:uX7rIkcdGHA.4576@.TK2MSFTNGP05.phx.gbl...
> Kalen,
> What do you mean by "can't see" them? They still seem very accessible to
> me:
> select top 20 name from sysobjects where type='U'
> name
> --
> TS_ORDER_BROKER
> CS_TEST_GROUP_PRIVILEGE
> FIX_TRADER
> CSM_STATE
> TS_ORDER_BROKER_TICKET
> IMP_FEED
> CSM_STATE_LIST
> TS_ORDER_CODE
> CSM_STATE_LIST_MEMBER
> RTAPI_COLUMN
> TS_ORDER_CONFIG
> CSM_TIME_ZONES
> CS_VIEW
> TS_ORDER_FUND
> IMP_FEED_COLUMN
> TS_ORDER_GEN
> CSM_TRANSACTION
> IMP_FEED_TABLE
> CSM_TRANSACTION_ORDER
> CS_VIEW_TYPE_COLUMN
> Regards,
> E
>
> Kalen Delaney wrote:
>> Hi Tim
>> You can't even SEE system tables in SQL 2005, much less change them.
>> What do you want to do that you think you need this option for? You need
>> to figure out another way to do what you want to do that doesn't involve
>> updating system tables.|||Kalen Delaney wrote:
> Ok, you caught me...
> And Sue and oj caught you...
> You are querying a view, as oj pointed out, not a system table. However, you
> could change your query to look for System tables
> select top 20 name from sysobjects where type='S'
> and you will see some of the new system table names, which are very strange
> and unlike anything we had in SQL Server 2000.(As oj mentions, sysobjects,
> sysindexes, et al, are now VIEWS.)
> But, what I actually meant was that you cannot see any of the data in the
> system tables, at least not without jumping through hoops.
> For example, one of my favorite system tables, whose name you will see when
> you run the query above, is syshobts. So although you can see its name in
> the sysobjects view, when you try to query it, with or without the schema
> name, SELECT * from syshobts, you will get an error:
> Msg 208, Level 16, State 1, Line 1
> Invalid object name 'sys.syshobts'.
>
I executed the query to show that I could still get at sysobjects, the
fact that I queried for user tables was a "distraction". I should have
just left off the where clause.
However, I did not realize that the table had been replaced by a view.
As long as all of my old queries still work I am happy.
Thanks all.
E|||Kalen Delaney wrote:
> Ok, you caught me...
> And Sue and oj caught you...
> You are querying a view, as oj pointed out, not a system table. However, you
> could change your query to look for System tables
> select top 20 name from sysobjects where type='S'
> and you will see some of the new system table names, which are very strange
> and unlike anything we had in SQL Server 2000.(As oj mentions, sysobjects,
> sysindexes, et al, are now VIEWS.)
> But, what I actually meant was that you cannot see any of the data in the
> system tables, at least not without jumping through hoops.
> For example, one of my favorite system tables, whose name you will see when
> you run the query above, is syshobts. So although you can see its name in
> the sysobjects view, when you try to query it, with or without the schema
> name, SELECT * from syshobts, you will get an error:
> Msg 208, Level 16, State 1, Line 1
> Invalid object name 'sys.syshobts'.
>
I executed the query to show that I could still get at sysobjects, the
fact that I queried for user tables was a "distraction". I should have
just left off the where clause.
However, I did not realize that the table had been replaced by a view.
As long as all of my old queries still work I am happy.
Thanks all.
E|||> As long as all of my old queries still work I am happy.
There's a good section in Books Online about what differences there are between the old system
tables and the new compatibility views. Some documented stuff has been changed (mostly minor things)
and if you are using undocumented columns be prepared for some work. See in the Upgrading section
for what has changed in the documented part.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Eric McGrane" <EricMcGrane@.crd.com> wrote in message news:4464EFD3.5010900@.crd.com...
> Kalen Delaney wrote:
>> Ok, you caught me...
>> And Sue and oj caught you...
>> You are querying a view, as oj pointed out, not a system table. However, you could change your
>> query to look for System tables
>> select top 20 name from sysobjects where type='S'
>> and you will see some of the new system table names, which are very strange and unlike anything
>> we had in SQL Server 2000.(As oj mentions, sysobjects, sysindexes, et al, are now VIEWS.)
>> But, what I actually meant was that you cannot see any of the data in the system tables, at least
>> not without jumping through hoops.
>> For example, one of my favorite system tables, whose name you will see when you run the query
>> above, is syshobts. So although you can see its name in the sysobjects view, when you try to
>> query it, with or without the schema name, SELECT * from syshobts, you will get an error:
>> Msg 208, Level 16, State 1, Line 1
>> Invalid object name 'sys.syshobts'.
> I executed the query to show that I could still get at sysobjects, the fact that I queried for
> user tables was a "distraction". I should have just left off the where clause.
> However, I did not realize that the table had been replaced by a view.
> As long as all of my old queries still work I am happy.
> Thanks all.
> E
Subscribe to:
Posts (Atom)