PC Review


Reply
Thread Tools Rate Thread

DeriveParameters and INFORMATION_SCHEMA.PARAMETERS

 
 
siddharthkhare@hotmail.com
Guest
Posts: n/a
 
      24th Jun 2009
Hi
1. Does SqlCommandBuilder.DeriveParameters method internally use
INFORMATION_SCHEMA.PARAMETERS ?
2. I am using this query presently to figure out parameters for a
stored proc ...I wanted to know if i could get into any performance
issues because this query is hitting syscolumns tables (through the
view) and this select may be slower if there are lot of rows in
syscolumns across the databse server..in other words in a given
databse server there may be several databases and each databse may
have several stored procs , Could it be a performance problem in that
case.....
i cache the the parameter information on application side once i
retrive it.
==================query I am using===================

SELECT REPLACE(parameter_name,'@','') as ParamName,

Data_Type as ParamFieldType,

IsNull( Character_maximum_length, IsNull
( Numeric_Precision,IsNull(DateTime_Precision,0) ) ) as ParamSize

FROM INFORMATION_SCHEMA.PARAMETERS WITH (NOLOCK)

WHERE specific_name = 'My_stored_Proc_Name'

ORDER BY ordinal_position ASC

=====================================================================
Thanks
Sidd
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
INFORMATION_SCHEMA.Tables DATE_CREATED Jerod Houghtelling Microsoft Dot NET Compact Framework 1 19th Jun 2008 09:34 PM
Linq with INFORMATION_SCHEMA? Mark Olbert Microsoft ADO .NET 1 4th Jan 2008 09:47 AM
INFORMATION_SCHEMA =?Utf-8?B?Sm9obmF0aGFuIFNlYWw=?= Microsoft Access Forms 1 16th Mar 2005 02:27 AM
MSDE and information_schema.schemata Mark Johnson Microsoft Dot NET Framework 0 9th Jun 2004 01:25 PM
SELECT * FROM INFORMATION_SCHEMA Frans Bouma Microsoft ADO .NET 4 24th Oct 2003 05:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:34 PM.