Viewing 15 posts - 151 through 165 (of 240 total)
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...
October 15, 2010 at 3:33 pm
That's what I thought. Thanks for the clarification, Grant.
October 15, 2010 at 10:17 am
nick.mcdermaid (10/14/2010)
October 15, 2010 at 9:15 am
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...
October 14, 2010 at 9:52 am
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...
October 6, 2010 at 11:59 am
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...
October 6, 2010 at 11:40 am
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...
September 30, 2010 at 11:34 pm
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...
September 30, 2010 at 3:35 pm
Yes, you have to drop old column and add a new one.
ALTER TABLE dbo.MyTable
DROP COLUMN OldComputedColumn
ALTER TABLE dbo.MyTable
...
September 29, 2010 at 9:52 am
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...
September 28, 2010 at 9:54 am
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....
September 3, 2010 at 4:05 pm
Now THAT is really interesting -- and strange, indeed. This is actually very useful information. Thanks for posting!
August 17, 2010 at 8:41 am
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...
August 9, 2010 at 5:53 pm
Mike Menser (8/9/2010)
August 9, 2010 at 12:13 pm
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...
July 29, 2010 at 12:29 pm
Viewing 15 posts - 151 through 165 (of 240 total)