Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.
USE [Data] GO /****** Object: StoredProcedure [dbo].[usp_SearchResults] Script Date: 08/28/2010 20:16:47 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- Batch submitted through debugger: SQLQuery19.sql|7|0|C:\Users\Administrator\AppData\Local\Temp\1\~vsD524.sql -- ============================================= -- Author: Rob -- Create date: 8/24/2010 -- Description: Returns results of PN search. -- ============================================= ALTER PROCEDURE [dbo].[usp_SearchResults] -- Add the parameters for the stored procedure here @WHEREStatement nvarchar(1000) = NULL AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; -- Insert statements for procedure here DECLARE @strSQL nvarchar(1000) SET @strSQL = 'SELECT Item_NUMBER, DESCRIPTION, ProdLine, DOCUMENT_TYPE FROM tblItem ' + @WhereStatement EXEC @strSQL END
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.