Viewing 15 posts - 1,021 through 1,035 (of 2,645 total)
DELETE tp
FROM TESTPO tp
WHERE STATUS = 1
AND EXISTS(SELECT *
...
May 28, 2020 at 10:23 pm
So this will only affect queries involving tempdb collation?
What about when join other user database (not system ones) with different collations?
Thanks
If they are different collations then you will have...
May 21, 2020 at 4:54 pm
I didn't mean that as a slam. It's just not possible to post general guidlines because everyone's stuff is different. I just watched the following YouTube on the subject......
May 20, 2020 at 10:16 pm
It would be helpful if you knew which particular statements within the stored procedure are the long running ones. The first thing to do is identify which statement(s) are taking...
May 19, 2020 at 4:59 pm
Really you should have the databases set to the same collation as the tempDB as if you create a temporary table you will have problems joining it to your database...
May 16, 2020 at 1:36 am
I think the most obvious way to rewrite that query would be:
SELECT u.UserId
FROM UserTable u
WHERE EXISTS(SELECT *
...
May 12, 2020 at 7:29 pm
;WITH myTable AS
(
SELECT *
FROM (VALUES (1,10,'Deny','Denied','a','04/05/2020'),
...
May 11, 2020 at 1:18 pm
An FK is a constraint that enforces the values in the column(s) are present in the primary-key/unique-index of the related table.
May 7, 2020 at 5:58 pm
It allows you to create more general purpose flexible SQL statement because the full text of the SQL statements may be unknown at compilation
Rather than 'compilation', I'd suggest 'time...
May 7, 2020 at 1:28 pm
An alternative is like below. Which performs better depends on total data volume and index(es) present:
Edit: I'm at work so I have only a limited time to review...
May 5, 2020 at 2:45 pm
.
May 2, 2020 at 10:55 pm
Heh... let the silliness continue. I just got an email saying...
KILL 99.9% OF BACTERIA & HARMFUL MICROBES
FORMS A PROTECTIVE SHIELD THAT DELAYS GROWTH OF HARMFUL MICROBES ON INTERIOR...
May 1, 2020 at 9:15 pm
The fastest way for you to do this is in SSMS Object Explorer, select the "Stored Procedures" node, then press F7. In the right-hand pane then select all the stored...
May 1, 2020 at 5:58 pm
Install this stored procedure
IF Object_Id(N'INFGenerateObjectScript', N'P') IS NULL
BEGIN
EXEC ('CREATE PROCEDURE [dbo].[INFGenerateObjectScript] AS BEGIN SELECT 1 END')
END
GO
GO
-- **********************************************************************
-- PROCEDURE INFGenerateObjectScript
-- Description:...
May 1, 2020 at 2:59 pm
I need to find all sprocs having a misspelled word and dynamically correct.
Why don't you have your stored procedure code in a source control system?
May 1, 2020 at 12:21 pm
Viewing 15 posts - 1,021 through 1,035 (of 2,645 total)