Viewing 15 posts - 886 through 900 (of 7,608 total)
There is no such thing of any kind built into SQL Server.
April 29, 2022 at 3:45 pm
If you just want to get rid of all digits in the email address, then:
REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(email_id, '0', ''), '1', ''), '2', ''), '3', ''), ...
April 29, 2022 at 3:44 pm
Most likely, SQL detected that fewer rows would be returned and therefore changed how it would access those tables based on row estimates. If the row estimates are off, SQL...
April 29, 2022 at 3:42 pm
You need to look at your stand-alone (non-proc) query again. It seems to have an INNER JOIN rather than a LEFT JOIN, at least according to the query plan.
April 28, 2022 at 1:47 am
Maybe it will. SQL can pre-fetch data. It depends on the specifics of the situation, including your edition of SQL Server.
April 27, 2022 at 8:24 pm
Since TRUNCATE is more efficient, try it first.
If it doesn't work, then use DELETE.
April 27, 2022 at 8:23 pm
STRING_AGG isn't available before SQL 2016, right?
Select T1.Itemcode,T1.name ,
stuff((select ', ' + docno
from [order]...
April 27, 2022 at 3:30 pm
Rather than a CASE, use the built-in REPLICATE function:
DECLARE @MAX_naam AS varchar(MAX)
SET @MAX_naam = 22 --(SELECT SUBSTRING(MAX(naam),LEN(MAX(naam))-1,LEN(MAX(naam))) FROM incident); -- = 22
DECLARE @maxnaam_length AS int =...
April 26, 2022 at 9:30 pm
I know a little bit of Sql but not about this topic.
Ah, but this is a SQL Server forum. Your q is somewhat off-topic here. You might want to...
April 26, 2022 at 6:29 pm
Right, because reorganize only ever needs 1 extra work page, the in_tempdb option is really meaningless for reorg.
April 25, 2022 at 7:22 pm
SELECT SubmissionGuid
FROM #Subs
GROUP BY SubmissionGuid
HAVING MAX(CASE WHEN QuoteStatus = 1 THEN 1 ELSE 0 END) = 0
April 25, 2022 at 7:20 pm
To avoid using the user db for index rebuild work space, look into specifying SORT_IN_TEMPDB = ON as part of the index REBUILD. This is especially true if you have...
April 25, 2022 at 5:42 pm
For best performance, make sure you have the log table properly clustered. Specifically, if you intend to delete by log time, as is quite typical, then cluster the table that...
April 25, 2022 at 2:55 pm
Rather than adding a month and taking away a day to get the end of month (which is how I have always done it) there is a function called...
April 22, 2022 at 8:03 pm
Viewing 15 posts - 886 through 900 (of 7,608 total)