Click here to Skip to main content
15,896,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionMessage Removed Pin
4-Feb-10 21:01
arkiboys4-Feb-10 21:01 
AnswerRe: GridView cell colour Pin
Pranay Rana4-Feb-10 21:12
professionalPranay Rana4-Feb-10 21:12 
QuestionSybase conncetion Pin
salmonraju4-Feb-10 20:51
salmonraju4-Feb-10 20:51 
Questiondynamic sql search condition in store procedure Pin
Mogamboo_Khush_Hua4-Feb-10 20:21
Mogamboo_Khush_Hua4-Feb-10 20:21 
AnswerRe: dynamic sql search condition in store procedure Pin
Not Active4-Feb-10 20:41
mentorNot Active4-Feb-10 20:41 
AnswerRe: dynamic sql search condition in store procedure Pin
Pranay Rana4-Feb-10 20:46
professionalPranay Rana4-Feb-10 20:46 
AnswerRe: dynamic sql search condition in store procedure Pin
Rhys Jacob4-Feb-10 22:37
Rhys Jacob4-Feb-10 22:37 
GeneralRe: dynamic sql search condition in store procedure Pin
Mogamboo_Khush_Hua5-Feb-10 0:55
Mogamboo_Khush_Hua5-Feb-10 0:55 
I have used some thing like this Rupert, is this method OK.


USE [INVENTORY_ MANAGEMENT]
GO
/****** Object:  StoredProcedure [dbo].[GetEngagementStandardsByCriteria]    Script Date: 02/05/2010 15:25:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================

Create PROCEDURE [dbo].[Engagement_Get_StandardsByCriteria] 
	-- Add the parameters for the stored procedure here
(
	@ClientName NVARCHAR(255)=NULL,
	@Year FLOAT=NULL,
	@Application NVARCHAR(255) =NULL,
	@Database NVARCHAR(255)=NULL,
	@OS NVARCHAR(255)=NULL,
	@QuickName NVARCHAR(MAX)=NULL

)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;


	SELECT [Client Name] AS Client,[Year],[Application],
		   [Database],OS,[MLP Heading] As Heading,
		   [Standard Observation] AS Observation,[Standard Impact]AS Impact,
		   [Standard Recommendation] AS Recommendation
	FROM Engagement_Standards
	WHERE (@ClientName IS NULL OR [Client Name]=@ClientName)
		And
	      (@Year IS NULL OR [Year]=@Year)
		And
		  (@Application IS NULL OR [Application]=@Application)
		And
	      (@Database IS NULL OR [Database]=@Database)
		And
	      (@OS IS NULL OR OS=@OS)
		And
	      (@QuickName IS NULL OR [Quick Name]=@QuickName);
		
	
END

GeneralRe: dynamic sql search condition in store procedure Pin
Rhys Jacob5-Feb-10 1:04
Rhys Jacob5-Feb-10 1:04 
Questionsqldepenency Pin
sekannak4-Feb-10 18:44
sekannak4-Feb-10 18:44 
AnswerRe: sqldepenency Pin
Not Active4-Feb-10 19:52
mentorNot Active4-Feb-10 19:52 
QuestionSQL 2008 (Web Developer Membership System) - Could not find stored procedure. Pin
Baeltazor4-Feb-10 18:20
Baeltazor4-Feb-10 18:20 
AnswerRe: SQL 2008 (Web Developer Membership System) - Could not find stored procedure. Pin
saini arun4-Feb-10 18:33
saini arun4-Feb-10 18:33 
GeneralRe: SQL 2008 (Web Developer Membership System) - Could not find stored procedure. Pin
Baeltazor4-Feb-10 18:39
Baeltazor4-Feb-10 18:39 
GeneralRe: SQL 2008 (Web Developer Membership System) - Could not find stored procedure. Pin
saini arun4-Feb-10 18:47
saini arun4-Feb-10 18:47 
GeneralRe: SQL 2008 (Web Developer Membership System) - Could not find stored procedure. Pin
Baeltazor4-Feb-10 18:51
Baeltazor4-Feb-10 18:51 
GeneralRe: SQL 2008 (Web Developer Membership System) - Could not find stored procedure. Pin
saini arun4-Feb-10 18:56
saini arun4-Feb-10 18:56 
GeneralRe: SQL 2008 (Web Developer Membership System) - Could not find stored procedure. Pin
saini arun4-Feb-10 19:01
saini arun4-Feb-10 19:01 
GeneralRe: SQL 2008 (Web Developer Membership System) - Could not find stored procedure. Pin
Baeltazor4-Feb-10 19:31
Baeltazor4-Feb-10 19:31 
GeneralRe: SQL 2008 (Web Developer Membership System) - Could not find stored procedure. Pin
saini arun4-Feb-10 19:49
saini arun4-Feb-10 19:49 
GeneralRe: SQL 2008 (Web Developer Membership System) - Could not find stored procedure. Pin
Baeltazor4-Feb-10 20:26
Baeltazor4-Feb-10 20:26 
GeneralRe: SQL 2008 (Web Developer Membership System) - Could not find stored procedure. Pin
saini arun4-Feb-10 20:34
saini arun4-Feb-10 20:34 
GeneralRe: SQL 2008 (Web Developer Membership System) - Could not find stored procedure. Pin
Baeltazor4-Feb-10 20:41
Baeltazor4-Feb-10 20:41 
QuestionNo line numbers in release stack trace Pin
Danpeking4-Feb-10 12:49
Danpeking4-Feb-10 12:49 
AnswerRe: No line numbers in release stack trace Pin
Venkatesh Mookkan4-Feb-10 17:35
Venkatesh Mookkan4-Feb-10 17:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.