Is there a way to retrieve datatypes from stored procedures?

15 pts.
Tags:
SQL 2000
SQL stored procedures
SQL tables
Stored Procedures
I have used the following simple query to retrieve datatypes from sql 2000 tables. select TABLE_NAME, COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH from <tablename>.information_schema.columns where table_name = '<tablename>' and column_name = '<columnname>' Is there a way to retrieve datatypes from stored procedures?

Answer Wiki

Thanks. We'll let you know when a new response is added.

What do you mean by datatypes from stored procedures?

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    Are you talking about the datatypes of the stored procedure's parameters ?
    69,510 pointsBadges:
    report
  • TlogP
    I need to know what datatype i.e. char, varchar, text, nchar.... the SP is passing to the database table. I am able to view this in QA but I have about a 1000 db i need to check on. I wanted to write something like what i posted to do this. what i posted returns the datatype or metadata for a table. thanks for your help.
    15 pointsBadges:
    report
  • Denny Cherry
    The datatypes that the stored procedure is passing to the table will be what ever datatypes the table is setup for. You can't exactly stuff a varchar value into an INT column.
    66,130 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following