Viewing 15 posts - 136 through 150 (of 300 total)
With the understanding that I've not done any deep analysis on any of the code posted and going only on what I've seen in the past, the nested REPLACEs...
July 13, 2022 at 3:52 pm
Just to be sure. You want to?
July 12, 2022 at 7:27 pm
Since SQL Server 2016 you can use the STRING_SPLIT() function, which means that you can do something like this:
SELECT * FROM View_Session WHERE BookID IN(SELECT CAST(value AS...
July 12, 2022 at 6:33 pm
A more primitive alternative to the above replies. 🙂
declare @table table (
Number int,
Date1 date,
Date2 date,
...
July 12, 2022 at 5:56 pm
A simple typo I think. If you have just used copy/paste from Ed B's suggested code, the CAST needs a starting paranteses, i.e. CAST(NULL AS VARCHAR(100))
July 8, 2022 at 8:51 pm
This is just a feeling, but I have had the same problem a time or two. Turned out that different default settings of ARITHABORT between SSMS and the application resulted...
June 22, 2022 at 2:35 pm
Or maybe a combination of the proposed queries? Something like
WITH LowestHighest AS (
SELECT MAX (vacationhours) as 'Max_VacationHours', MIN (vacationhours) as 'Min_VacationHours'
From [HumanResources].[Employee]
)
SELECT 'Lowest' AS VacationHoursLeft, e.*, lh.Min_VacationHours AS VacationHours
FROM [HumanResources].[Employee]...
June 21, 2022 at 12:28 pm
Was the WHERE clause allowed when the COLUMNSTORE index was first introduced with SQL Server 2012? I think not, but I haven't been able to find the official MS documentation...
June 21, 2022 at 11:37 am
Alternatively you'll need to use a window function instead of a conventional group by.
June 20, 2022 at 11:00 pm
It would have been nice if you had provided test data in a format that is readily usable. That's generally a prerequisite for having any success in getting a response...
June 20, 2022 at 9:47 pm
I'd say you have far too many single-quotes. Each single-quote in your original query only needs to be converted into two, in order to be represented in a variable. You...
June 8, 2022 at 5:28 pm
A different approach that may be possible is to feed you table source into a Destination Script Component. In this you can define more than one downstream named output destinations....
May 25, 2022 at 3:20 pm
I also think you'll have to do the limiting of the output data size at the source, i.e. use a SELECT TOP(calculatedNumberOfRows) * FROM yourTable. The number of rows that...
May 25, 2022 at 3:07 pm
Looks like it's referencing SQL Agent tokens.
May 24, 2022 at 8:36 pm
Alternatively you can define five (or the number of packages you have) separate Data Flows, where your input will then be slightly modified queries:
"Select tablenumber from a table where tablenumber=1",...
May 24, 2022 at 8:23 pm
Viewing 15 posts - 136 through 150 (of 300 total)