Viewing 15 posts - 1,231 through 1,245 (of 3,011 total)
You really and absolutely need to have a clustered index on that table, and you should really have a primary key. If you leave the table as a heap,...
September 30, 2010 at 12:44 pm
Derrick Smith (9/29/2010)
Michael Valentine Jones (9/29/2010)
Derrick Smith (9/29/2010)
Michael Valentine Jones (9/29/2010)
September 30, 2010 at 11:52 am
jackimo (9/30/2010)
IE the date...
September 30, 2010 at 11:30 am
Really bad idea:
WHERE
CONVERT(DATETIME,LEFT(CONVERT(VARCHAR, b.event_time, 120),10)) >= '20100901'
and
CONVERT(DATETIME,LEFT(CONVERT(VARCHAR, b.event_time, 120),10)) <= '20100930'
This will be much better if you have an index on event_time, because it allows you to use the index.
where
b.event_time...
September 30, 2010 at 10:28 am
Derrick Smith (9/29/2010)
Michael Valentine Jones (9/29/2010)
September 29, 2010 at 2:50 pm
Normally, you do not want to overwrite a prior backup, because it leaves you without a backup file if something goes wrong while you are running a backup.
September 29, 2010 at 2:36 pm
There is a good chance that setting your database to read_committed_snapshot (row version isolation) will resolve your deadlock issues, and will eliminate most blocks created by long running selects without...
September 29, 2010 at 8:51 am
This is probably the easiest, and it works with all versions of SQL Server from 7.0 on:
select * from INFORMATION_SCHEMA.COLUMNS
September 29, 2010 at 8:30 am
adev 1388 (9/27/2010)
Actually I have got a task to match all the tables of 2 servers (QA and PROD) and add tables to which
ever database doesn't have one or...
September 27, 2010 at 3:37 pm
Have you verified that the table is not a heap (has a clustered index)?
September 27, 2010 at 2:54 pm
From SQL Server 2008 Books Online:
"Configuring and Starting the Transact-SQL Debugger
...
...
The requirements to start the Transact-SQL debugger are as follows:
SQL Server Management Studio must be running under a...
September 27, 2010 at 11:54 am
I see what the error is:
SQL Server 2000 (compatibility mode 80) does not allow functions to be used as input parameters for table valued functions, while they are allowed in...
September 23, 2010 at 3:11 pm
DB_ID() has been a valid function since at least SQL Server 7.0
September 23, 2010 at 2:23 pm
ALZDBA (9/23/2010)
...When are people going to learn RAID is not a backup strategy !
...
I think these people learned that:
Death by Delete
http://thedailywtf.com/Articles/Death-by-Delete.aspx
"...Unfortunately, the single delete query proved to be far more...
September 23, 2010 at 9:44 am
This function returns age in years, and handles the specific cases you mentioned.
Age Function F_AGE_IN_YEARS:
September 23, 2010 at 9:11 am
Viewing 15 posts - 1,231 through 1,245 (of 3,011 total)