Ignore my question in that reply, but don't ignore the first bit, the IS
view might be what you need.

Ade

-----Original Message-----
From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: 12 November 2005 10:21
To: CF-Talk
Subject: RE: SP & UDF parameter meta data


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


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224012
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

Reply via email to