adspace


Find columns used in stored procedure?

Answer Posted / Nagpal Singh

To find the columns used in a stored procedure in SQL Server, you can use the following query:n```sqlnUSE your_database;nEXEC sp_helptext your_stored_procedure;nGOn``` This will return the text of the stored procedure, including the SELECT statement that defines the columns used.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you index views?

955


How to remove duplicate rows from table except one?

1090


What are the kinds of subquery?

1109


What is an indexed view?

1023


How to convert numeric expression data types using the cast() function?

1151


How do I find query history in sql server?

1025


If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

1048


List the ways in which dynamic sql can be executed?

1087


Why should you use or avoid select * statements?

1111


Can sql servers link to other servers like oracle?

919


What is the difference between upgrade and migration in sql server?

1185


What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

1200


explain different types of backups avaialabe in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

1134


Why use identity in sql server?

1202


Disadvantages of the indexes?

1225