Re: Views Show Up in SQL Server Tables List




There should not be views there and I am not able to reproduce this.
Can you verify that the objects are views? Open a query window and run
EXEC sp_help object_name

The first line of output will tell you what kind of object you are dealing
with.

--
HTH
Kalen Delaney, SQL Server MVP
www.solidqualitylearning.com


"MarkGsch" <markgsch@xxxxxxxxxxxxxxx> wrote in message
news:71A4F7C0-0272-43F1-BCB2-E51B27DD5BBC@xxxxxxxxxxxxxxxx
> Kalen, in the object explorer window (left pane) of the management studio,
> under the server name node, under 'Databases', under the database name,
> under
> 'Tables', the list of tables for the one database I started migrating...in
> addition to tables there are views.
>
> "Kalen Delaney" wrote:
>
>>
>> The code I gave was to filter using a TSQL statement. If you are using a
>> GUI, you're own your own.
>>
>> What "tables list" in the GUI are you referring to? When I go to Object
>> Explorer in SQL 2005, and expand the tables node under one of my user
>> databases, I only see tables, not views.
>> --
>> HTH
>> Kalen Delaney, SQL Server MVP
>> www.solidqualitylearning.com
>>
>>
>> "MarkGsch" <markgsch@xxxxxxxxxxxxxxx> wrote in message
>> news:905E3C0D-179E-4F70-9171-A800CB59F388@xxxxxxxxxxxxxxxx
>> > Kalen, I am using the release version of the SQL Server 2005 'SQL
>> > Server
>> > Management Studio'. It is the 64-bit version, running on Win 2003
>> > Server
>> > 64-bit. Here is some specific version information:
>> >
>> > Microsoft SQL Server Management Studio 9.00.1399.00
>> > Microsoft Analysis Services Client Tools 2005.090.1399.00
>> > Microsoft Data Access Components (MDAC) 2000.086.1830.00
>> > (srv03_sp1_rtm.050324-1447)
>> > Microsoft MSXML 2.6 3.0 6.0
>> > Microsoft Internet Explorer 6.0.3790.1830
>> > Microsoft .NET Framework 2.0.50727.42
>> > Operating System 5.2.3790
>> >
>> > I am not sure how to do the filter you mention in the Object Explorer
>> > Filter. Thanks.
>> >
>> > "Kalen Delaney" wrote:
>> >
>> >>
>> >> Hi Mark
>> >>
>> >> How are you looking at the 'tables list'? There are lots of ways to
>> >> get
>> >> lists of objects. Are you using a SQL command or a GUI?
>> >> What version are you running?
>> >>
>> >> If you are using INFORMATION_SCHEMA.tables, you will note that the
>> >> last
>> >> column is 'table_type' and contains the values 'BASE TABLE' and
>> >> 'VIEW'.
>> >> So you can filter out the views:
>> >>
>> >> SELECT table_name
>> >> FROM INFORMATION_SCHEMA.tables
>> >> WHERE table_type = 'BASE TABLE'
>> >>
>> >> --
>> >> HTH
>> >> Kalen Delaney, SQL Server MVP
>> >> www.solidqualitylearning.com
>> >>
>> >>
>> >> "MarkGsch" <markgsch@xxxxxxxxxxxxxxx> wrote in message
>> >> news:3CECA223-5062-4FED-A43D-08987556AF28@xxxxxxxxxxxxxxxx
>> >> > How do I get them out ? Thanks.
>> >> >
>> >>
>> >>
>> >>
>> >>
>> >
>>
>>
>>
>>
>



.



Relevant Pages

  • Re: Cannot expand Databases in Management Studio Express
    ... "Sylvain Lafontaine" ... the auto-close option set to True and SSMS-E 2008 try to query these databases for their collation; ... Connect to SQL Server in Object Explorer pane ... Press F7 to open Object Explorer Details window ...
    (microsoft.public.sqlserver.connect)
  • Re: Cannot expand Databases in Management Studio Express
    ... Connect to SQL Server in Object Explorer pane ... Press F7 to open Object Explorer Details window ... Drill into the 'Databases' folder ... Explorer window with the Object Explorer Details window. ...
    (microsoft.public.sqlserver.connect)
  • Re: Cannot expand Databases in Management Studio Express
    ... other databases; so you can't change their status for autoclose to False ... Sylvain Lafontaine, ing. ... Connect to SQL Server in Object Explorer pane ... Press F7 to open Object Explorer Details window ...
    (microsoft.public.sqlserver.connect)
  • Re: SQL Server install upgrading from sql 2000 to 2005
    ... I found that my databases were still SQL 2000. ... SQL 2000 version so I can try to upgrade my databases. ... Help Search feature from the SQL Server Management Studio app in SQL Server ... and the object explorer show all the databases and the other 2005 objects ...
    (microsoft.public.sqlserver.setup)
  • Re: why>?
    ... On your desktop-- you'll be running SQL Server behind the scenes. ... it isn't risky to allow end users to create databases. ... it is no more risky than giving you the ability to create spreadsheets. ... I'm not saying that Oracle and IBM are going away. ...
    (microsoft.public.excel)

Loading