Forum Replies Created

Viewing 15 posts - 11,896 through 11,910 (of 14,953 total)

  • RE: I can exec a sproc on a linked server but I can't insert the results to a table

    Glad you resolved it.

    - 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: Date Calculation Spin Error/Warning Messages

    No clue why you got it. Maybe a job ported over from SQL 2000 and with something messed up by 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: MY opinion of SQL Server 2005 so far . . . not good

    On the dialog box on jobs, that shows steps and status. The jobs data in the summary view doesn't update except when you click "Refresh". The pop-up one...

    - 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: Trigger: Looping though multiple rows in the deleted table?

    Lloyd Harrison (9/26/2008)


    How do you get around Delete Cascade when there are more that 2 tables involved without a trigger? is there a way in 2008?

    Thanks

    Like this:

    create table DTest1...

    - 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 triggers

    That trigger looks like it should work, at least at first glance. Can you tell me what you're trying to resolve with it? Does it give you an...

    - 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: Tuning my trigger logic

    The first thing to do, actually, is to get that cursor out of the trigger. It calls a proc, and I'm sure you can make that proc into a...

    - 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: Nested View Performance

    The most common reason nested views end up slow is because of returning unused rows and columns.

    If, for example, you have a view for:

    create view MyView1

    as

    select MyTable1.PersonID, FirstName, LastName, DateOfBirth,...

    - 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: Rebuilding indexes

    chileu17 (9/26/2008)


    Jerry Hung (9/26/2008)


    Wow, that is LONG

    How much was the fragmentation %? I wonder if REBUILD (instead of REORGANIZE) would've been quicker

    Was this tested in other environments to estimate 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: Query Tuning in TSQL

    If you actually have enough rows in the table variable to justify an index (which means over 1000 if I remember correctly), then you're better off using a temp table...

    - 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 database design (attached diagram)

    Why all the multiplying in the calculation? Do you have multiples of the same error?

    I'm used to seeing stuff like this turned into a flat query and then Sum()...

    - 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: View Depends on itself??

    I haven't found the dependencies data in SQL Server to be very reliable. If someone change's an object's name, it messes all of that up.

    - 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 performance

    Including that in the Where clause should at least reduce the amount of logging overhead from the update, since less rows will be logged. I generally include that kind...

    - 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: View

    It depends on the indexed view, the query against it, and the indexes on the base tables in it. Sometimes SQL Server will use the view because that's 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: I can exec a sproc on a linked server but I can't insert the results to a table

    Check the RPC settings on both machines.

    - 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: Hungarian notation convention

    J (9/25/2008)


    About using singular names for tables:

    Good idea.

    That name is then suitable for constructs such as

    ForEach Officer ...

    Looks pretty sorry when it is

    ForEach Officers.

    In that one case, yes,...

    - 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 - 11,896 through 11,910 (of 14,953 total)