Viewing 15 posts - 6,571 through 6,585 (of 7,504 total)
also keep in mind this user can be databaseowner.
check out sp_changedbowner @loginame = 'sa' ,@map = 'true'
- http://www.sqlservercentral.com/scripts/contributions/1502.asp
- http://www.sqlservercentral.com/scripts/contributions/500.asp
July 22, 2005 at 3:41 am
- You just need sqlserver backups to be able to restore. The backup-history is just a help-set for EM to determine a gui for restore. You can restore on another...
July 22, 2005 at 3:10 am
ooh it must have been realy early in the morning ....![]()
this inline select performs only a sum, so no duplicates
July 15, 2005 at 12:19 am
btw, suppose your in-line-select returns more than one result ?
Wich one to pick ?
July 14, 2005 at 12:16 am
just a first idea, early in the morning :
SELECT @ProjectID, CSPD.EventID, E1.LeadTime
, isnull(( SELECT DATEADD( d, -SUM( E2.LeadTime ), @CustomerShipDate )
FROM CompanySeasonProductTemplate AS CSPD2, Event AS E2
...
July 14, 2005 at 12:13 am
Thank you Scott for the assistance ![]()
All Italics-characters are copied from books online. The coloring was just to emphasise the pittfalls.
July 13, 2005 at 12:07 am
... When a database is deleted, the default database for any associated users is supposed to be set to Master. Looking at the sysxlogins table, this appears to have happened....
July 12, 2005 at 12:24 am
from BOL :
NO_LOG | TRUNCATE_ONLY
Removes the inactive part of the log without making a backup copy of it and truncates the log. This option frees space. Specifying a...
July 12, 2005 at 12:04 am
July 11, 2005 at 6:44 am
try this :
BEGIN TRANSACTION
DECLARE @JobID BINARY(16)
DECLARE @ReturnCode INT
SELECT @ReturnCode = 0
IF (SELECT COUNT(*) FROM msdb.dbo.syscategories WHERE name = N'[Uncategorized (Local)]') < 1
...
July 8, 2005 at 8:04 am
we only reboot when needed (upgrade) or when e.g. a plant's productionprocess is in maintenance, we take the change to check the server thoroughly, perform systems-maintenance and reboot.
Currently our longest...
July 8, 2005 at 12:26 am
maybe you can have a first glimp using DBCC INPUTBUFFER (spid)
Offcourse profiler will be your main analysis tool.
July 7, 2005 at 3:04 am
- did you take a look a the statistics ? (dbcc showcontig, sp_spaceused... )
- you might use QA to check the queries using the option "display estimated execution plan" and...
July 7, 2005 at 2:55 am
you can say that again !
truncate_only seemed so easy, but making the new fullbackup has been forgotten many times ![]()
July 7, 2005 at 12:08 am
Viewing 15 posts - 6,571 through 6,585 (of 7,504 total)