Viewing 15 posts - 1,606 through 1,620 (of 13,838 total)
Borrowing Jeff's code a little, here is another version:
DECLARE @Year NVARCHAR(50) = N'201901';
SELECT STUFF(@Year, 5, 0, '0');
Not only is the NVARCHAR() datatype a terrible choice, but calling...
January 9, 2022 at 10:03 am
A very similar question of yours has already been answered here.
January 5, 2022 at 4:53 pm
This gets you most of the way there. I have not yet worked out how to handle the space in 'Case ID' though.
DROP TABLE IF EXISTS #SomeXML;
CREATE...
January 5, 2022 at 9:58 am
Does table 2 contain any data currently?
If you need to control the value of EmpNo in table2, you should set it to be an INT, but not an IDENTITY.
Can you...
January 4, 2022 at 3:40 pm
Try this
SELECT customer_name
,order_id
,status = (CASE
...
January 4, 2022 at 10:53 am
CONCAT is not a safe way to do this because different values could appear to be the same.
Do all the columns have to match? Or just some?
For now, I'll...
January 4, 2022 at 10:49 am
ok thank you, will see what the service broker can do.
Jeff's queueing idea is the way I would do it.
January 4, 2022 at 10:42 am
Doesn't feel like a 'nice' solution, but this might do it.
DROP TABLE IF EXISTS #t;
CREATE TABLE #t
(
Id VARCHAR(100)
,C1 INT
...
January 3, 2022 at 7:12 pm
Use STRING_AGG(). This might work (difficult to test without DDL and sample data):
SELECT distinctid = STRING_AGG(AtcCode, ',')
,Atc_Text
FROM dbo.Drugs_BasicData d
...
January 3, 2022 at 11:29 am
MicrosoftSQL Server Integration Services (SSIS) is a platform for building high-performance data integration solutions, including extraction, transformation, and load (ETL) packages for data warehousing.
What's your point and how does...
December 31, 2021 at 11:23 am
(Please note that I have not yet performed a migration of SSISDB to 2019, so my comments are educated guesswork.)
I think you may have already identified the reason for the...
December 30, 2021 at 1:38 pm
The syntax you used in your post is the syntax I would use for selecting only those rows where all three conditions are satisfied.
SELECT ...
FROM ...
WHERE condition1...
December 23, 2021 at 4:48 pm
I really doubt it. Show us your WHERE clause, please, plus a sample of the data which is selected which you say should not have been.
December 23, 2021 at 4:27 pm
Viewing 15 posts - 1,606 through 1,620 (of 13,838 total)