Forum Replies Created

Viewing 15 posts - 14,476 through 14,490 (of 14,953 total)

  • RE: Best practices for keeping a history of record changes?

    First, it's not a "n00b" question. There are some complex things that have to be taken into account for this kind of thing.

    Now, on to the meat of the...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Physically Deleting data or Deactivating rows approach

    bell_vbdev (3/26/2008)


    I use the flag approach when I have to undelete through the application.

    Otherwise, delete with or without archiving or change history is fine.

    It depends on the system requirements.

    An "Undelete"...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Update values within trigger

    BobM (3/25/2008)


    RBarryYoung -

    So there is no 'inline' way to update a value before it gets written? Would the update in your trigger cause the same trigger to fire...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Need help with calculation desperately!

    It is often helpful to include the error messages you are getting. Or at least a summary of them. For example, if you are getting "divide by 0"...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Physically Deleting data or Deactivating rows approach

    I don't keep any history tables in the same database. They bulk up backups for no good reason. When I log updates/deletes/inserts, I do so in a separate...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: parameters in a table

    It seems to me that the best way to do this would be separate tables for separate categories of rules.

    Really, I'd have to know more about the application to say...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Physically Deleting data or Deactivating rows approach

    I prefer physical deletion and logging.

    Flagging data (virtual deletion) means that every single piece of code, every query, every update, etc., all has to take the flag into account. ...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Using the LIKE operator with less than 3 characters is causing long query times

    Chris Gierlack (3/25/2008)


    Ahhhh wait. Now I'm getting somewhere. Based on what you just said I ran 3 different scenerios:

    1) LIKE %nn%

    2) LIKE %nn

    3) LIKE nn%

    1 and 2 took...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Fire Drills

    I do test restores at least weekly. Usually more often than that.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Views and Horizontal Portioning

    Good article.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Maintainance plan 2005

    Steve Jones - Editor (3/22/2008)


    WITH INIT should have no effect on the database. It does remove any backups in that file, but that's separate from your database.

    I use WITH INIT...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Huge table, optimization opinions welcomed

    I tested this over the weekend. Here's what I came up with:

    create table Contacts (

    ID int identity primary key,

    Name varchar(100))

    go

    insert into dbo.contacts (name)

    select top 1000000 clean

    from dbo.numbercleanb

    go

    create table ContactsRelations...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Best Practices

    Procs. Definitely.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Is it possible Import Data from excel file to SQL table using formated excel file on SQL 2005

    SSIS can do both of these things.

    You can also do them with Open Rowset, if you open that up in the Surface Area Configuration Manager.

    Books Online has good data on...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Huge table, optimization opinions welcomed

    Yep, just tested it and you cannot create an indexed view on Union All.

    Testing other solutions now.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 15 posts - 14,476 through 14,490 (of 14,953 total)