Viewing 15 posts - 1,651 through 1,665 (of 13,879 total)
Nothing to worry about. SELECT queries merely read data, they do not update it.
January 19, 2022 at 3:39 pm
hmm.. for some reason it says that the last post by me but I can't see it
UPDATE: weird.. I could see only 3 pages and once I posted this...
January 11, 2022 at 11:28 am
I tried both Edge and Chrome - no luck. Missing the menu items - assume there was a recent update?
Thanks for verifying.
In addition, it seems that I...
January 11, 2022 at 8:24 am
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
Viewing 15 posts - 1,651 through 1,665 (of 13,879 total)