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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 how do we check the variable type

Author  Topic 

joriveek
Starting Member

33 Posts

Posted - 2006-04-28 : 06:30:02

how do i check the variable type;

i want like this VARTYPE(Table1.TemoID);
should return whether it is NUMBER or not???

THanks

mwjdavidson
Aged Yak Warrior

735 Posts

Posted - 2006-04-28 : 06:38:41
Depending upon what exactly you need, the ISNUMERIC and ISDATE functions may help.

Mark
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2006-04-28 : 07:04:02
have a look at information_schema.columns
It's checked for character dat type in this
http://www.nigelrivett.net/SQLTsql/sp_CreateDataLoadScript.html

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -