Forum Replies Created

Viewing 15 posts - 556 through 570 (of 607 total)

  • RE: Restore fails with deadlock

    Hi Grant,

    I ran a trace to get a deadlock graph but the xdl file is 0 Kb and I got the following message

    Failed to initializa deadlock control.

    There is an error...

  • RE: XML.value - I can't get it right

    Thank you

  • RE: need help to simplify this script

    Luis Cazares (6/5/2012)


    If your columns behave as bit columns instead of behaving as int, there's no need for the case, you can simply add the columns.

    you cannot add bits

  • RE: need help to simplify this script

    CREATE TABLE #Findings

    (

    CName VARCHAR(100),

    Soaps INT,

    Paste INT,

    Choclates INT,

    Biscuit INT,

    Pencil INT,

    Pen INT

    )

    INSERT INTO #Findings

    VALUES

    ('Customer1',1,0,0,0,0,0),

    ('Customer2',1,1,1,0,0,0),

    ('Customer3',1,0,0,0,1,0),

    ('Customer4',1,0,0,0,0,0),

    ('Customer5',1,0,1,0,1,0),

    ('Customer6',1,0,1,1,0,0),

    ('Customer7',0,0,0,0,0,1),

    ('Customer8',0,0,0,0,1,0),

    ('Customer9',0,1,0,0,0,0)

    DECLARE @NbrProducts int = 1;

    SELECT*

    FROM#Findings

    WHERECASE WHEN Soaps > 0 THEN 1 ELSE 0 END +

    CASE WHEN Paste >...

  • RE: Tricky SQL - Please Help

    Jeff Moden (6/4/2012)


    On the 9999-12-30 thing... someone could probably write a chapter on it but I'll summarize. One of the best practices I've seen (and almost always use) when...

  • RE: Tricky SQL - Please Help

    @jeff, as you can see from my reply to Joe the architecure is not mine, set in concrete and causes me great anguish and pain. Your reply is,...

  • RE: Tricky SQL - Please Help

    CELKO (6/3/2012)recorc

    record

    CELKO (6/3/2012)stratus

    status

    CELKO (6/3/2012)


    >> I have the following table <<

    Even for a skeleton, this was bad code; we do not use bit flags, IDENTITY as a fake mag tape recorc...

  • RE: Tricky SQL - Please Help

    Thanks Jeff, I appreciate the compliment.

  • RE: Tricky SQL - Please Help

    Jeff Moden (5/31/2012)


    Artoo22 (5/31/2012)


    Thanks Mark, that works nicely.

    Just checking... do you know HOW it works?

    Well, I have learned that there aren't many people, if anyone at all, who know it...

  • RE: Tricky SQL - Please Help

    Thanks Mark, that works nicely.

  • RE: Executing Errors

    Divine Flame (5/9/2012)


    manju.ccc (5/9/2012)


    Thank you guys.

    I solved the porblem.

    :-D:-D

    Care to explain what was the issue 😉 ?

    :Whistling:

  • RE: Just a Quick Question

    Comprehension fail on my behalf.

  • RE: Just a Quick Question

    Firstly, SQL Server already stores created_date.

    SELECT name, create_date, modify_date

    FROM sys.tables

    Secondly, where's Joe? :pinch:

  • RE: How to reduce log file size in BCP in?

    Using -b is not entirely correct, the load is still logged, however the log file will be reused for each batch if you are using the simple recovery model.

    To achieve...

  • RE: Coding Standards

    CELKO (3/19/2012)


    Part of the University of Maryland and DoD research was the effect of formatting on maintaining code. Desktop programmers do not know or think about maintaining code but that...

Viewing 15 posts - 556 through 570 (of 607 total)