SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 table or synonym display
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Peter99
Constraint Violating Yak Guru

491 Posts

Posted - 01/14/2013 :  18:59:32  Show Profile  Reply with Quote
Hi,

In SSMS, query analyzer, when I write select * from .... it does not display tables/synonym. I think it should display table/synonym name when I start writing select * from then it should show table or synonym where I have access in that database? Is there any setting on server or database level? It pop ups database names but not tables/synonym. (Windows 2008 R2, SQL Server 2008 R2)

Thanks

Peter99
Constraint Violating Yak Guru

491 Posts

Posted - 01/14/2013 :  19:29:47  Show Profile  Reply with Quote
When I select * from it shows table names but not synonym names. I want to show table names as well as synonym names. Any help.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 01/15/2013 :  00:18:58  Show Profile  Reply with Quote
only after you select database and put . it will populate schema names. once you put a . after that you should get tablenames

the three part naming convention is

SELECT * FROM DBName.SchemaName.ObjectName

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Peter99
Constraint Violating Yak Guru

491 Posts

Posted - 01/15/2013 :  10:10:04  Show Profile  Reply with Quote
I can get table names when I type select * from dbo. but cannot get synonym names.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000