Viewing 15 posts - 1,861 through 1,875 (of 7,614 total)
Are you using SQL mail (sp_send_dbmail)? If so, you can use the mail status table in msdb to check on the status of any email. Look at the "sysmail_%" views.
February 25, 2021 at 6:11 pm
What sort of help do you want?
Hi all,
I have two SQL jobs. These jobs execute SSIS packages and then send files to e-mail.
I need to create one more...
February 25, 2021 at 6:09 pm
Get the Developer Edition, that would allow you to use more RAM and give you many other added capabilities as well.
February 25, 2021 at 3:37 pm
> Is it a better approach before running the job I can make the initial size bigger? <<
Yes, for sure. For one thing, it means you can make sure that...
February 24, 2021 at 9:08 pm
SQL Server Agent provides Alerts that can be configured to do that. However, they are per server and, indeed, per db for log file counters.
The default trace also contains entries...
February 24, 2021 at 9:05 pm
Removing NOLOCK / UNCOMMITTED could only slow down the code, it could never speed it up. Since OP is looking for a performance gain, removing NOLOCK is not the top...
February 24, 2021 at 8:49 pm
As stated, we really need a query plan. But this is always true: instead of "(select count(...) ...) > 0" you can just do an EXISTS check. You don't really...
February 24, 2021 at 3:24 pm
If you can count on the values being the same length and/or there are only a very limited number of length variations, you could just SUBSTRING the data from the...
February 24, 2021 at 3:19 pm
Most people won't know the trick of of embedding a SELECT N=0 UNION ALL to make the "-1" calculation unnecessary.
I do know that trick, and have used it myself,...
February 22, 2021 at 11:49 pm
Here's an alternative method, just for the heck of it:
SELECT
begin_time, end_time,
LEFT(end_time, ISNULL(NULLIF(LEN(end_time) - 2, -1), 0)) * 60...
February 22, 2021 at 5:56 pm
SUM(Revenue) OVER( PARTITION BY Region, Year, Month )
February 22, 2021 at 4:59 pm
Oops, seems not to be the case. You just need to set max mem. Maybe I'm remembering from an earlier version of SQL?!
February 19, 2021 at 7:44 pm
Jo,
As I researched, SQL locks pages in memory so with SQL max memory set at 480 GB,
I thought SQL only locked SQL pages in memory if the max and...
February 19, 2021 at 7:25 pm
If you do create a tally table, page compress it at 100 fillfactor. That will save significantly on the overhead of reading the table. And, since that table is static,...
February 19, 2021 at 7:22 pm
In SQL Server, the CASE WHEN/THEN results are scalar (single) values only: keywords, operators, etc. are not allowed. Thus, you need something more like below.
Edit: That said, the expressions within...
February 19, 2021 at 7:05 pm
Viewing 15 posts - 1,861 through 1,875 (of 7,614 total)