Viewing 15 posts - 1,666 through 1,680 (of 13,838 total)
As TangoVictor mentions, there are other possibilities.
One is to keep the filename exactly as it is and instead modify your 'subsequent processing' tasks to use a variable file name. This...
December 10, 2021 at 11:09 am
but when I copy and paste them in Excel and calculate the numbers they are identical to when I sum them in SQL.
In Excel, you see the incorrect...
December 9, 2021 at 4:25 pm
SELECT ItemCode from T1 UNION SELECT ItemCode from T2
December 9, 2021 at 3:53 pm
Hi Phil,
Nice to hear from you. I will try this. I hope you have a great holiday and stay safe!
Thank you very much! If you have trouble getting this...
December 9, 2021 at 3:52 pm
Hello,
So basically I have an SSIS package that fails when I use an older version of excel (xls). I cannot change the way the excel file is loaded since...
December 9, 2021 at 2:58 pm
Hi
I have below data in attached file
Thanks
This seems a bit terse. What are you trying to achieve?
Note that many people (including me) choose not to open non-text attachments –...
December 9, 2021 at 2:13 pm
Yup, I was one of the 'most people' crowd, thanks for alerting me to that, Jeff. Always good to be aware of these extra possibilities. It was also only recently...
December 9, 2021 at 12:09 pm
We cannot give you a definitive answer, because we can't see your data or table structures. But the fact that each of the queries works individually, but not when joined,...
December 9, 2021 at 10:07 am
CONCAT_WS() "concat with separator" ignores the nulls
select concat_ws(' | ', t.Col1, t.Col2, t.Col3) [output]
from #t t;
Wow, never even seen that function before, cool stuff, Steve.
December 8, 2021 at 3:31 pm
Here is a quick solution. There will be more elegant ways, I'm sure:
DROP TABLE IF EXISTS #t;
CREATE TABLE #t
(
Col1 CHAR(1) NULL
...
December 8, 2021 at 11:28 am
Are you hoping for some T-SQL, or are the suggestions already provided sufficient?
December 7, 2021 at 4:38 pm
Can you tell us what you would like the answer to be, for your example of 295, 3, 0?
One formula which avoids the problem is to calculate any two of...
December 7, 2021 at 2:55 pm
I created a temp table and inserted your XML doc into it. The following code worked for me
SELECT ChannelId = v.n1.value('(.)[1]', 'INT')
FROM #SomeXML sx
...
December 7, 2021 at 10:08 am
You need to change the role memberships within MSDB. Untick everything except db_owner and try again.
December 7, 2021 at 9:29 am
Where is the DDL, sample data, desired results?
Merely providing a mass of unformatted code is not the way to get results, as you well know.
December 6, 2021 at 6:58 pm
Viewing 15 posts - 1,666 through 1,680 (of 13,838 total)