Forum Replies Created

Viewing 15 posts - 1 through 15 (of 42 total)

  • RE: Best Practices in an Adhoc Environment

    I found that there were several factual errors in the article and several differences of opinion. The following is a list, in no particular order:

    1) "where the developer has...

  • RE: Identity col Primary Key Vs Composite Key

    The case against identity keys follows along these points:

    1) IDENTITY is proprietary to MSSQL.

    2) Over time, the Surrogate key (IDENTITY) and the natural key WILL diverge. This is the...

  • RE: SQL and Source Control...

    On top of VSS and QA we use the template capability of SQL 2000 (though you can fake this using text files in earlier versions).

    In essence, we have a template...

  • RE: Enabling use of an authorization code

    From your text, it sounds like the application and the database are at the client site. If the database was under your control, then you would be the only...

  • RE: Multiple Lines Returned in SQL 2000 - Help!

    Some of the SQL configuration settings have different default values in SQL 2000 and this has led to some situations where "everything is the same except the results".

    Without seeing your...

  • RE: Missing numbers

    If you had a static table (Numbers6000) that held all the numbers from 1 through 6000, you could easily find the lowest missing number in YourTable:

    select min(Number)

    from Numbers6000

    where Number not...

  • RE: Changing length of User-Defined Datatype

    In Re: "Is it safe to just change the length in systypes?"

    I would never make changes to the system tables directly.

    One path to consider is to run Profiler while making...

  • RE: upto 2 decimals

    quote:


    create procedure test1

    @val1 float,

    @val2 int

    as

    declare @val3 decimal(9,2)

    select @val3 = @val1

    insert into testtable1

    (TestField1, testfield2)

    values

    (@val3, @val2)

    -----------------------

    exec test1 20.8,12

    I did it and it is still...

  • RE: Correct CASE

    My results were strictly anecdotal. I had two different versions of the same script; the difference being that IsNull was replaced with COALESCE. We had decided to make...

  • RE: Correct CASE

    quote:


    IsNull and COALSCE are te same except for the number of options supported.


    COALESCE is...

  • RE: Splitting a table - a good idea?

    Tomiz,

    You might want to look at establishing a "covering index" for your three hot columns. It would depend on how you filter the retrieved data (WHERE clause). See...

  • RE: If Table Empty

    This is a small modification that is designed to boost performance:

    if exists(select * from tblname)

    begin

    --do your xml stuff here

    end

    The EXISTS will terminate the select after the first record is found...

  • RE: Best Practice !!

    1) I (virtually) never put anything into the Master database. You mess up something here and you'll need to update your resume ;->

    For the same reason, I don't let...

  • RE: nth record of a recordset

    quote:


    Another factor to consider is if the table has no Clustered index there is no guarantee you will get the same results...

  • RE: nth record of a recordset

    quote:


    Another factor to consider is if the table has no Clustered index there is no guarantee you will get the same results...

Viewing 15 posts - 1 through 15 (of 42 total)