Viewing 15 posts - 1,501 through 1,515 (of 7,191 total)
May 23, 2017 at 4:49 am
What do you get if you run this?
SELECT MAX(backup_size)
FROM msdb..backupset
WHERE database_name = 'toto'
AND backup_finish_date > CURRENT_TIMESTAMP - 14
AND type = 'L'
May 23, 2017 at 1:59 am
Please read about crosstabs and pivots - that will help you to get the results you're looking for from your sample data. If you have an unspecified number of items,...
May 23, 2017 at 1:49 am
Well, you can't make any log backups until you've made a full backup. Therefore if you want point-in-time recovery capability in test/dev right from the start then yes, you need...
May 23, 2017 at 1:06 am
Where are you restoring the database? I can't think of any reason to do another backup just because you've restored from a backup of the same database. The only thing...
May 22, 2017 at 9:54 am
aar - Monday, May 22, 2017 8:53 AMI set it as '%EXECUTE%AS%' so both ways are not allowed 🙂Thanks you
Mmmmm... What happens...
May 22, 2017 at 9:43 am
I think it depends on the default language for the server, which you can find in sys.configurations.SELECT l.name, l.alias
FROM sys.configurations c
JOIN sys.syslanguages l ON c.value_in_use...
May 22, 2017 at 8:49 am
You could set up a daily job (or whatever frequency is appropriate) to look for jobs that aren't owned by the SQL Server Agent service account, and change them so...
May 22, 2017 at 7:39 am
Anthony
Don't do either. Not yet, at least. If you're worried about the growth of your log file, make sure you are making frequent log backups (unless you're in...
May 22, 2017 at 7:21 am
DesNorton - Sunday, May 21, 2017 1:33 AMThis is because all constraint names in the database must be unique.
Indeed they must. Be...
May 22, 2017 at 4:41 am
SELECT
id
, Name
, 'temp1' AS SourceTable
FROM #temp1
UNION ALL
SELECT
id
, Name
, 'temp2'
FROM #temp2
John
May 22, 2017 at 4:33 am
This almost works, but please will you check your logic for Company 2, Item 1 - it should be 55 + 23 = 78, shouldn't it?
SELECT
May 19, 2017 at 9:01 am
Yes please - and preferably also without one of Companyname and Dataname_key.
John
May 19, 2017 at 7:37 am
May 19, 2017 at 4:46 am
Viewing 15 posts - 1,501 through 1,515 (of 7,191 total)