Viewing 15 posts - 721 through 735 (of 2,648 total)
This SQL is functionally equivalent and there is no UNION:
drop table if exists #t;
WITH cte_mas AS
(
SELECT *,
...
July 4, 2022 at 4:50 pm
With a table of that size it might be better to look at partitioning the table.
June 24, 2022 at 11:27 pm
I don't know the specific answer to your question but I have generally found it better to create a temp table or table variable (depending on size) and insert...
June 24, 2022 at 9:37 am
What is a semi column?
A half column; a column bisected longitudinally, or along its axis.
A low-relief, vertical pillar or pilaster in a wall, usually without a base or capital;...
June 19, 2022 at 3:16 pm
I would take all the queries out of the stored procedure and run them individually in SSMS with SET STATISTICS IO, TIME ON and also showing the execution plan. It should...
June 8, 2022 at 5:44 pm
Whenever you do a left join a small table and a large table make sure that large table is defined first in the join query. In your case...
June 7, 2022 at 2:56 pm
with cte as
(
SELECT CONVERT(bigint, 111100000001234566) x
)
select x, convert(bigint,left(x,4) + right(x, 7))
from cte
That's works only if the...
June 7, 2022 at 12:46 am
with cte as
(
SELECT CONVERT(bigint, 111100000001234566) x
)
select x, convert(bigint,left(x,4) + right(x, 7))
from cte
June 6, 2022 at 10:55 pm
Does the DW process create temporary tables or is the tempdb usage just from sorts and joins?
June 5, 2022 at 6:41 pm
How would the computer know that 'James' is the first name and 'Smith' is a last name?
You might be better just creating a script to delete the specific rows, then...
May 20, 2022 at 9:07 pm
I have some ideas – they involve GROUP BY and MAX(). You have nearly 4,000 points and this is simple stuff. What have you tried so far?
I don't think...
May 19, 2022 at 7:18 pm
dtexec/ISServer "\SSISDB\Folder\Foldername\"Packagename" /Server "Servername" /ENVREFERENCE "Environmentname foldername"
Quotes look wrong, instead of \SSISDB\Folder\Foldername\"Packagename"
I think you'd want "\SSISDB\Folder\Foldername\Packagename"
May 17, 2022 at 2:14 pm
Maybe you could create a calculated column and put the filter on that.
https://stackoverflow.com/questions/6733264/schema-binding-with-computed-column-function
May 16, 2022 at 10:51 am
.
May 12, 2022 at 4:27 pm
Viewing 15 posts - 721 through 735 (of 2,648 total)