Forum Replies Created

Viewing 15 posts - 13,231 through 13,245 (of 14,953 total)

  • RE: finding groups of related data

    Mine is simpler, but it ends up reversing the group order on that sample of data:

    create table #T (

    Item1 char(1) not null,

    Item2 char(1) not null,

    constraint PK_T primary key (item1, item2))

    insert...

    - 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: sql 2005 cluster SAN issues?

    Logical vs Physical, on the IO stats, is data queried from the in-RAM cache (logical) or from the actual HDD (physical).

    The first thing I noticed is that you have your...

    - 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: What would be the best set up for me???

    If you can swing getting one more HDD into the server, you could split to 3 RAID-1 arrays, partition one of them for OS and backups (drives C and D),...

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

    Jeff Moden (6/20/2008)


    Just a thought... Sometimes, it's faster to export the data to a file, transmit the file to the other server or put the data in an area accessible...

    - 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: Sporadic query timeouts / query not showing in trace

    We were having a periodic timeout issue recently, replaced routers and switches, replaced NICs, all to no joy. Then found one of the cables had a flaw in 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: Help with IS NULL

    I guess I'd have to see the data to figure it out, in that case. It looks correct.

    Can you modify the query to a union statement of the two...

    - 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 creation - Before OR AFTER Data?

    If you need the indexes to accomplish the data population efficiently, then create them before. Otherwise, after.

    For example, if one of the tables you need to populate depends 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: SERIALIZABLE isolation level - read data in transaction

    What you're doing will work. The locks it's talking about are with regards to reads from the database, not the data you're updating.

    - 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: Help with IS NULL

    The code looks like it should work. I'd rewrite the joins and Where clause to the ANSI-92 standard, but that shouldn't make a difference in what you're trying to...

    - 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: Upgrading from an Express DB to a SQL 2005 DB

    Can you post the error message(s)? They may not be meaningless to someone here.

    I've upgraded databases from Express to Standard quite a few times. Definitely works. But...

    - 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: week days

    Jeff Moden (6/20/2008)


    GSquared (6/20/2008)


    The best way is use a calendar table.

    Heh... except on Fridays and every 3rd Tuesday.

    Yeah, it's weird how calendar tables work except on those days. 🙂

    Seriously though,...

    - 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: Sporadic query timeouts / query not showing in trace

    Your packet sniffer seems to be saying you see the outbound packet to the SQL server, per what you wrote. Have you checked to make sure it arrives at...

    - 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: Comparing date and Varchar in a query

    On the original post, the error from the function is hapenning because of some string being fed into it, where substring(1,8) can't be converted to datetime. You can check...

    - 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: Comparing date and Varchar in a query

    Don't use <= date + 23:59:59.997. Make it midnight (time 0) of the following day and just use <. More accurate that way. Also deals with 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: week days

    The best way is use a calendar table.

    If you don't want to do that, you'll get an approximate number (accurate in most, but not all cases), by using:

    select datediff(day, date1,...

    - 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 - 13,231 through 13,245 (of 14,953 total)