Viewing 15 posts - 4,921 through 4,935 (of 59,067 total)
Actually, the email system in SQL Server is quite robust and a copy of every email is stored in the msdb.dbo.sysmail_allitems table. In fact, it's a bit of a pain...
July 13, 2021 at 5:23 pm
That would be an rCTE (Recursive CTE). If the recursion in based on incremental values and RBAR proceessing, a well written WHILE Loop will be faster and less resource intensive.
July 13, 2021 at 2:00 pm
Apologies - I'm not sure what you mean - there is no cte in the above SQL statement.
Actually, there are 3. The first one starts right after the word...
July 13, 2021 at 1:41 pm
WITH SubQuery AS
(
SELECTjh.Company, jh.JobNum, ja.AssemblySeq, jo.OprSeq, jo.OpCode,
CAST(CASE WHEN NOT jh.Date03 IS NULL THEN...
July 13, 2021 at 1:37 pm
I do appreciate all of the feedback. However, you are fussing at the DBA who is the low man on the totem pole. AVPs and managers have already made...
July 13, 2021 at 2:32 am
To be honest, this sounds like a case of the bad type of parameter sniffing.
July 12, 2021 at 11:42 pm
I read your question a little differently than Grant and Jeff...
I didn't read it that way so went back and read it again... and, yeah... I agree... you might...
July 12, 2021 at 10:57 pm
I use a common table expression to produce a list of bill of materials but this slows down due to lack of an index - can this be done?
You...
July 12, 2021 at 4:48 pm
I've found that the biggest reason for SQLProfiler not capturing items is someone writing the wrong filter.
July 12, 2021 at 4:33 pm
Heh... I make mistakes of that nature prior to having at least 2 full 12 oz mugs of coffee. That means it's been happening a whole lot to me lately...
July 12, 2021 at 4:29 pm
You know, I kind of prefer the kinds of questions where there is a way to answer the question 😀
This wasn't someone posting a question. This site allows folks...
July 12, 2021 at 2:42 pm
Since SSIS is not SQL - it isn't the same - and the code is not processed as SQL code. Since the data is in the file - you...
July 11, 2021 at 10:04 pm
Go back to your first post... see that cursor definition you posted? Yeah... we need to know what you're trying to do with the data that cursor gathers. We don't...
July 11, 2021 at 9:57 pm
Here is a little different take on the solution:
Select [Code] = ltrim(substring(v.Item, 1, p01.pos - 2))
...
July 11, 2021 at 9:04 pm
Similar to the accepted solution but without the common table expression. It appears Jeff began to code it one way and then switched
select max(case when sp2.ItemNumber=1...
July 11, 2021 at 7:28 pm
Viewing 15 posts - 4,921 through 4,935 (of 59,067 total)