Is it possible to return null from a stored procedure. I do not want to use collase or isnull. I want to capture NULL in an interface. Is it possible?
Edit:
I am using Sql Server 2005
eg. where i want to use
CREATE PROCEDURE [Authentication].[spOnlineTest_CheckLogin] @UserName NVARCHAR(50) AS BEGIN TRY BEGIN TRAN COMMIT TRAN RETURN NULL END TRY
Error The procedure 'spOnlineTest_CheckLogin' tried to return NULL, which is not valid. Instead, status 0 will be returned. Msg 0, level 11, state 0, line 0 A serious error occurred in the current command. Results, if any, should be discarded.
database sql-server tsql stored-procedures sql-server-2005
Shantanu gupta
source share