Forum Replies Created

Viewing 15 posts - 3,421 through 3,435 (of 10,144 total)

  • RE: Query optimization help

    EasyBoy (4/23/2014)


    I have also noted one more thing.

    I can't to modify existing index due to business rule. So, i havent used AI_OperatorCBGEstimate_14947. But i have created new index(AI_OperatorCBGEstimate_HAP) with the...

  • RE: Query optimization help

    EasyBoy (4/23/2014)


    I have also noted one more thing.

    I can't to modify existing index due to business rule. So, i havent used AI_OperatorCBGEstimate_14947. But i have created new index(AI_OperatorCBGEstimate_HAP) with the...

  • RE: Drop Identity column from temp table

    Eirikur Eiriksson (4/23/2014)


    ChrisM@Work (4/23/2014)


    hoseam (4/23/2014)


    Now that's an easy one cause I created a table for you, so you are working with the data you know. say now the user input...

  • RE: Drop Identity column from temp table

    hoseam (4/23/2014)


    Now that's an easy one cause I created a table for you, so you are working with the data you know. say now the user input tblDef_RETURNS as table,...

  • RE: Drop Identity column from temp table

    hoseam (4/23/2014)


    ...the user should be able to insert any table name as an input...

    If you're updating two very specific columns, they should exist in one very specific table, surely?

    If not,...

  • RE: Drop Identity column from temp table

    Eirikur Eiriksson (4/23/2014)


    Is it this that you are looking for?

    😎

    SELECT *

    INTO #MyTemp

    FROM Sales.SalesOrderHeader;

    SELECT *

    FROM tempdb.INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME LIKE N'#MyTemp%'

    DROP TABLE #MyTemp;

    Would you do it like this Eirikur or would you...

  • RE: Drop Identity column from temp table

    hoseam (4/23/2014)


    For now I'm using SELECT ... INTO

    SET @InsertSQL = 'SELECT * INTO Hosea_tempTable FROM ' + @TableName +' WHERE (Product_Id = '+ QUOTENAME(@Product_Id, '''''') +' or Product_Id = ''''...

  • RE: Drop Identity column from temp table

    hoseam (4/23/2014)


    The scenario is this..

    I have a product AGP with Fund E01, and other attributes

    then later I want to creat another product with the same attributes as AGP...

  • RE: How to convert nvarchar to date data type?

    aar.mba (4/17/2014)


    I have to convert nvarchar to date data type. and fetch the week number of that particular month from the column

    Pls find the sample data

    CREATE TABLE #mytable

    (

    current_week nvarchar(30)

    )

    insert...

  • RE: Drop Identity column from temp table

    hoseam (4/23/2014)


    ... the perm table name will be passed as a input parameter, then take all the it's data into temp table to update them, then put them back into...

  • RE: Getting heirarchy

    We'll need some sample data and a table of expected results. Read this article [/url]which describes how to create and post your scripts.

  • RE: Are the posted questions getting worse?

    GilaMonster (4/22/2014)


    ChrisM@Work (4/22/2014)


    And yes, every other plan the OP posted show only KeyInstn and DateEndedStandard coming out of the index seek, as you'd expect.

    Systems here won't let me anywhere...

  • RE: Query optimization help

    A little more info - this is the same question on MSDN:

    [Quote]I have one simple query to optimize but somehow after creating couple of index this query is still having...

  • RE: Are the posted questions getting worse?

    Greg Edwards-268690 (4/22/2014)


    ChrisM@Work (4/22/2014)


    Greg Edwards-268690 (4/22/2014)


    Ed Wagner (4/22/2014)


    dwain.c (4/21/2014)


    Greg Edwards-268690 (4/21/2014)


    TomThomson (4/20/2014)


    Greg Edwards-268690 (4/20/2014)


    Bucket List Challenge - teach Jim to Filet a fish properly.

    I'll keep trying, but I may fail...

  • RE: Are the posted questions getting worse?

    GilaMonster (4/22/2014)


    ChrisM@Work (4/22/2014)


    The question I'm asking is here - http://www.sqlservercentral.com/Forums/FindPost1563832.aspx and the query, to save you a few moments, is this:

    select KeyInstn, MAX(dateendedstandard) DateEndedStandard

    from ObjectViews..InternalOperCBGEstimate

    where dateendedstandard...

Viewing 15 posts - 3,421 through 3,435 (of 10,144 total)