Viewing 15 posts - 166 through 180 (of 348 total)
SELECT
name AS DBName,
CASE name
WHEN 'CustomerDB' THEN 'Yes'
ELSE 'No'
END as DBs
FROM sys.sysdatabases
where name='CustomerDb'
When CustomerDB is present it prints correct as below.
Columns: DBName Yes/No
CustomerDB Yes
I need the where clause to filter for...
October 19, 2020 at 8:13 am
This should suffice for now ->capture and record data changes.
But looks like I am stumped prior to this task.
I built multiserver administrative servers.
My principal server has 1 job which I...
October 14, 2020 at 1:22 pm
Thank you but my question was can caching/pinning tables be an option to avoid fragmentation ?
July 5, 2020 at 5:18 pm
CREATE TABLE [dbo].[A]([DatabaseName] [nvarchar](1000) NULL, [DBSize] [nvarchar](1000) NULL)
insert into A values (DatabaseA , 580960.00 MB)
insert into A values(DatabaseB, 23523.00 GB)
insert into A values(DatabaseC,234.00 KB)
Table values:
DatabaseA 580960.00 MB
DatabaseB ...
May 12, 2020 at 3:55 am
Please ignore my previous comment.
Thanks for the response
November 29, 2019 at 10:22 am
Thanks for the elaborate reply but looks like I still cannot get this to work.
My Query:
CREATE EVENT SESSION [AlterExtendedEvent] ON SERVER
ADD EVENT sqlserver.object_altered(SET collect_database_name=(0)
ACTION(sqlserver.database_name,sqlserver.nt_username,sqlserver.session_nt_username,sqlserver.sql_text)
WHERE ([database_name]='AAAAAA' AND NOT ([nt_domain]='ABC' AND [nt_user]=N'DEF')))
ADD...
November 29, 2019 at 9:24 am
When I use database_name as the only filter it works well.
But when I add nt_user /session_nt_username under predicates everything goes for a toss.I get data I do not want to...
November 28, 2019 at 6:52 am
I tried to filter starting with one filter as suggested and still does not work.Obviously I am doing this completely wrong.Any suggestions please.I still find rows with AAAA\ZZZZ against nt_username...
November 28, 2019 at 6:27 am
Are you saying 'alter' works and not 'ALTER' ?
November 28, 2019 at 4:20 am
This was certainly not an interview question.
1.I have accumulated relevant information from across servers(110+ servers) into a central server using SSIS. But that was more of a SQL monitoring solution...
November 28, 2019 at 4:15 am
Thank you John.
Would you please elaborate on how to configure an email alert once an event happens which we needs to be emailed?
Also...
I am able to capture NTLogins activity.But the...
November 7, 2019 at 3:12 pm
Thanks for the response.I do agree with everything you have mentioned . But I don’t decide.
November 7, 2019 at 3:39 am
Do you know of any 3rd party open source applications which do the work of a trigger ?
November 6, 2019 at 4:26 pm
Viewing 15 posts - 166 through 180 (of 348 total)