Viewing 15 posts - 16 through 30 (of 335 total)
I tried this ..... but it still sends email if there are no records...
IF @@rowcount > 0
--IF (SELECT COUNT(*) FROM #tlogtables) > 0
BEGIN
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'Default',
Also tried this...
IF (SELECT COUNT(*)...
August 7, 2024 at 6:55 am
Thanks Brian. Any thoughts references on how to handle autogrowth for file stream databases.
May 16, 2024 at 11:26 am
Thank you and how do you handle autogrowth for file stream databases.
May 9, 2024 at 5:35 am
sqlserver service account is running under LocalSystem Account on the destination server
May 1, 2024 at 4:22 pm
On destination server XYZ SQLAgent runs under LocalSystem account.
XYZ$ has been given read/write access to the network share - \\ABCD\E$\BackupsTest\
April 26, 2024 at 8:25 pm
We have several sql backup files on a network share and are trying to restore them onto a sqlserver
April 25, 2024 at 1:28 pm
My first select :
A E:\1.mdf D
A_1 E:\2_1.ndf D
A_log F:\3.ldf L
My second select:
SrvA Db1
This is what the result...
March 12, 2024 at 9:33 am
I created the function Restore-DbaDatabase , loaded it and tried executing. Was not aware that the DBAtools module had to be installed.
March 8, 2024 at 3:19 pm
Restore-DbaDatabase -SqlInstance server1\instance1 -Path Z:\Backup -DestinationDataDirectory Z:\Restore -DestinationLogDirectory Z:\Restore
Restore-DbaDatabase : The term 'Restore-DbaDatabase' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling...
March 8, 2024 at 1:14 pm
DECLARE @backup_path nvarchar(300);
DECLARE @restore_path nvarchar(300);
DECLARE @cmd nvarchar(1000);
DECLARE @file_list TABLE (backup_file nvarchar(400));
DECLARE @backup_file nvarchar(300);
DECLARE @Table TABLE (LogicalName nvarchar(128),[PhysicalName] nvarchar(128), [Type] varchar, [FileGroupName] nvarchar(128), [Size] nvarchar(128),
[MaxSize] nvarchar(128), [FileId]nvarchar(128), [CreateLSN]nvarchar(128),...
March 4, 2024 at 3:42 pm
Have in working and Thank you Jeff !
And happy retirement !! 🙂
March 4, 2024 at 9:39 am
Hello Grant/All,
I have a some databases I would like to dbcc checkdb and sent an email alert if any errors occurs in any of the databases.
I am running DBCC as...
March 3, 2024 at 4:13 pm
As part of a SQL jobs which dbcc's all user dbs and if any the dbs report an error then I need an email stating the same...that this db has...
February 27, 2024 at 5:46 pm
Viewing 15 posts - 16 through 30 (of 335 total)