Viewing 15 posts - 91 through 105 (of 430 total)
You could use sp_MSforeachtable to avoid writing a loop, but it will only work in the database it's run from, so you couldn't query two databases at the same time...
November 15, 2023 at 7:46 pm
Are the dimension columns you need unique without Company Code and is Company Code irrelevant? If so, can you join to a distinct query of the columns you need?
It appears...
November 15, 2023 at 5:15 pm
Since you're not using SQL Server (based on the INT4 datatypes you used), it may be that the RDBMS you're using doesn't allow CTEs (Common Table Expressions), which is...
September 12, 2023 at 8:56 pm
Does this give you what you need? It sounds like General Purpose tier serverless autoscaling databases will turn off automatically after a certain period of inactivity and they can be...
September 11, 2023 at 5:40 pm
I know you solved it already, but I think the issue only happens when the milliseconds of GETDATE() end in a 3, which is why it was unpredictable.
SQL considers DATETIME...
August 25, 2023 at 11:10 pm
Do you want the devices with the max syncdate, or the max syncdate per device ? Your test data returns the same either way.
The max syncdate is 2023-08-23. If you...
August 23, 2023 at 5:14 pm
Identify the ins_nums, then join/semi join back to the table.
SELECT i.ins_num
, i.pat_id
, i.bp_id
...
July 17, 2023 at 3:06 pm
Does this work?
DROP TABLE IF EXISTS #tb_pat_ins
CREATE TABLE #tb_pat_ins
( pat_ID INT,
ins_num VARCHAR(20)
)
INSERT #tb_pat_ins (pat_ID,ins_num)
VALUES (111807 , '100449401H'),
(461261, '100449401H'),
(106820,...
July 13, 2023 at 7:13 pm
sql server is very old uses query analyzer , i attache also my code , any help suggestion more than welcome and appreciated.
Do you mean Query Analyzer that came...
April 21, 2023 at 2:55 pm
I still don't understand why an AWS server that costs more per month to rent than the entire cost of buying my laptop new should take 10 times longer...
March 31, 2023 at 11:45 pm
The explicit cast to varchar(15) is potentially truncating longer values, with either normal or special characters after the 15th position.
If the Tenant_ID is always supposed to be a number, you...
March 29, 2023 at 5:44 pm
Edit. Solution above
March 21, 2023 at 2:57 pm
Is database mail configured and is there a profile called 'test.com'?
March 9, 2023 at 6:55 pm
My test was backwards, inserting into the remote server. Inserting into the local server should be easier.
If you create this table in both places
CREATE TABLE dbo.Test
( ID...
March 8, 2023 at 3:56 pm
Do you know where SSMS is storing temp files? I believe the default is %USERPROFILE%\AppData\Local\Temp.
I just ran a really stupid query, returning millions of rows to the screen and it...
March 7, 2023 at 6:46 pm
Viewing 15 posts - 91 through 105 (of 430 total)