Forum Replies Created

Viewing 15 posts - 1,696 through 1,710 (of 1,838 total)

  • RE: Search by ProductId or Product Description

    how about something like this:

    set ANSI_NULLS ON

    set QUOTED_IDENTIFIER ON

    go

    ALTER PROC [dbo].[bsp_intranet_product_search]

    @ProductIdNVARCHAR(100),

    @ProductDescription NVARCHAR(300)

    AS

    SELECT DISTINCT TOP 100 ProductId, ProductDescription, CrossReference,

    ISNULL(CONVERT(VARCHAR,SUM(QuantityOutstanding)),'0')...

  • RE: The October 2008 Energy Update

    I believe the main thing it comes down to is economic feasibility. If "alternative" fuels and methods of electricity generation were reliable and profitable, you'd see them driving the...

  • RE: row_number() slow once the where rowId clause added

    It would also help to know what indexes are on the table being queried.

  • RE: How to delete...

    Can the letter be in any position of the string or will it always be the first? If it can be in any position you won't want to use...

  • RE: AdventureWorks DataBase

    The LT files are a "lite" version of the AdventureWorks databases, with a simpler schema and design.

  • RE: Need list of sprocs using key tables

    latingntlman (10/27/2008)


    exec #TSQL_Search 'ReportProcessing' (ReportProcessing being the Db) where there are a bunch of sprocs but the results pane shows zero records.

    John,

    sorry for the confusion. If you're using...

  • RE: SQL DB Performance

    SQL Server 2005 keeps some informative statistics about query execution plans in the dynamic management views. These queries can help you easily identify long running and I/O intensive queries:

    --...

  • RE: T-SQL Code Optimizers

    Another thing to be concerned about, did the 3rd party tool recommend any index changes? Index changes to clustered or non-clustered indexes should be considered across the entire application...

  • RE: Please help me with Pagination

    yes, ROW_NUMBER is a very useful and versatile tool that can be used in a number of circumstances.

    FYI, the problem in your original query seems to be this line:

    WHERE productid...

  • RE: Slow access of data via a linked server connection

    How many tables are you looking to copy and how frequently will you copy them?

    A solution I've used at some places I've worked at where the table layouts are the...

  • RE: SQL Server 2005 Bulk Insert

    another option may be to use OPENROWSET instead, with the Access driver. It's a bit more forgiving when dealing with quoted CSV files:

    INSERT INTO CSVTest

    SELECT * FROM OPENROWSET('MICROSOFT.JET.OLEDB.4.0','Text;Database=C:\;','SELECT *...

  • RE: Should applications share a database?

    sam (10/22/2008)


    My question is, is it better to manage all client information in a central client database as we are, and push client information to individual application databases? Or...

  • RE: Maintenance plan jobs failing on SQL 2000.

    Another thing to check is what else is running on the server at the same time as the mantenance plan. I've seen a situation before where a system backup...

  • RE: Selecting data including possible nulls

    ellen.horn (10/23/2008)


    Select I.Name, C.Amount

    From Ingredients I, Calories C

    Where I.Name = C.Name

    This is simply an OUTER JOIN:

    SELECT i.Name, c.Amount

    FROM Ingredients i

    LEFT OUTER JOIN Calories c...

  • RE: Date Gaps

    Could it have something to do with the way you've disconnected the effective dates to their associated expiration dates? I'm not sure how your subqueries are fitting the data...

Viewing 15 posts - 1,696 through 1,710 (of 1,838 total)