Forum Replies Created

Viewing 15 posts - 2,671 through 2,685 (of 5,394 total)

  • RE: Are the posted questions getting worse?

    Jim Murphy (9/21/2011)


    My mother in law just died last night. Been a rough few weeks. She was old and in a nursing home for a while, so it was expected....

  • RE: Interview Question

    (: Hakuna Matata 🙂 (9/21/2011)


    Can we rollback if we use truncate command??? I dont think we can rollback since truncate command does not generate any logs.

    If SQL Server was like...

  • RE: Cannot select SQL_Latin1_General_CP1_CI_AS

    Run this (on another box, obviously):

    select *

    from fn_helpCollations()

    where name = 'SQL_Latin1_General_CP1_CI_AS'

    Turns out that the description is "Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive, width-insensitive for Unicode Data, SQL Server Sort Order 52 on...

  • RE: How to write use dbname in a loop

    You can use sp_MsForEachDB or a better replacement[/url].

    Hope this helps

    Gianluca

  • RE: Question variable substritution

    Generally speaking, DDL statements do not accept variables, while DML statements do.

    Using dynamic SQL is a common workaround.

  • RE: Are the posted questions getting worse?

    GSquared (9/20/2011)


    Gianluca Sartori (9/20/2011)


    GSquared (9/20/2011)


    Depending on your ANSI NULLs setting, it might try.

    SET ANSI_NULLS OFF;

    CREATE TABLE #T (

    ID INT PRIMARY KEY);

    INSERT INTO #T (ID)

    VALUES (1),(2),(3);

    SELECT * FROM #T;

    MERGE #T AS...

  • RE: Are the posted questions getting worse?

    L' Eomot Inversé (9/20/2011)


    If ansi nulls are off it can. So you know lots of people who allow code to run with ansi nulls off? That's scary! :sick:

    I...

  • RE: Are the posted questions getting worse?

    GSquared (9/20/2011)


    Depending on your ANSI NULLs setting, it might try.

    SET ANSI_NULLS OFF;

    CREATE TABLE #T (

    ID INT PRIMARY KEY);

    INSERT INTO #T (ID)

    VALUES (1),(2),(3);

    SELECT * FROM #T;

    MERGE #T AS A

    USING (VALUES(NULL)) AS...

  • RE: Are the posted questions getting worse?

    Ninja's_RGR'us (9/20/2011)


    Damn, you stole my evil QOTD :-D.

    That would have been a major complaint generator 😉

    Uh! I'm trying to figure out what would SanDroid think of it...

  • RE: Are the posted questions getting worse?

    L' Eomot Inversé (9/20/2011)


    Gianluca Sartori (9/20/2011)


    SQL Kiwi (9/20/2011)


    Ninja's_RGR'us (9/20/2011)


    Try doing ;with () Without any select after the with and you'll see if the engine thinks the statement is complete...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (9/20/2011)


    GilaMonster (9/20/2011)


    Brandie Tarvin (9/20/2011)


    CTEs (i.e. ;WIth () ... SELECT ) are single statements in this context, yes?

    <pedantic>

    CTEs don't start with a ';', no more than an english...

  • RE: Are the posted questions getting worse?

    SQL Kiwi (9/20/2011)


    Ninja's_RGR'us (9/20/2011)


    Try doing ;with () Without any select after the with and you'll see if the engine thinks the statement is complete ;-).

    Ok:

    WITH CHANGE_TRACKING_CONTEXT (0x)

    MERGE master.dbo.spt_values AS...

  • RE: Are the posted questions getting worse?

    WayneS (9/19/2011)


    Opinions wanted: Is it fair to post a Denali solution?

    Fair but slow, based on your performance tests.

  • RE: Inserting Multiple Times Issue

    Any triggers on the table?

  • RE: Query on Check constraints

    On the same line, you can also define default values that don't fit the column type/length:

    CREATE TABLE #test (

    testColumn char(3) DEFAULT 'longtext'

    )

    INSERT INTO #test DEFAULT VALUES

    Msg 8152, Level 16, State...

Viewing 15 posts - 2,671 through 2,685 (of 5,394 total)