Click here to Skip to main content
15,914,642 members
Home / Discussions / Database
   

Database

 
AnswerRe: Need A MSSQL Trigger Pin
Md. Marufuzzaman8-Feb-10 0:15
professionalMd. Marufuzzaman8-Feb-10 0:15 
QuestionSimple Table Design Question Pin
dataminers6-Feb-10 23:00
dataminers6-Feb-10 23:00 
AnswerRe: Simple Table Design Question Pin
Luc Pattyn7-Feb-10 2:26
sitebuilderLuc Pattyn7-Feb-10 2:26 
GeneralRe: Simple Table Design Question Pin
dataminers7-Feb-10 6:41
dataminers7-Feb-10 6:41 
AnswerRe: Simple Table Design Question Pin
Andy_L_J7-Feb-10 17:37
Andy_L_J7-Feb-10 17:37 
AnswerRe: Simple Table Design Question Pin
David Mujica8-Feb-10 5:20
David Mujica8-Feb-10 5:20 
QuestionI'm about to go nutz over here, what is it with the sql 2008 express and visual studios 2008 express that doesn't like my dataconnection? Pin
tonyonlinux6-Feb-10 16:24
tonyonlinux6-Feb-10 16:24 
AnswerRe: I'm about to go nutz over here, what is it with the sql 2008 express and visual studios 2008 express that doesn't like my dataconnection? Pin
Andy_L_J7-Feb-10 17:41
Andy_L_J7-Feb-10 17:41 
QuestionWhy is a null value still being passed to the next insert statement in this stored procedure? Pin
tonyonlinux6-Feb-10 10:11
tonyonlinux6-Feb-10 10:11 
AnswerRe: Why is a null value still being passed to the next insert statement in this stored procedure? Pin
Eddy Vluggen6-Feb-10 11:37
professionalEddy Vluggen6-Feb-10 11:37 
GeneralRe: Why is a null value still being passed to the next insert statement in this stored procedure? Pin
tonyonlinux6-Feb-10 12:13
tonyonlinux6-Feb-10 12:13 
QuestionSQLServer 2005 User Permission Pin
Tim Carmichael5-Feb-10 10:25
Tim Carmichael5-Feb-10 10:25 
AnswerRe: SQLServer 2005 User Permission Pin
Mycroft Holmes6-Feb-10 0:01
professionalMycroft Holmes6-Feb-10 0:01 
QuestionSQL express Pin
GauravKP5-Feb-10 8:11
professionalGauravKP5-Feb-10 8:11 
QuestionSQL SERVER 2008 Pin
jonhbt5-Feb-10 3:52
jonhbt5-Feb-10 3:52 
GeneralRe: SQL SERVER 2008 Pin
Tim Carmichael5-Feb-10 4:45
Tim Carmichael5-Feb-10 4:45 
GeneralRe: SQL SERVER 2008 Pin
jonhbt7-Feb-10 23:18
jonhbt7-Feb-10 23:18 
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
Mycroft Holmes4-Feb-10 20:47
professionalMycroft Holmes4-Feb-10 20:47 
GeneralRe: dynamic sql search condition in store procedure Pin
Mogamboo_Khush_Hua5-Feb-10 0:58
Mogamboo_Khush_Hua5-Feb-10 0:58 
I use some thing like this Mycroft Holmes.


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
Mycroft Holmes5-Feb-10 10:08
professionalMycroft Holmes5-Feb-10 10:08 
AnswerRe: dynamic sql search condition in store procedure Pin
Giorgi Dalakishvili5-Feb-10 9:02
mentorGiorgi Dalakishvili5-Feb-10 9:02 
QuestionTwo Instances Of SQL Server??? Pin
AmbiguousName4-Feb-10 4:23
AmbiguousName4-Feb-10 4:23 
AnswerRe: Two Instances Of SQL Server??? Pin
David Mujica4-Feb-10 5:08
David Mujica4-Feb-10 5:08 
GeneralRe: Two Instances Of SQL Server??? Pin
AmbiguousName4-Feb-10 6:36
AmbiguousName4-Feb-10 6:36 

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.