Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

for views: get Current connection parameters > User and Description > Schema from 2005 system

Status
Not open for further replies.

mehlsl

IS-IT--Management
Jan 30, 2002
22
0
0
US
Hello --

Using 2005 Object Explorer, when I right-click on a view > Properties
the right frame shows the 3 sub-frames:
Current connection parameters, Description, and Options

I want to query the system tables to get information on the database's views, including the following two values from 2 of those 3 sub-frames:
Current connection parameters > User
and
Description > Schema

Can someone tell me which 2005 system tables contain these values?

Thanks in advance,

Stephen Mehl

 
The user part is pretty easy...

Select suser_sname()

Description > Schema I assume to mean the schema that the view was created with. If so, take a look at this:

Code:
select schema_name(schema_id), * from sys.views



-George
Microsoft SQL Server MVP
My Blogs
SQLCop
twitter
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Understand that the user information has nothing to do with the view. It's showing who is currently connected to the instance within Management Studio. IOW it will always show your login, not anyone else's.

-----------
With business clients like mine, you'd be better off herding cats.
 
George and philhege --

Thank you.

I think George's second suggestion is what I need if my assumption that
Description > Schema
is the user that created the view. Am I correct?

If this is not correct, do you or does anyone know where to find the creator and modifier of the view, even if they created it as "dbo"?

Thanks again for any help,

Stephen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top