Viewing 15 posts - 1,141 through 1,155 (of 6,678 total)
Since BCP is an external executable - all you can identify from either EE or Profiler will be the SQL statements that are generated and sent to the server. SQL...
April 29, 2021 at 8:41 pm
Using sp_executeSql - you can pass all parameters to the dynamic code and only use the parameters needed. Instead of worrying about 'exceptions' - just pass them all. The dynamic...
April 29, 2021 at 7:14 pm
No, no, no, no....
Setup a proxy account and assign that proxy account to the Integration Services subsystem in SQL Server Agent. Then - use that proxy account to run the...
April 29, 2021 at 6:08 pm
We already keep 1 month of backup on drive and anything above that should transfer to shared backup network and that is the requirement of client.
Does...
April 28, 2021 at 8:13 pm
Here is another take:
--==== Create some test data
Drop Table If Exists #testData;
Declare @startDate date = '2021-01-01'
, @endDate...
April 26, 2021 at 6:59 pm
Yes - when you run the SP2 install it will give you the option for each instance. With that said - you should also be applying the latest CU and...
April 26, 2021 at 6:05 pm
I can wrap the results of the dynamic pivot - into the email?
Thanks
Yes - here is a template:
Set Nocount On;
Declare @body nvarchar(max)
...
April 26, 2021 at 6:02 pm
could I call SP from powershell and output to csv?
Why are you changing the requirements now? You started with a question about dynamic pivot - that was answered...
April 26, 2021 at 5:11 pm
I was going to ask is there any easy way to port the output to an Xcel file?
If I understand your requirement - you want to run this...
April 26, 2021 at 2:43 pm
You don't need the CONVERT - you can just pass the datetime string and the value will be implicitly converted (assuming the columns data type is datetime and the string...
April 24, 2021 at 3:33 pm
Are you using SSRS for the report - or some other reporting tool? If so - then don't pivot the data in SQL Server, let SSRS (or other reporting tool)...
April 24, 2021 at 3:30 pm
another complication for me personally is that amongst my officemates there are some vaccine refuseniks, with some presumably never having covid and at the same time being in...
April 23, 2021 at 7:04 pm
I am not sure who manages this site - but it is my go to site for updates to SQL Server: https://sqlserverbuilds.blogspot.com/
There always seem to be up to date with...
April 23, 2021 at 6:47 pm
To be honest - I think you are going to find that converting this to use CTE's isn't going to be easy nor worth the actual time spent. The problem...
April 23, 2021 at 5:05 pm
The reason it doesn't work is because the variable $p contains a list of all objects returned from get-dbaregserver. Passing that object through the pipeline to where-object - is passing...
April 22, 2021 at 6:59 pm
Viewing 15 posts - 1,141 through 1,155 (of 6,678 total)