Viewing 15 posts - 856 through 870 (of 3,011 total)
...
Do you think this qualifies as a bug, to report to Microsoft?
It's probably easier to just not create databases with a trailing space in the name.
May 18, 2011 at 2:58 pm
GilaMonster (5/18/2011)
Heaps cannot be rebuilt in SQL 2005.
Someone is sure to suggest adding and dropping a clustered index. While...
May 18, 2011 at 1:14 pm
If your application is expecting 150 columns and you add a column to the table it will probably break when it is suddenly starts getting 151 columns.
May 17, 2011 at 8:40 am
You can calculate the Tuesday after the last Friday of the month using the logic below. For the current date, just replace a.DATE from the calendar table with GETDATE()....
May 17, 2011 at 8:33 am
The solutions posted using sign will not work correctly if the value is negative.
Also, they need to account for the possibility that all four columns are null.
create table #table
(col1...
May 16, 2011 at 1:26 pm
Did you restart SQL Server after setting lock pages in memory?
How large is the database actual space used in the data files?
May 13, 2011 at 1:13 pm
Stringzz (5/12/2011)
May 13, 2011 at 9:31 am
Are you running Windows Standard or Enterprise Edition? If you are running Windows Standard Edition, you will not be able to access 6 GB of memory.
From SQL Server 2005...
May 13, 2011 at 9:21 am
It can be used any time a logical condition is needed that should always be true.
while 1=1
begin
if SomeLogicalCondition
break -- to exit while loop
end
May 10, 2011 at 9:08 am
You cannot change an existing column to identity.
You can create a new table with the identity attribute set on the column you want and copy the data from the old...
May 10, 2011 at 8:11 am
Probably better to ask a lawyer about something like that.
May 9, 2011 at 10:43 am
You might consider defaulting the PK columns with the NEWSEQUENTIALID() function to minimize the page splits as you insert data.
create table myTable
(
ColumnA uniqueidentifier not null DEFAULT NEWSEQUENTIALID() primary key...
May 9, 2011 at 9:54 am
buddy__a (5/5/2011)
May 5, 2011 at 9:52 am
if 1=1
begin
exec('
create view dbo.test
as
select * from sometable
'
end
May 5, 2011 at 9:34 am
Viewing 15 posts - 856 through 870 (of 3,011 total)