Forum Replies Created

Viewing 15 posts - 151 through 165 (of 240 total)

  • RE: GUID clustered indexes vs. RID

    Let's say (hypothetically :cool:) that I have a table with 100 million rows, averaging about 800 bytes each. It has an ID field which is a GUID -- and we...

  • RE: GUID clustered indexes vs. RID

    That's what I thought. Thanks for the clarification, Grant.

  • RE: GUID clustered indexes vs. RID

    nick.mcdermaid (10/14/2010)


    If you search on a covered non-clustered index on a table with a clustered index, you get a bookmark lookup where the index goes and looks up the row...

  • RE: GUID clustered indexes vs. RID

    Grant,

    Thanks for the reply. Sounds like there isn't complete consensus on whether GUIDs are valid for clustered indexes or not. So far, we've not seen significant performance impact where we've...

  • RE: TEMPDB space issue

    Yes, after you're restarted the server instance. You'll know it is no longer in use when the OS allows you to delete it; as long as it's attached by SQL...

  • RE: TEMPDB space issue

    Assuming tempdb logical names are the defaults (which they likely are):

    USE master;

    GO

    ALTER DATABASE tempdb

    MODIFY FILE (NAME = tempdev, FILENAME = 'H:\SQL\tempdb.mdf'); -- as in 'c:\tempdb.mdf'

    GO

    ALTER DATABASE tempdb

    MODIFY FILE (NAME...

  • RE: Replace "X" with 0-9

    samuelg78 (9/30/2010)


    Thks. Thats working. But why you need to use like "%", "^", "*" in the query? And its also work i i pass in the punctuation.

    I simply used the...

  • RE: Replace "X" with 0-9

    This may be a little clunky, but it works. Downside is that it is limited to varchars of only 4 chars/digits. It also uses 4 punctuation characters that may interfere...

  • RE: Changing formula for a computed column

    Yes, you have to drop old column and add a new one.

    ALTER TABLE dbo.MyTable

    DROP COLUMN OldComputedColumn

    ALTER TABLE dbo.MyTable

    ...

  • RE: update statement not working in stored proc

    The statements appear identical, so maybe you're overlooking the obvious...?

    Are you running this against the right database? (Maybe the table dbo.XXX exists in both so it's not throwing an error?)

    Are...

  • RE: How to disable a default constraint in Sql Server 2005?

    According to BOL, you cannot disable a DEFAULT constraint. You CAN disable a FOREIGN KEY or CHECK constraint.

    { CHECK | NOCHECK } CONSTRAINT

    Specifies that constraint_name is enabled or disabled....

  • RE: IF (1=0) BEGIN SET FMTONLY OFF END

    Now THAT is really interesting -- and strange, indeed. This is actually very useful information. Thanks for posting!

  • RE: Update time from a datetime column, using another datetime column.

    drew.allen (8/9/2010)You can actually simplify this a little and it has the added advantage that it works without resorting to your assumptions. That is, as long as the one...

  • RE: Update time from a datetime column, using another datetime column.

    Mike Menser (8/9/2010)


    I have been searching and finding nothing. Is there a simple syntax that I can use to achieve what I need? I have an old application that has...

  • RE: Query to Find Birthday using Index Seek

    It's highly unlikely that DOB would store hours/minutes/seconds so you really wouldn't need to go to this trouble. But just for fun let's say the field did store the...

Viewing 15 posts - 151 through 165 (of 240 total)