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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 data types

Author  Topic 

gavakie
Posting Yak Master

221 Posts

Posted - 2009-11-05 : 10:22:49
after creating a proc how can I tell what data type each column is?

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2009-11-05 : 10:26:46
What do you mean? What columns are you referring to?

Jim

Everyday I learn something that somebody else already knew
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-11-05 : 10:27:05
See cast and convert in BOL (or GOOGLE).
For a more detailed answer is a more detailed question needed.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

gavakie
Posting Yak Master

221 Posts

Posted - 2009-11-05 : 10:32:53
the columns in the proc that i crated.
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-11-05 : 10:34:57
Sorry but a proc cannot create columns...


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2009-11-05 : 10:36:21
quote:
Originally posted by webfred

Sorry but a proc cannot create columns...


No, you're never too old to Yak'n'Roll if you're too young to die.



silly boy



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2009-11-05 : 10:39:57
my quess is that the person is from an Oracle descent and is looking for %TYPE type of thing

The short answer is, when you create the sproc, you MUST predefine the inputs and output datatype of the parameters

Oracle is at once wild west and restrictive

And it's a diffent world...Cursors...by the nature of the beast, are expected...and are tuned to perform almost miraculously


Not so here


Or am I waaaaaaaaaaaaaaaaay off base...and if I am awol...I'll have a rita






Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-11-05 : 11:57:21
Who is Rita?


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2009-11-05 : 12:12:19
quote:
Who is Rita?


Shes'a lovely meter maid!

Jim

Everyday I learn something that somebody else already knew
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2009-11-05 : 13:03:00
no, no, no....she's more south of the border

Rita, Twist, no salt



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2009-11-05 : 13:34:42
I should always assume alcohol is involved in your posts!

Jim

Everyday I learn something that somebody else already knew
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2009-11-05 : 14:13:23
I didn't think Tequila was alcohol



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-11-05 : 14:33:01
Brett,
did you have seen that the photo in your profile is gone away??


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2009-11-05 : 14:43:26
The Pix on the weblogs dies some time ago...wonder if they'll ever come back




Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page
   

- Advertisement -