Viewing 15 posts - 991 through 1,005 (of 4,087 total)
I solve the 2 problems with some modification, like this:
;
WITH bii
AS
(SELECT
*
,ROW_NUMBER() OVER...
August 23, 2018 at 7:55 am
Thanks for your reply and your rewrite query , but they don´t return any...
August 23, 2018 at 7:40 am
1.From the Tools menu, click SQLTerm Open the...
August 23, 2018 at 7:30 am
You did check that they're all running on a SQL 2017 Server, right? And that the compatibility mode is set correctly?
Drew
August 22, 2018 at 3:31 pm
I completely rewrote your query. You had way too many calls to each of the tables. I used a CTE to get the row numbers for the details section. Except...
August 22, 2018 at 2:48 pm
That's better, but
August 22, 2018 at 1:36 pm
Thanks. That's what I was afraid of. I still might get the SQL Toolbelt, because I love SQL Prompt and both SQL Dependency Tracker and SQL Doc may be useful...
August 22, 2018 at 1:00 pm
I built this stored procedure to create an XML file with a specific structure...
August 22, 2018 at 12:16 pm
I wouldn't do this in T-SQL. It looks like you're preparing a fixed width file, in which case you should use bcp.
Drew
August 22, 2018 at 9:45 am
August 22, 2018 at 8:53 am
August 22, 2018 at 8:49 am
You actually can do this with a single scan of the table. With the appropriate index, you can even prevent a costly sort operation.
WITH CreditCardCTE AS
August 22, 2018 at 8:36 am
August 22, 2018 at 7:57 am
I think this would be a lot easier with several specific examples rather general hand-waving. That being said, I think that if you stop thinking about AND/OR and instead think...
August 21, 2018 at 3:19 pm
Viewing 15 posts - 991 through 1,005 (of 4,087 total)