Viewing 15 posts - 226 through 240 (of 26,487 total)
Please see this thread: https://docs.microsoft.com/en-us/sql/t-sql/language-elements/like-transact-sql?redirectedfrom=MSDN&view=sql-server-ver15
February 17, 2020 at 8:55 pm
Please see this thread: https://docs.microsoft.com/en-us/sql/t-sql/language-elements/like-transact-sql?redirectedfrom=MSDN&view=sql-server-ver15
February 17, 2020 at 8:53 pm
If you read the documentation about LIKE (https://docs.microsoft.com/en-us/sql/t-sql/language-elements/like-transact-sql?redirectedfrom=MSDN&view=sql-server-ver15) you will see that it does not support regex the way you are trying to use it.
February 17, 2020 at 8:51 pm
For the OP. I spent some time looking at the execution plans and the code you posted. I have come to the conclusion that there just isn't enough here for...
February 17, 2020 at 8:03 pm
February 17, 2020 at 7:59 pm
There are proprietary temporal functions for formatting dates and working with them. Your code will never port to another SQL product. For example, the ANSI/ISO standard SQL uses the...
February 17, 2020 at 7:51 pm
May I be honest? Comparing the two plans, the original view is better that the your rewrite. Your rewrite, looking at the plan in SentryOne Plan Explorer timed out trying...
February 17, 2020 at 5:32 pm
Not exactly what you mean by reset/delete, reset can have a different meaning than delete. If you are talking about deleting all the data from the table once a week...
February 17, 2020 at 5:13 pm
Look up the date function date_part.
February 17, 2020 at 7:37 am
That is a simple question to answer. The reason it doesn't throw an error in the second query is because of how SQL Server works with subqueries. Since you are...
February 14, 2020 at 6:19 am
May I ask why you are using CTEs in this manner when you could just use the tables themselves?
That was going to be my exact question.......
February 13, 2020 at 12:46 am
Still curious as to WHY you were using CTEs to accomplish your task. It was just as easily done using the tables themselves. Compare the code below.
IF...
February 12, 2020 at 2:03 pm
May I ask why you are using CTEs in this manner when you could just use the tables themselves?
That was going to be my exact question.... or is...
February 11, 2020 at 4:03 am
May I ask why you are using CTEs in this manner when you could just use the tables themselves?
February 10, 2020 at 10:45 pm
Or, put the CTE with the select that is calling it:
With ProductName(ProductID, Description)
AS
(
SELECT ProductID, ProductName
FROM dbo.Products
)INSERT INTO ProductName ...
February 8, 2020 at 9:22 pm
Viewing 15 posts - 226 through 240 (of 26,487 total)