I'm just looking at this myself, take a look at INFORMATION_SCHEMA.PARAMETERS in BOL, or run it in QA.
SELECT * FROM INFORMATION_SCHEMA.PARAMETERS I've run into a problem trying to get the datatypes of SP params Running this... SELECT syscolumns.colid, syscolumns.name, systypes.name FROM syscolumns INNER JOIN systypes ON syscolumns.xtype = systypes.xtype WHERE syscolumns.id = OBJECT_ID('TestSP') ORDER BY syscolumns.colid .... returns the param name twice, systypes.name should be the datatype. Can anyone shed some light on this? Ade -----Original Message----- From: Rich Kroll [mailto:[EMAIL PROTECTED] Sent: 04 November 2005 18:18 To: CF-Talk Subject: OT: SP & UDF parameter meta data Hello All, I was wondering if anyone knows how I can access parameters expected by a UDF in MSSQL? I know that I can use the following to retrieve the expected parameters for a SP, but how can I do the same for a UDF? select name FROM syscolumns WHERE id = OBJECT_ID('sp_myProcedure') Anyone have any ideas? Rich Kroll Application Developer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224011 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54