Viewing 15 posts - 31 through 45 (of 13,429 total)
definitely use PowerShell for this;
here are two examples I use constantly:
Get-ADGroupMember -Identity "CoolestGroup" | Out-GridView
Get-ADUser -Filter {(Name -eq 'steve.jones')} -ResultPageSize 50 -Properties * |
...
June 3, 2021 at 2:58 pm
i suspect you are missing two pieces of the puzzle.
to use database mail, any non-sysadmin active directory user (or more preferably, the AD group they belong to, have to be...
March 16, 2021 at 2:49 am
the issue is most definitely that the SQL service is running as a local account, and not a domain account.
SELECT * FROM sys.[dm_server_services]
when you run any TSQL that accesses a...
February 11, 2021 at 7:21 pm
a few things to check if polybase is not able to start;
on my developer edition box, I had to make sure TCPIP connections were enabled, which is not an issue...
December 21, 2020 at 4:58 pm
the stack overflow article mentions bugs in SSRS 2008R2(and maybe SSRS 2012), so the first part does not appear to apply if you are running SSRS 2014.
The second part, where...
December 21, 2020 at 2:26 pm
so if you use the report, it works, but when run as the automation account, it fails, right?
sounds like permissions.
check the data source for the sub report. it should be...
December 21, 2020 at 1:33 pm
i see your strategy, simply filter with a WHERE statement to process just the desired rows.
I suspect you just need a decent cursor model? here you go!
create...
December 20, 2020 at 1:13 pm
To leverage the Alias, I think you would need to either use a common Table Expression or a sub query to expose the alias to the next statements.
Alais's are evaluated...
December 20, 2020 at 12:44 pm
I think what you want to do is to use a CASE statement to evaluate the b.score: if it's less than zero use zero, else use the b.score
December 20, 2020 at 12:38 pm
I cannot think of something out of the box that does this, third part or not.
i think you have to do this manually, and it will be a bit of...
December 8, 2020 at 9:04 pm
if the database is in SIMPLE recovery mode, it goes back to whether the database is currently accessible or not.
you could restore last nights backup as a new database name,...
September 9, 2020 at 10:29 am
so SQL server has a lock on the mdf/ndf/ldf files because they are in use, so are you really, really sure the mdf was encrypted?
is the database currently up and...
September 9, 2020 at 10:26 am
no help for the specific error, but structure wise, here's some help.
If you are using SUM,MIN,MAX,AVG you need a GROUP BY statement, and a column to group by.
All columns in...
September 9, 2020 at 10:14 am
i think sp_helprev_login has been the go to solution for years for logins.
database permissions are stored in the databases themselves, and those are scriptable from SSMS , and if you...
August 4, 2020 at 7:09 pm
well, for items that are not in index stats at all, you could use something like this:
SELECT name
FROM sys.[databases]
WHERE [database_id] NOT IN(
SELECT database_id FROM [sys].[dm_db_index_usage_stats]...
August 4, 2020 at 6:57 pm
Viewing 15 posts - 31 through 45 (of 13,429 total)