Viewing 15 posts - 3,181 through 3,195 (of 59,067 total)
I know little about SSIS but I'm sure there's a setting for the line terminators.
July 9, 2022 at 3:42 am
As a bit of fun, I ran across this picture on LinkedIn about a week ago. I laughed so hard it hurt. 😀

July 9, 2022 at 3:37 am
Great, thanks! That does the trick perfectly.
Be careful... it only works for a single instance on any one row. If there are two instances, it only takes care of...
July 8, 2022 at 8:09 pm
I don't know... I don't work with anything having to do with Azure.
July 8, 2022 at 7:55 pm
For 1, I tried a CTE to create a Month lookup table. No hardcoded string values
;WITH CTE_Months
AS
(
SELECT GETDATE() AS TheDate, LEFT(DATENAME(mm,GETDATE()),3) AS [MonthAbr],MONTH(GETDATE()) AS MonthOrder
UNION ALL
SELECT...
July 8, 2022 at 7:45 pm
Passed the initial screening and now have a SQL interview. Dabbled with SQL for a few months now but there are a lot of resources that I can use...
July 7, 2022 at 8:46 pm
If "silly" people are writing such queries -- and no one in IT can tell you to ignore them ...
My problem is that those two groups are frequently the...
July 7, 2022 at 2:51 am
How fix SQL performance issues? Start by checking your wait stats
1-Ensure your TempDB database is configured optimally.
2-Make sure you're running index maintenance frequently.
3-Implement indexes that provide a benefit to...
July 7, 2022 at 2:44 am
select cast(year(v.sort_mo) as smallint), input_str.mo
from (values ('Jan'),('Feb'),('Mar'),
('Apr'),('May'),('Jun'),
...
July 6, 2022 at 2:50 pm
There's something crazy going on with Jonathan's machine, Scott. Look at the results of your code in his run... it's all over the place.
I'll also say that on both my...
July 6, 2022 at 2:13 am
Steve Collins wrote:Here's 1, 3, and 4
I was going to test this for performance but then noticed that it's not a complete answer 😮
The data types were added. It...
July 6, 2022 at 2:06 am
Oh my! That's a crazy amount of difference, Jonathan... even from the runs for the same code. What else is running on your machine?
I'm running SQL Server 2017 Developer's Edition
The...
July 6, 2022 at 2:02 am
For Question #1, Scott's method is the fastest. Don't take my word for it, though. Here's the test table...
--===== If the test table exists, drop it just...
July 6, 2022 at 12:42 am
Here's 1, 3, and 4
--(1)
select v.sort_mo, input_str.mo
from (values ('Jan'),('Feb'),('Mar')) input_str(mo)
cross apply (values (parse(concat(input_str.mo, '-01-1900') as date))) v(sort_mo)
order by v.sort_mo;
I was going...
July 6, 2022 at 12:01 am
ok, that's not what I thought you meant. I thought you meant flip all the bits.
This works for 0 and 1:
DECLARE @smallint smallint =...
July 5, 2022 at 11:24 pm
Viewing 15 posts - 3,181 through 3,195 (of 59,067 total)