Forum Replies Created

Viewing 15 posts - 7,471 through 7,485 (of 8,760 total)

  • RE: Adding unique int key using max

    CELKO (8/19/2014)


    First learn that a row is not a record; this is a fundamental concept.

    Next, look at CREATE SEQUENCE.

    Hey Joe,

    would you care to share a definition of the...

  • RE: Are the posted questions getting worse?

    Alvin Ramard (8/19/2014)


    Ed Wagner (8/19/2014)


    SQLRNNR (8/19/2014)


    Luis Cazares (8/19/2014)


    Lynn Pettis (8/19/2014)


    How about this one, starting monthly salary of $4,927 for a Senior Database Developer. That's 2/3 what I made at...

  • RE: Convert decimal(8,0) value to a time value

    John Mitchell-245523 (8/19/2014)


    Eirikur Eiriksson (8/19/2014)


    Quick suggestion, skip the string manipulation, use math and then format to taste.

    😎

    Normally, I'd agree you. On this occasion, however, the string manipulation appears to...

  • RE: XMLQuery on NVARCHAR MAX column using filter

    Using Tavis's data sample, here is a slightly more efficient query

    😎

    DECLARE @ID INT = 2;

    -- Set up table variable

    DECLARE @test_XMLQuery1 TABLE (

    ID INT PRIMARY KEY,

    MSG NVARCHAR(MAX) NOT NULL);

    -- Insert some...

  • RE: Convert decimal(8,0) value to a time value

    sgmunson (8/19/2014)


    The question is, what's the meaning of the last 4 characters. Yes, you could throw them away, but if they hold meaning, that's not usually a good...

  • RE: Convert decimal(8,0) value to a time value

    Quick suggestion, skip the string manipulation, use math and then format to taste.

    😎

    DECLARE @TIMEDECIMAL decimal(8,0) = 12310476;

    SELECT

    CONVERT(VARCHAR(5),DATEADD(MINUTE,(FLOOR((@TIMEDECIMAL / 10000) / 100) * 60)

    ...

  • RE: Are the posted questions getting worse?

    Luis Cazares (8/18/2014)


    Help! I was asked by my DBA to optimize the following query because it has a high cost.

    DELETE MySchema.Facttable

    WHERE datecol = @Date;

    It's part of...

  • RE: Denormalized XML File

    ringovski (8/19/2014)


    Thanks for the reply, how do you create a TSV file from a XML\XSLT file?

    TSV stands for Tab Separated Values, since your incoming data is in XML format I...

  • RE: This code is throwing error

    Quick thought, why going through all this trouble with the case statement in the dynamic sql?

    😎

    declare @b-2 int

    declare @action varchar(100)

    declare @dbname varchar(100)

    declare @a int

    set @dbname = 'adt'

    set @action = 'dfgf'

    set...

  • RE: Which query will give an error?

    Koen Verbeeck (8/18/2014)


    SQLRNNR (8/15/2014)


    sestell1 (8/15/2014)


    XML... yuck. :sick: :laugh:

    +1

    +2

    Thanks for the question.

    <post>

    <respond type="forum reply" >

    <author username="Eirikur Eiriksson"

    ...

  • RE: Same database on multiple cluster nodes for performance?

    protix (8/6/2014)


    Hello,

    is it possible to create a cluster configuration, where 2 (or more) SQL Server instances running on different servers will simultaneously serve the same database attached to the same...

  • RE: using Case statement

    t.mounika01 (8/17/2014)


    oh..thank you 🙂

    No worries. Just a quick question, it puzzles me how an empID can bear any weight on a salary, can you explain this?

    😎

  • RE: using Case statement

    t.mounika01 (8/17/2014)


    I have created a table Employee with empID and Salary. Using the case statement I tried to add a column called New Salary, which I tried to obtain by...

  • RE: Brute Force Attacks

    Erland Sommarskog (8/17/2014)


    TomThomson (8/17/2014)


    Erikur's advice is all good.

    Erikur?

    Hi Erland, I think Tom is mixing up us two from way up north, even the confusion is misspelled;-)

    My (Eirikur :-D) first question...

  • RE: Operator used tempdb to spill data during execution with spill level 1

    There is definitely some room for improvement here but first can you provide the yearweek population code?

    😎

Viewing 15 posts - 7,471 through 7,485 (of 8,760 total)