Forum Replies Created

Viewing 15 posts - 1,186 through 1,200 (of 10,144 total)

  • RE: Execution plan ignoring a Temp Table being used to filter the results

    TheSQLGuru (9/12/2016)


    ChrisM@Work (9/12/2016)


    Phil Parkin (9/12/2016)


    Don't explicitly drop the #temp table

    Hi Chris. Can you explain a little how not dropping the temp table affects things, please?

    From memory Phil, if you explicitly...

  • RE: Quert Required

    vs.satheesh (9/14/2016)


    Thank you for your reply. But my client using sqlserver2005.This Query not working in sqlserver2005.

    Please post the helpful error message.

  • RE: 'New Query' Slow to Open new tab in SSMS 2016

    No, and we're using exactly the same version as you. We're not using SQL Prompt.

  • RE: String Updation in a formula of a table -Query required

    Jason A. Long (9/14/2016)


    Looking at execution plans... Chris's script is far more efficient than mine... Use his script.

    Just an FYI... Chris and I are using the same split function. We...

  • RE: create view with CTE SQL statement

    SQL Galaxy (9/14/2016)


    Yes. it is there..

    I checked - select * from sys.sysservers,

    servername and datasource as below name

    targetserver,96361

    There's a linked server with a nondefault port on the instance I'm...

  • RE: String Updation in a formula of a table -Query required

    mytesting9 (9/14/2016)


    KPI IDKPI NameKPIFormula

    QW1 ABC

    SA2 CRF...

  • RE: Are the posted questions getting worse?

    Phil Parkin (9/14/2016)


    ChrisM@Work (9/14/2016)


    --

    That's why I asked the feller the question

    --

    I think you meant 'fella', rather than 'lumberjack'. Then again ...

    For the OP, there's this: "non-standard spelling of fellow, used...

  • RE: String Updation in a formula of a table -Query required

    Using the house string-splitter[/url]:

    SELECT

    t.[KPI ID],

    t.[KPI Name],

    KPIFormula = ISNULL(x.KPIFormula,'No Formula')

    FROM #KPI t

    CROSS APPLY (

    SELECT KPIFormula = STUFF((

    SELECT '+['+[KPI ID]+']'

    FROM dbo.il_SplitDelimitedStringArray(KPIFormula, '+') d

    LEFT JOIN #KPI ti ON '['+ti.[KPI Name]+']'...

  • RE: Are the posted questions getting worse?

    jasona.work (9/14/2016)


    GilaMonster (9/14/2016)


    ChrisM@Work (9/14/2016)


    Eirikur Eiriksson (9/14/2016)


    Kingston Dhasian (9/14/2016)


    How would somebody respond to this? The last statement of the OP is a cruel joke.

    http://www.sqlservercentral.com/Forums/Topic1817507-3739-1.aspx

    Makes you wonder what the purpose is and...

  • RE: SQL anaylsis

    Bharat21 (9/14/2016)


    Top means mostly accessed tables or stored procedure by user and bottom means least accessed tables or stored procedure by user on SQL server ,...

  • RE: Are the posted questions getting worse?

    Eirikur Eiriksson (9/14/2016)


    Kingston Dhasian (9/14/2016)


    How would somebody respond to this? The last statement of the OP is a cruel joke.

    http://www.sqlservercentral.com/Forums/Topic1817507-3739-1.aspx

    Makes you wonder what the purpose is and English certainly not...

  • RE: Filling Buckets

    ashishkumarrai (9/14/2016)


    J Livingston SQL (9/13/2016)


    ashishkumarrai (9/13/2016)


    It seems this is not what I am after. I want the filler data to feed to bucket in recursive way and store each recursion....

  • RE: format query result

    Eirikur Eiriksson (9/14/2016)


    Quick suggestion

    😎

    BTW DON'T USE the FORMAT function!

    USE TEEST;

    GO

    SET NOCOUNT ON;

    DECLARE @LINE_TEMPLATE VARCHAR(50) = '000000000 ...

  • RE: format query result

    WITH SampleData AS (SELECT * FROM (VALUES

    ('30', CAST('Mike' AS VARCHAR(30)),1600, 300),

    ('30', 'GIRISH',1250, 500),

    ('30', 'MARUTI',1250, 1400),

    ('30', 'MANOJ',1500, 0)

    ) d (Department, [Name], Salary, Commission))

    SELECT

    OutputString = RIGHT('000000000'+Department,10)

    + LEFT([Name]+SPACE(20),20)

    +...

  • RE: delete millions of rows

    Matt Miller (#4) (9/13/2016)


    ChrisM@Work (9/13/2016)


    Jeff Moden (9/13/2016)


    ChrisM@Work (9/13/2016)


    Cache priming can make a very significant difference to batch delete times.

    Curious... isn't that just moving the problem to something else? ...

Viewing 15 posts - 1,186 through 1,200 (of 10,144 total)