Solved

More things like SP_HELPTEXT

Posted on 2011-02-15
3
543 Views
Last Modified: 2012-05-11
I used SP_HELPTEXT to return stored procedure scripts...

Is there a way in which I can quickly return INDEX definition scripts?
0
Comment
Question by:Mr_Shaw
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
rushShah earned 500 total points
ID: 34895997
try this.


EXEC sp_helpindex 'tableName'

Open in new window

0
 
LVL 8

Assisted Solution

by:rushShah
rushShah earned 500 total points
ID: 34896008
for ex.


USE AdventureWorks;
GO
EXEC sp_helpindex 'Person.Contact'
GO

Open in new window

0
 

Author Closing Comment

by:Mr_Shaw
ID: 34896557
thanks..
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now