Forum Replies Created

Viewing 15 posts - 106 through 120 (of 327 total)

  • RE: What is meant by set based programming?

    Evil Kraig F (8/14/2012)

    ...stuff...

    The post I was replying to asked if there was anything to back up my theory that RBAR was slow because of the T-SQL overhead. I posted...

  • RE: What is meant by set based programming?

    Matt Miller (#4) (8/14/2012)

    If this is the kind of programming you're attempting to test - it's not set-based so there would be no reason to do such thing on a...

  • RE: What is meant by set based programming?

    Phil Parkin (8/14/2012)


    patrickmcginnis59 (8/14/2012)


    Shadab Shah (8/12/2012)


    Jeff Moden (8/10/2012)


    Shadab Shah (8/9/2012)


    Hi all,

    I have come across various section on this website where it is mention that SQL Server is a set based...

  • RE: What is meant by set based programming?

    Shadab Shah (8/12/2012)


    Jeff Moden (8/10/2012)


    Shadab Shah (8/9/2012)


    Hi all,

    I have come across various section on this website where it is mention that SQL Server is a set based programming language.

    My...

  • RE: Discussion: is e-Commerce making a mockery of SQL Server?

    SQL_ME_RICH (8/3/2012)


    patrickmcginnis59 (8/3/2012)

    I'm one of those who might create a denormalized database for performance, especially in the case of a web application. In these cases, performance could itself be a...

  • RE: Discussion: is e-Commerce making a mockery of SQL Server?

    Michael Valentine Jones (7/30/2012)


    I'm really not sure exactly what you want to discuss.

    There are plenty of people that create denormalized databases and claim they did it for speed, and not...

  • RE: DATETIME 2

    L' Eomot Inversé (8/2/2012)


    patrickmcginnis59 (8/2/2012)


    Speaking for myself, I'm relatively untroubled by missing questions like this. I always answer them based on what I know at the moment of answering, without...

  • RE: DATETIME 2

    bitbucket-25253 (8/2/2012)


    I am rather surprised at the low percentage of correct answers.

    Correct answers: 37% (76)

    Incorrect answers: 63% (129)

    Total attempts: 205

    And the implications this could have to those...

  • RE: Find last previous and first next

    Here's one way!

    -- set up our test table and variable

    create table test1 (id int, dateref datetime, groupid int)

    insert into test1 (id, dateref, groupid) values (17, '2012-06-20 10:00:00.000', 463)

    insert into test1...

  • RE: Updating Unique Sequential NUmber

    Jeff Moden (7/18/2012)


    SQLKnowItAll (7/18/2012)


    Am I missing something? Probably... :w00t:

    Nah... it's me. Well, kind of... Original Post asked for...

    I have a table which holds the next Invoice Number. What...

  • RE: Updating Unique Sequential NUmber

    gerard-593414 (7/18/2012)


    OK thanks for that.

    But I dont understand how the database Engine will prevent (without additional error checking or rules) TWO ACCOUNTS WITH THE SAME NUMBER BEING ADDED. Two selects...

  • RE: Updating Unique Sequential NUmber

    How about:

    SET @VAR = SELECT VALUE FROM TABLE WHERE ID = 1

    then

    UPDATE TABLE SET VALUE = @VAR + INCREMENT WHERE ID = 1 AND VALUE = @VAR

    Obviously you'd be prepared...

  • RE: SQL Server Query

    tinausa (7/13/2012)


    Thanks. I did not think this was necessary info, so I did not mention it earlier.

    But this query is an ASP.NET app where the user will enter from and...

  • RE: Updating Unique Sequential NUmber

    I've been toying around with this construct:

    CREATE TABLE [dbo].[TEST1](

    [ID] [VARCHAR](10) NULL,

    [VALUE] [int] NULL

    )

    GO

    INSERT INTO TEST1 (ID, VALUE) SELECT 1, 10

    SELECT 'PRE' LABEL1, * FROM TEST1

    DECLARE @SAVE1 INT

    UPDATE TEST1

    SET VALUE...

  • RE: Selecting rows based on row level uniqueness

    Just wondering, why can't you just do

    SELECT DISTINCT ES.locname1, ES.locname2

    FROM dbo.ExternalSource ES etc etc

    when selecting for your unique values at level 2?

Viewing 15 posts - 106 through 120 (of 327 total)