Viewing 15 posts - 5,326 through 5,340 (of 7,191 total)
Gus is right.
I think sp_delete_backuphistory is date specific, not database specific, so you may end up throwing the baby out with the bathwater if you use it.
John
June 7, 2011 at 7:01 am
First off, if your numbers are stored as characters, the first thing you need to do is CAST them as an integer data type, otherwise you may get unexpected results...
June 7, 2011 at 4:18 am
Krishna
The only thing I would say on this is that the collation you mention is for backwards compatibility. You should use Latin1_General_CI_AS instead. I'm afraid I haven't worked...
June 6, 2011 at 6:32 am
Lee Sloan (6/3/2011)
June 6, 2011 at 6:27 am
abhisheksrivastava85 (6/2/2011)
select max(MAXValue)
...
June 2, 2011 at 8:23 am
Brainwave! Have a read about synonyms and see whether that helps you.
For the joining, use a CTE (Common Table Expression). If you do it like this:
;WITH MyCTE AS...
June 2, 2011 at 8:11 am
I don't know any way of aliasing like that, but if you run all commands in the context of the one database, you only need dbo.TableName.
As for only returning the...
June 2, 2011 at 7:51 am
Don't shrink your transaction log. It needs to be the size it needs to be. Shrinking wastes resources and causes physical fragmentation on your disk.
It sounds as if...
June 2, 2011 at 2:10 am
Or you could keep it ISO, and avoid all those joins, with INFORMATION_SCHEMA.PARAMETERS.
John
June 1, 2011 at 7:57 am
No. What makes you think it might be?
If you give us more information on what you're trying to do, we may be able to suggest a better way for...
June 1, 2011 at 6:52 am
I don't know what differences there are between the sort orders for those two collations - quite possibly none. However, I do know that if you attempt to join...
June 1, 2011 at 4:31 am
Harsha
Try this:
http://www.lmgtfy.com/?q=filegroups
Nobody has mentioned filegroups in this thread, so it's not particularly relevant to the problem you've described. However, it certainly won't do you any harm to do a...
May 31, 2011 at 5:44 am
Unallocated (ie free) space in the database including log is 1595MB. Log size is 14MB, of which 6% is used. That means log free space is 94%, which...
May 31, 2011 at 5:00 am
Harsha
Use sp_spaceused to get the total free space in the database (includes data and log files). Then use DBCC SQLPERF(LOGSPACE) to calculate the amount of free space in the...
May 31, 2011 at 4:27 am
Harsha
Every three months? You've barely got six weeks between the first and last dates. Could the database file be not growing because there's sufficient space in the file...
May 31, 2011 at 4:14 am
Viewing 15 posts - 5,326 through 5,340 (of 7,191 total)