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

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Information schema

Author  Topic 

nitin1353
Constraint Violating Yak Guru

381 Posts

Posted - 2006-10-26 : 03:20:19
Gurus
Can you please give me a example where we can use information_schema to obtain the information?please help
regards
Nitin

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-10-26 : 03:21:41
[code]
use Northwind
select COLUMN_NAME
from INFORMATION_SCHEMA.COLUMNS
where TABLE_NAME = 'Orders'
order by ORDINAL_POSITION
[/code]


KH

Go to Top of Page

CSK
Constraint Violating Yak Guru

489 Posts

Posted - 2006-10-26 : 05:57:22
select specific_name from information_schema.routines where schema_definition like '%Nitin%'

it returns waht are all the procedures contain ur name in a specific database

Krishna
Go to Top of Page

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2006-10-26 : 07:28:02
quote:
Originally posted by nitin1353

Gurus
Can you please give me a example where we can use information_schema to obtain the information?please help
regards
Nitin




Well, its depends on which kind of information you want to view.

Look into BOL, under information_schema you will get many type of view's and their purpose.

Chirag

http://chirikworld.blogspot.com/
Go to Top of Page

nitin1353
Constraint Violating Yak Guru

381 Posts

Posted - 2006-10-27 : 08:56:59
Thanks Krishna,khtan and chirag

Regards
Nitin
Go to Top of Page
   

- Advertisement -