Viewing 15 posts - 736 through 750 (of 2,648 total)
I suspect that this reading was taken straight after you added more memory. You need to use the database to see if it will use all the memory. SQL Server...
May 3, 2022 at 12:56 am
Again, I'd like to know why we're perverting email addresses in such a fashion. There has to be a reason.
I don't know, but I was thinking it could be...
April 29, 2022 at 8:12 pm
An alternative way to do it:
REPLACE(TRANSLATE(email, '0123456789', REPLICATE(CHAR(1), 10)), CHAR(1), '')
April 29, 2022 at 7:13 pm
Also keep in mind you cannot truncate a table that is parent table for other tables. (FK relationships)
Though you can disable the foreign keys, then truncate, then enable the...
April 28, 2022 at 1:08 pm
Okay, this is VERY weird. My last post, when I hit submit, errored out with "Are you sure you want to do that?"
And when I hit submit again, it...
April 26, 2022 at 1:35 pm
You can do it with a cursor which can be faster if you a purchasing a large number of products:
IF OBJECT_ID (N'tempdb..#TEMP1', N'U') IS NOT NULL DROP...
April 23, 2022 at 4:10 pm
;with cte as
(
select sum(t.price) over (order by t.price asc, v.N) RunningTotal, *
from #TEMP1 t
...
April 23, 2022 at 1:40 am
;with cte as
(
select sum(t.price) over (order by t.price asc, v.N asc) RunningTotal, *
from #TEMP1 t
...
April 22, 2022 at 8:18 pm
Create two temporary tables which are copies of D and S but with the additional columns of [O_NAME_04_NOT_NULL], [O_NAME_05_NOT_NULL], [O_NAME_06_NOT_NULL] , then add a clustered index on the name columns.
e.g....
April 3, 2022 at 11:54 am
With the understanding that I don't use Analysis Services, can you use T-SQL in SSAS? There are some very fast methods for calculating MEDIAN in T-SQL.
You can query SSAS...
April 1, 2022 at 3:47 pm
Hi Jonathan,
Thanks for the input. I would like to know if there is any implications/perf issues of using MERGE statement especially when dealing large sets of data?
I've found replacing...
March 30, 2022 at 11:54 am
Have you looked at the execution plan? Maybe you should paste all the code in this thread.
March 29, 2022 at 9:22 pm
Jonathan,
There is no problem with the UPDATE. All indexes are created. Moreover, tables #SecuritiesClass and #SecuritiesClassRules only contain 3 records. By putting GETDATE() before and after the UPDATE, I...
March 29, 2022 at 9:02 pm
If the MERGE statement is just updating or inserting then change it to be an update statement followed by an insert where not exists statement.
March 29, 2022 at 7:13 pm
Hi Ken,
For your knowledge, this is the actual statement that triggers the problem:
UPDATE SC
SET
SC.QuickEffectiveDate = SCR.EffectiveDate,
SC.QuickNominalValueChangeTypeID = SCR.NominalValueChangeTypeID,
SC.QuickHasRightToVote =...
March 29, 2022 at 7:07 pm
Viewing 15 posts - 736 through 750 (of 2,648 total)