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.
| Author |
Topic |
|
baburk
Posting Yak Master
108 Posts |
Posted - 2009-04-02 : 07:56:16
|
| Hi all,This gives the parameters, DataType and its Size used in the storedProcedure 'SP_Name'select PARAMETER_NAME,DATA_TYPE,CHARACTER_MAXIMUM_LENGTH,CHARACTER_OCTET_LENGTH from information_schema.parameters where information_schema.parameters.SPECIFIC_NAME = 'VehicleDistributionUPDATE'Like wise is there is any way to get the columns(parameters) used in WHERE Clause in a StoredProcedureThanks |
|
|
DonAtWork
Master Smack Fu Yak Hacker
2167 Posts |
Posted - 2009-04-02 : 10:35:20
|
try select routine_definition from information_schema.routines Then you can look and see if they are used in a where clause.[Signature]For fast help, follow this link:http://weblogs.sqlteam.com/brettk/archive/2005/05/25.aspxLearn SQL or How to sell Used CarsFor ultra basic questions, follow these links.http://www.sql-tutorial.net/ http://www.firstsql.com/tutor.htm http://www.w3schools.com/sql/default.asp |
 |
|
|
|
|
|