Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

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

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 find a schema by owner
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

grizzlee
Starting Member

6 Posts

Posted - 04/22/2008 :  08:02:20  Show Profile  Reply with Quote
hi
How can i find a schema when i only now it's owner and the database where it is.I need to read it into a variable

select * from sys.schemas where...?

thanks

SwePeso
Patron Saint of Lost Yaks

Sweden
30421 Posts

Posted - 04/22/2008 :  08:10:23  Show Profile  Visit SwePeso's Homepage  Reply with Quote
Books Online is a very nice feature to have.
I suggest you install it too!

SELECT * FROM INFORMATION_SCHEMA.SCHEMATA



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

grizzlee
Starting Member

6 Posts

Posted - 04/22/2008 :  08:25:46  Show Profile  Reply with Quote
Hi
thanks for the quick answer.I had Online books installed but i did not know what to search after because i am new in this domain.


thanks
Go to Top of Page
  Previous Topic Topic Next 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.03 seconds. Powered By: Snitz Forums 2000