Forum Replies Created

Viewing 15 posts - 16,966 through 16,980 (of 22,210 total)

  • RE: Performance Advise

    I agree with Gail, hardware is not the place to start, especially since it appears that you've got a pretty strong system. Have you systematically collected performance data on the...

  • RE: Soon about to upgrade to MSSQL 2008

    Try Ross Mistry's book, SQL Server 2008 Management and Administration. It's pretty good. For just a "what's new" point of view, Rob Walters' Accelerated SQL SErver 2008.

    Neither of these will...

  • RE: Blocking Query

    Some of those views are deprecated in 2008. Get used to using DMV's for this type of data. Here's a script from Technet

    select

    t1.resource_type,

    ...

  • RE: production database moving to another powerful server.

    Oh, and run a consistency check before the migration and after the migration. Paranoia...

  • RE: production database moving to another powerful server.

    Just be utterly paranoid. Take a backup before the move. Take a new backup after the move from the new server. Keep both on the side for a few days,...

  • RE: Database Design Checklist

    Well, the reason I'm suggesting you need to define the clustered index as a seperate step is because, it doesn't necessarily come from the primary key. Don't confuse the two...

  • RE: Insert into multiple tables

    Yeah, you're making sense, apparently I'm not.

    I didn't mean that the child table would have those values, instead it has the FK to the PK of the parent, right?...

  • RE: Having problem getting rid of index scan in procedure

    You might try changing the order of the table definitions. I know everyone says that doesn't make a difference, but what they mean is, it doesn't normally make a difference....

  • RE: Insert into multiple tables

    yeah, it shouldn't be an issue.

    Let's assume your data looks something like this:

    Columns in Table 1:

    ParentID KeyVal1 KeyVal2 Some Data

    Columns...

  • RE: Date functions causing queries to take longer

    TheSQLGuru (7/16/2009)


    "hints" is a very broad topic. Did the OPTION RECOMPILE get used widely and cause issues, or are you lumping that in with things like FORCE ORDER, INDEX...

  • RE: Comparison of Null values is giving me poor performance

    zach_john (7/16/2009)


    Is there a better way to write the query to the given table ?

    SELECT Top 1 @ContainerUUID=ContainerUUID

    from CM_VENDOR_CONTAINER(NOLOCK)

    where IsNULL(VENDorContainername,'')=IsNULL(@VENDorContainerName,'')

    And IsNULL(VENDorContainerID,'')=IsNULL(@VENDorContainerID,'')

    And FileUUID=@FileUUID

    CREATE TABLE [dbo].[CM_VENDOR_CONTAINER](

    [ContainerUUID] [uniqueidentifier]...

  • RE: Non Clustered Index

    GilaMonster (7/16/2009)

    Nope. Noncluster. This was SQL 2000.

    Hint:

    SELECT count(*) FROM sysindexes WHERE id = OBJECT_ID('TableInQuestion') AND name LIKE '_WA_SYS%'

    Ah.... Cool. I hadn't thought of that.

  • RE: Non Clustered Index

    GilaMonster (7/16/2009)


    Agreed, though I have seen a case where someone got an error when trying to create an index because that limit had been hit. Table was a denormalised mess...

  • RE: Date functions causing queries to take longer

    Jeff Moden (7/16/2009)


    Think "parameter sniffing" to determine how far you'd carry the approach and when you can least afford for it to occur.

    Yes, true. But there's good & bad to...

  • RE: Date functions causing queries to take longer

    TheSQLGuru (7/16/2009)


    I think we will have to disagree on this one. I estimate that 90+% of the time a user has a query with a date range comparison to...

Viewing 15 posts - 16,966 through 16,980 (of 22,210 total)