Forum Replies Created

Viewing 15 posts - 76 through 90 (of 160 total)

  • RE: Primary keys and indexes

    Ken Simmons (5/6/2009)


    By default SQL Server creates a clustered index on the primary key.

    Thanks for the fast response.

  • RE: A Simple T-SQL question Regarding Nulls and Selects

    bvaljalo (2/4/2009)


    I can't speak to the 'performance issue' someone raised above, but I can tell you this ... I use the method described all the time, and it does do...

  • RE: A Simple T-SQL question Regarding Nulls and Selects

    GilaMonster (2/4/2009)


    meichner (2/4/2009)


    that in essence the where class does not get run and that all rows are selected from the table (which is what I want when no status is...

  • RE: A Simple T-SQL question Regarding Nulls and Selects

    GilaMonster (2/4/2009)


    Then this should do it.

    WHERE Status = @status OR @status IS NULL

    I had that solution but something bothered me about it. Since I am...

  • RE: A Simple T-SQL question Regarding Nulls and Selects

    GilaMonster (2/4/2009)


    meichner (2/4/2009)


    I know there my be a better way to do this so that I don't have to repeat the Select Clause.

    There is, but it tends to have...

  • RE: VSS Writer Service Question

    Thanks so much.

  • RE: VSS Writer Service Question

    mikefle (2/2/2009)


    Of course it depends if any of your applications have dependencies on this. Generally, if you know what databases need backing up, you can always schedule a job...

  • RE: T-SQL and Collections and Transactions

    Thanks for all the input. I will look into the XML approach. I am currently using the OUTPUT parameter to obtain the identity key from the Sales Order Header...

  • RE: T-SQL and Collections and Transactions

    Grant Fritchey (12/4/2008)


    meichner (12/4/2008)


    I am a C# program (.net 2.0) using Sql Server 2005. I would love nothing more then to do all of my transaction processing in...

  • RE: CTE's and IF Statements

    G² (11/10/2008)


    You're right. CTEs are limited in that they are meant to be a one-time view that gets used immediately and then destroyed. To do what you intend,...

  • RE: CTE's and IF Statements

    G² (11/10/2008)


    CTEs can be used to replace derived tables, temporary tables or table variables. They tend to be more readable than using nested subqueries. In fact, they're very...

  • RE: CTE's and IF Statements

    Not in the way you are expecting it to...from BOL:

    Guidelines for Creating and Using CTEs

    The following guidelines apply to nonrecursive CTEs. For guidelines that apply to recursive CTEs,

    see "Guidelines...

  • RE: A strange T-SQL challenge

    noeld (11/6/2008)


    1. Why does the pivot table need the aggregate function MIN in order to work?

    2. Why did you need the column Row_number?

    1. PIVOT needs an aggregate function...

  • RE: A strange T-SQL challenge

    IF OBJECT_ID('TempDB..#mytable','U') IS NOT NULL

    DROP TABLE #mytable

    CREATE TABLE #mytable

    (

    ID ...

  • RE: A strange T-SQL challenge

    Jeff Moden (11/6/2008)


    No problem... could you provide some test data in a readily consumable format like I asked in my previous post? See the link in my signature for...

Viewing 15 posts - 76 through 90 (of 160 total)