February 23, 2006 at 9:26 am
we have a query to update the statistics on system tables in SQL2005 ..
The old query is like this ..( SQL2000)
select so.name,
su.name,
so.type
from test_db..sysobjects so,
test_db..sysusers su
where type='S' and
su.uid = so.uid
then executing query like this..
update statistics on test_db.systable .....
when I tried to execute some thing like this on SQL2005 , it is not identifying some system tables ( even though they are returning from query . Eg : sysasymkeys,sysxprops etc ...)
any ideas ..
Thanks You
February 23, 2006 at 11:04 am
Hello Uma,
Please go through the Books Online on the flg topic
Mapping SQL Server 2000 System Tables to SQL Server 2005 System Views
Thanks and have a nice day!!!
Lucky
February 23, 2006 at 3:45 pm
Thankyou for your response .
My question is if you want to update statistics of system tables in SQL2005 , what kind of query you will go with ?
If you write select name from sys.all_objects where type='S' :
after that it will give the same problem .it is giving like sys.<tablename> is not identified ..
If you have any thoughts about this pls let me know.
Thanks
February 23, 2006 at 4:41 pm
You can't manually update statistics on the system tables. Frankly I can't think of a reason you'd need to.
/*****************
If most people are not willing to see the difficulty, this is mainly because, consciously or unconsciously, they assume that it will be they who will settle these questions for the others, and because they are convinced of their own capacity to do this. -Friedrich August von Hayek
*****************/
February 24, 2006 at 8:41 am
dcpeterson ..Thanks for your response .
But we can update statistics on system tables in SQL2000 .
update statistics sysservers;
we can't we do it in SQL2005 ?
February 24, 2006 at 9:45 am
No, MS finally gave us a usable set of system views in 2005 and removed the ability to directly query or change the system tables. As I understand it, even the term "system tables" is somewhat of a misnomer in 2005 since they are not really persisted to disk as such.
/*****************
If most people are not willing to see the difficulty, this is mainly because, consciously or unconsciously, they assume that it will be they who will settle these questions for the others, and because they are convinced of their own capacity to do this. -Friedrich August von Hayek
*****************/
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply