Viewing 15 posts - 406 through 420 (of 6,400 total)
That looks good.
You don't need to store it in a temp table if you are dropping it straight away, it will display the result set from each database in its...
February 16, 2023 at 3:20 pm
Take a look at the function sp_msforeachdb, and see if you can make your code work within that to iterate over each database to pull the information you wish.
Additionally you...
February 16, 2023 at 1:48 pm
SQL on a Domain Controller, wow you're brave, if SQL is compromised so could be your entire domain.
So you need to setup a trace, extended event, audit to track failed...
February 14, 2023 at 11:15 am
SELECT prin.name, perm.permission_name
FROM sys.server_principals prin
INNER JOIN sys.server_permissions perm
ON prin.principal_id = perm.grantee_principal_id
WHERE prin.type = 'R' and prin.name = 'test'
Replace 'test' with the name of the role you have...
February 13, 2023 at 3:48 pm
I do not use any aplication for the backup
I use a Maintenance Plan created in SQL Server Management Studio - 2 steps (backup and retention)
Thanks
You may not for your...
February 13, 2023 at 12:09 pm
It may be best adding an audit or an XE session to track more information about the login failure, more specifically the application name it is using, hopefully that will...
February 13, 2023 at 11:38 am
Microsoft has a article in reference to what it is you need do to.
Please do take a look at this and come back with any further questions to this method.
February 13, 2023 at 10:38 am
That’s where xp_dirtree would come in handy
Something like the below would be the way to do it. It mentions csv but you can tweak it to whatever file extension you...
February 10, 2023 at 5:14 pm
Format files are notoriously tricky to get right.
However with your sample file and sample table you can import the data easily using
bulk insert saleshistory from 'c:\temp\sh.txt' with
(
fieldterminator...
February 10, 2023 at 4:53 pm
Since the OP mentioned rebuilding from scratch, if that was me it would all be automated and replayable multiple times so that you know what you get each time you...
February 9, 2023 at 4:28 pm
I think the title here has gotten me a little confused, but that may be my old school ways of looking at this.
When I see anyone mention a clustered SQL...
February 9, 2023 at 9:20 am
Ideally all your configuration like this should be stored in source control so you can easily recreate these things when they go wrong.
I would be looking at getting yourself familiar...
February 9, 2023 at 9:07 am
If you are using the SSISDB then you can query internal.packages and do some validation on that in the package_data column which you would have to do some manipulation against...
February 3, 2023 at 11:06 am
If it is SentinalOne I would recommend opening a case with MSFT, see if they can reproduce it as I know they update documentation based on 3rd party components which...
February 1, 2023 at 11:26 am
For the SQL Server Writer piece, change the default logging option to VERBOSE
C:\Program Files\Microsoft SQL Server\90\Shared\SqlWriterConfig.ini
Change "TraceLevel=DEFAULT" to "TraceLevel=VERBOSE"
Save the file, then restart the SQLServerWriter service.
This will give you more...
February 1, 2023 at 10:00 am
Viewing 15 posts - 406 through 420 (of 6,400 total)