Ask a Question related to Dreamweaver AppDev, Design and Development.
-
j289243 #1
NULL in search stored procedure, VB.NET
Hi
I am using a stored procedure to search a single table with
"COALESCE(@param,param)" but the NULL default value is being ignored.
I think the test item in the MM stored procedure code is causing the value to
never be NULL? therefore displaying no results instead of all results within
the field if no item from a list is specified.
Any suggestions would be appreciated.
CODE BELOW:
CREATE PROCEDURE ******.p_******
@param varchar (255) = NULL
AS
SET NOCOUNT ON
SELECT*
FROM dbo.t_*******
WHERE COALESCE(@param,param) AND field2 = 'LIVE'
ORDER BY field3 DESC
GO
With standard MM dataset.
Cheers
J
j289243 Guest
-
Passing null into a stored procedure
I have a survey form with both checkboxes and radio buttons... when storing the form, there are occassions that I need to store a NULL in the DB and... -
VB.NET, Stored procedure, NULL
Hi Help with this problem would be appreciated. I have a stored procedure with default NULL parameters which should allow all items to be... -
help with a stored procedure
I am new to postgres stored procedures and would like a little help. My function basically takes 2 arguments and inserts data into a table from a... -
how to search a database with a stored procedure?
hello, can any one tell me how to create a stored procedure that is beable to search a table, or more table's and can make use of wildcards? i... -
#19841 [Opn->Fbk]: RPC stored procedure with many columns return null value
ID: 19841 Updated by: sniper@php.net Reported By: tonyho at fairex dot com -Status: Open +Status: ...



Reply With Quote

