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

  • 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...

  • 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),...

  • 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...

  • 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....

  • 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...

  • 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...

  • 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.

  • 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...

  • 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...

  • 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,...

  • 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...

  • 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...

  • 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...

  • 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,...

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