Click here to Skip to main content
15,896,379 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How will i create user function to return type void???
Please anybody help me...
Posted
Comments
Nilesh Patil Kolhapur 22-Feb-12 5:13am    
return null;

Dear Friend,

SQL server function has to return some value and if you want to them to return no value then in that case return something like:- a null string. Please read this:-

http://msdn.microsoft.com/en-us/library/aa175085(v=sql.80).aspx[^]

http://msdn.microsoft.com/en-us/library/ms186755.aspx[^]
 
Share this answer
 
Hi,

C#
private void SampleFunction()
{
}
 
Share this answer
 
v2
Comments
Varun Sareen 22-Feb-12 7:49am    
tag is sql server sarvesh jee ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900