Viewing 15 posts - 721 through 735 (of 2,645 total)
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
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
Viewing 15 posts - 721 through 735 (of 2,645 total)