Forum Replies Created

Viewing 15 posts - 601 through 615 (of 2,462 total)

  • RE: Today's Random Word!

    Ed Wagner (7/12/2016)


    djj (7/12/2016)


    whereisSQL? (7/12/2016)


    Ed Wagner (7/12/2016)


    Manic Star (7/12/2016)


    TomThomson (7/12/2016)


    djj (7/12/2016)


    whereisSQL? (7/12/2016)


    Ray K (7/12/2016)


    jasona.work (7/12/2016)


    crookj (7/12/2016)


    Grumpy DBA (7/12/2016)


    Alan.B (7/12/2016)


    attack

    Defend

    Rope-a-Dope

    The Greatest

    Ali

    Clay

    Feet

    Inches

    25.4 Millimeters

    Distance

    Travelled

    Vacation

    Relaxation

    Taxation

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: EXEC and EXECUTE

    Easy one (but I still ran this in SSMS to be safe 😛 : EXECUTE('SELECT 1');)

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Sequence generation

    I'm pretty confident that what I posted would do the trick provided the OP has or can add a datetime column.

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Combine rows into one row with line break by querying with XML

    shogunSQL (7/12/2016)


    Hi,

    I have a table like this:

    Create table Tbl_Test01

    (

    Name nvarchar(20),

    Item nvarchar(30)

    )

    ;

    insert into Tbl_Test01

    values

    ('Car','Honda2016'),

    ('Car','Honda2017'),

    ('Car','Honda2018'),

    ('Tool','Dwwalt2016'),

    ('Tool','Dwwalt2017'),

    ('Tool','Dwwalt2018'),

    ('Tool','Dwwalt2019')

    select *

    from Tbl_Test01

    I'd like to have the value of the column Name show up once and the...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Sequence generation

    TheSQLGuru (7/12/2016)


    Alan: your PK breaks inserts of >1 row with the same datetime value, which is going to happen both with multi-row batch inserts as well as concurrent access (due...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: The COUNT Function in T-SQL

    patrickmcginnis59 10839 (7/12/2016)


    Igor Micev (7/12/2016)


    patrickmcginnis59 10839 (7/12/2016)


    An ORDER BY clause can be used explicitly in the end as well. In that case the COUNT is not deterministic. See Deterministic and...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: The COUNT Function in T-SQL

    Great work Igor, 5 stars!. You did a great job grouping (pun not intended :-P) together the most important aspects of COUNT. Fantastic article and a great resource to point...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Sequence generation

    Jeff beat me to it. Here's some DDL that shows how to implement what Jeff suggested.

    USE tempdb -- a safe place to test this out...

    GO

    -- (0) Your table...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: max degree of parallelism

    To get the current max degree of parallelism for a specific instance of SQL Server:

    SELECT value_in_use

    FROM sys.configurations

    WHERE name = 'max degree of parallelism'

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Today's Random Word!

    Manic Star (7/12/2016)


    djj (7/12/2016)


    crookj (7/12/2016)


    djj (7/12/2016)


    Revenant (7/11/2016)


    Ed Wagner (7/11/2016)


    whereisSQL? (7/11/2016)


    HappyGeek (7/11/2016)


    Ed Wagner (7/11/2016)


    djj (7/11/2016)


    Y.B. (7/11/2016)


    Luis Cazares (7/11/2016)


    djj (7/11/2016)


    Ray K (7/11/2016)


    Ed Wagner (7/11/2016)


    Lion

    Tiger

    Bears (oh, my)

    Care

    Package

    Amazon

    Prime

    Target

    Practice

    Marksmanship

    Aim

    Focus

    Motivation

    Speaker

    Anxiety

    attack

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Today's Random Word!

    Revenant (7/11/2016)


    HappyGeek (7/11/2016)


    eccentricDBA (7/11/2016)


    Ed Wagner (7/11/2016)


    whereisSQL? (7/11/2016)


    Manic Star (7/11/2016)


    djj (7/11/2016)


    BWFC (7/11/2016)


    Ed Wagner (7/11/2016)


    Grumpy DBA (7/11/2016)


    eccentricDBA (7/11/2016)


    Ed Wagner (7/11/2016)


    Manic Star (7/11/2016)


    Luis Cazares (7/11/2016)


    Ed Wagner (7/11/2016)


    Boom

    chick-chicky-boom

    Explosion

    Shrapnel

    collateral damage

    Arnold Schwarzenegger

    Terminator

    Semi-colon

    sigmoid colon

    Sigmund Freud

    Psychoanalysis

    Why

    Socratic Method

    Ask

    Bid

    den

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Nasty Fast N-Grams (Part 1): Character-Level Unigrams

    Ed Wagner (7/8/2016)


    Very nice work, Alan. I think you explained the concept really well and used some very good examples. I have to tell you that it reminds...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Simple CLR request

    Ok Solomon, I tried to figure this out and failed. Forgive my CLR noobness (I create about 1 CLR/year) and I'm sure this is simple but I'm having a hard...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: New T-SQL Fixed Width "Splitter"

    Marcia J (7/5/2016)


    I don't know if it's just my machine, but the final code box is empty. I tried Chrome, IE, and IE with compatibility settings. I assume...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Experience, Location & Salary for Database Professionals in USA

    sqld-_-ba (7/6/2016)


    Hello Fellow DBAs/Developers/Consultants/Managers,

    I couldn't find a reliable + recent source for DBA salaries in USA.

    Glassdoor.com is very good and reliable. For example - a google search for "glassdoor dba...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

Viewing 15 posts - 601 through 615 (of 2,462 total)