Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Information-schema views needing refresh.
I use sp_refreshview [view-name] to refresh Information-schema views but
 it
says the object does not exist. I go to EM and I can see the views.
I am using SQL Server sp4.

Any help appreciated.

Report this thread to moderator Post Follow-up to this message
Old Post
SQLboston
09-30-05 01:23 AM


Re: Information-schema views needing refresh.
SQLBoston,

First of all - GO RED SOXS!!!

Second - does the view show up in either of these queries?:

SELECT * FROM SYSOBJECTS
WHERE XTYPE = 'V'

SELECT * FROM INFORMATION_SCHEMA.VIEWS

If you perform a refresh on views in EM does the view still appear?

Is the view owned by dbo?  If not you may need to qualify the owner of the
view as well (owner.view_name)

HTH

Jerry
"SQLboston" < SQLboston@discussion
s.microsoft.com> wrote in message
news:EE92F19F-B50B-4D47-B0E3- EEDAB015770A@microso
ft.com...
>I use sp_refreshview [view-name] to refresh Information-schema views bu
t it
> says the object does not exist. I go to EM and I can see the views.
> I am using SQL Server sp4.
>
> Any help appreciated.



Report this thread to moderator Post Follow-up to this message
Old Post
Jerry Spivey
09-30-05 01:23 AM


Re: Information-schema views needing refresh.
Jerry,

We have a showdown with Yanks this weekend! Go Sox!

I will check your scripts today.

However, I can see the views in EM and I can see their owner.
They are owned by Information-schema. I understand these scripts are created
by master database. some of these views are Views, Columns, Tables, etc.

Thanks.
Frank


"Jerry Spivey" wrote:

> SQLBoston,
>
> First of all - GO RED SOXS!!!
>
> Second - does the view show up in either of these queries?:
>
> SELECT * FROM SYSOBJECTS
> WHERE XTYPE = 'V'
>
> SELECT * FROM INFORMATION_SCHEMA.VIEWS
>
> If you perform a refresh on views in EM does the view still appear?
>
> Is the view owned by dbo?  If not you may need to qualify the owner of the
> view as well (owner.view_name)
>
> HTH
>
> Jerry
> "SQLboston" < SQLboston@discussion
s.microsoft.com> wrote in message
> news:EE92F19F-B50B-4D47-B0E3- EEDAB015770A@microso
ft.com... 
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
SQLboston
09-30-05 12:23 PM


Re: Information-schema views needing refresh.
Sorry SQLBoston I missed the part that these are information_schema views.
One game back...hopefully by Monday they'll be up a game!

OK...so if you run this:

USE Master
GO
sp_refreshview & #91;INFORMATION_SCHE
MA.VIEWS]

You get this:

Server: Msg 229, Level 14, State 8, Procedure sp_refreshview, Line 1
DBCC permission denied on object 'VIEWS', database 'master', owner
 'INFORMATION_SCHEMA'
.

Even if you are logged in with SYSADMIN permissions.

Well as I see it the information_schema views are provided by Microsoft as
an abstraction layer to the system tables.  Neither the views nor the system
tables should ever be altered by a DBA so there really is no need to perform
a sp_refreshview on an information_schema view.

HTH

Jerry
"SQLboston" < SQLboston@discussion
s.microsoft.com> wrote in message
news:9D22B938-D7D7-4890-9DAD- F1BC2EB30FAD@microso
ft.com...
> Jerry,
>
> We have a showdown with Yanks this weekend! Go Sox!
>
> I will check your scripts today.
>
> However, I can see the views in EM and I can see their owner.
> They are owned by Information-schema. I understand these scripts are
> created
> by master database. some of these views are Views, Columns, Tables, etc.
>
> Thanks.
> Frank
>
>
> "Jerry Spivey" wrote:
> 



Report this thread to moderator Post Follow-up to this message
Old Post
Jerry Spivey
09-30-05 04:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 12:55 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006