TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Prasad Godbole
NA
153
171.2k
Stored procedure to give primary key column details of table
Jul 18 2012 3:48 AM
Hi
We want to write a stored procedure which will give what are the primary keys of a specific table and what are its data type etc.. i.e. details about that column such as type and length
we have tried following SPROC
EXEC sp_pkeys '<table name>'
Also this SPROC should work on Microsoft SQL Server 2000, 2005, 2008 and its later version.
Please advise us in this.
Thanks and Regards
Prasad
Reply
Answers (
6
)
sql server practice good website need?
Splitting the string