Forum Replies Created

Viewing 15 posts - 12,286 through 12,300 (of 14,953 total)

  • RE: Index Question

    If those three are used in every query, is it possible to set them as the clustered index? Since that's included in every non-clustered index, it might speed things...

    - 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: Delete Script

    The main problems with cascading deletes, at least in my experience, are the limitations on multiple chains hitting the same table, and issues with triggers that weren't designed correctly.

    On 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: Named instance & Default Instance. Can we just have Named Instances?

    SSIS is based on the default instance. I ran into a major bug with that a little while back, since Workgroup Edition doesn't support SSIS, but Standard does, and...

    - 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: New SQL Server Injection Attack????

    The problem with "checking for valid SQL" in the parameter string, is this:

    http://www.mywebpage.com/subpage.aspx?id=1

    Many coders will take the 1 and use string concatenation to add that to the Where clause of...

    - 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: Debugger For SQL

    andrew gothard (8/12/2008)


    Well - usually in QA once it's written. Prototype in MS - then you get that sinking feeling when a colleague comes up to you baffled 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: DMV For Index Maintenance In 2005

    On the question about scan density, the answer is, "yes". Just worry about the fragmentation data in the new view.

    - 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: Generate random number

    There isn't a way, in SQL, to generate a non-repeating random number, following the constraints you've called for. You can sort of do it with newid(), but you've already...

    - 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: return function

    Can you post a sample of the row data, especially the data where it's giving you the wrong count? (Best, if possible, would be a copy-and-paste from the actual...

    - 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: User Stored Procedure Starting Name with sp_

    Actually, the thing about sp_ causing SQL to look in Master first, is true, per Microsoft. If you have some source that knows more about the internal workings of...

    - 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: Index Question

    In case it matters, make sure the columns that aren't part of the Where clause or Join clauses (if any) are only Included in the index, not part 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: Delete Script

    I've seen this kind of recursive cursor call before. Not the same situation, but quite similar.

    It worked just fine, on very, very small data sets. Was a couple...

    - 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 parsing three tables properly into XML from MSSQL2005

    You can set For XML as Path or Explicit instead of Auto. Path might do what you need, I'm not sure. Explicit allows you to define how you...

    - 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: Transposing data in sql 2005 - Pivot????

    Here's one way to do it:

    create table #T (

    Feature varchar(50),

    [Text] varchar(50),

    DestinationID int)

    insert into #T (Feature, [Text], DestinationID)

    select 'Location','Rhodes', 1 union all

    select 'Weather','The weather in Rhodes', 1 union all

    select 'Beaches','The beaches...

    - 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: New SQL Server Injection Attack????

    This specific attack is new, but the technique is not.

    There was a question of the day on this site a month or two ago that was on this subject.

    - 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: Interesting but Stupid Question

    Actually, this looks like the question of the day from yesterday. Why re-post it here?

    - 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 - 12,286 through 12,300 (of 14,953 total)