Forum Replies Created

Viewing 15 posts - 18,886 through 18,900 (of 22,202 total)

  • RE: Cursors for T-SQL Beginners

    I like the article. Showing common cursor practices and a nice set-based approach to replace them is absolutely the right way to go. Unfortunately, as Jeff already pointed out, you...

  • RE: Changing Taxonomy

    Manie Verster (1/2/2009)


    RBarryYoung (1/1/2009)


    I can't imagine why? "Challenge" doesn't imply that anyone is going to reply anytime soon.

    Maybe "Puzzles & Challenges"?

    Sounds like a good idea. I just think that...

  • RE: Cursors Be Gone!

    I was just reading a blog post by Hugo Kornelis. He said, based on his tests, STATIC was the way to go, that it outperformed FASTFORWARD cursors.

  • RE: Cursors Be Gone!

    Are you kidding? I write cursors for everything so that I can come back later and "tune" the query.

  • RE: Cursors Be Gone!

    Jeff Moden (12/31/2008)


    Grant Fritchey (12/31/2008)


    Yeah, completely true, but however inefficient msforeachdb is as a cursor, when you're running consistency checks against all the databases on a server, does the extra...

  • RE: varchar actual size

    I presented this as a database design at a meeting once.

    CREATE TABLE [dbo].[AppTable](

    [Id] [int] IDENTITY(1,1) NOT NULL,

    [RefId] [int] NOT NULL,

    [AppValue] [nvarchar](max) NOT NULL,

    CONSTRAINT [PK_AppTable] PRIMARY KEY CLUSTERED

    (

    [Id] ASC

    )WITH...

  • RE: Cursors Be Gone!

    Jeff Moden (12/31/2008)


    Tom.Thomson (12/31/2008)


    Just add "FAST_FORWARD" and "STATIC" to the cursor definition and the cursor method will run as fast as your non-cursor method (and for large datasets...

  • RE: Table variable as Output Parameter

    Thanks for the correction. I wasn't sure and I haven't really looked at the table valued parameters yet. I should have kept my mouth shut.

  • RE: varchar actual size

    Even though SQL Server 2005/2008 will store excess values past the 8060 limit when dealing with varchar,etc., you will get performance overhead to go and do that extra retrieve. I'd...

  • RE: sql server performance issue

    Returning 89000 rows out of 100000 pretty much means that you're going to get scans of the table and/or indexes involved.

    However, there might be things that can be done. Can...

  • RE: Restore database using Text File

    Assuming it's not a real text file, in which case, it's just a dump of a database and you'll need to get the structure from another source and then use...

  • RE: Table variable as Output Parameter

    I think you can do that in 2008, not that it helps you in 2005.

  • RE: How data can remove automatic from tempdb after some task

    Putting data into the tempdb is quite a lot different than putting data into an Excel file. I guess I'm still going to need more information here.

    I just glanced...

  • RE: Activity Monitor information incorrect?

    That procedure might be querying across the databases. It's also possible their login is going to your database by default.

    I'm sure it's possible for it to report incorrect connections, but...

  • RE: Changing Taxonomy

    It may be clunky, but there is a lot of clarity of information by seperating it into discrete buckets (even though the buckets are a bit abused by some of...

Viewing 15 posts - 18,886 through 18,900 (of 22,202 total)