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)
 data conversion in stored procedues

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2003-10-27 : 08:05:00
achutavenu writes "how do i write the code for converting varchar data to real in a stored procedure."

robvolk
Most Valuable Yak

15732 Posts

Posted - 2003-10-27 : 08:05:57
CREATE PROCEDURE myProc @data varchar(100) AS
SET NOCOUNT ON
SELECT Convert(real, @data)
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2003-10-27 : 11:34:54
IF @@ERROR <> 0
BEGIN
--Massive need for Error handling
END



Brett

8-)
Go to Top of Page
   

- Advertisement -