Viewing 15 posts - 916 through 930 (of 13,838 total)
Cool! I'd suggest you test/consider a couple of tweaks. The first, in particular, may improve performance, while the second is (IMO at least!) easier to read:
INSERT INTO...
May 22, 2023 at 1:29 pm
I have converted all the dates to ISO format, but the Job is still failing.
OK, so you're going from SQL Server to Excel. That means you can use a...
May 22, 2023 at 1:17 pm
OK, simply change my final SELECT:
WITH CustomerGroup
AS (SELECT *
FROM
(
VALUES
...
May 22, 2023 at 11:06 am
Something like this?
DROP TABLE IF EXISTS #Customer;
CREATE TABLE #Customer
(
Name VARCHAR(50) NOT NULL
,CustomerNumber INT NOT NULL
);
INSERT #Customer
(
Name
...
May 22, 2023 at 9:59 am
Well, Phil Parkin just because a word does not currently exist within any known dictionary does not mean it is not a viable word. In fact, Shakespeare is credited...
May 21, 2023 at 8:33 am
We are connecting to a hadoop cluster
Then I cannot help, unfortunately.
May 20, 2023 at 10:50 am
Excuse my ignorance, but what is an EAP source?
May 20, 2023 at 8:55 am
No Jeff Moden I did not state that SQL was a dinosaur at all, I think I basically referred to others doing so with dynotopic languages such as Cobol....
May 20, 2023 at 7:42 am
Thank you very much!
The staging table is a "copy" of the remote table with only the relevant data ?
Correct.
May 18, 2023 at 11:14 am
If 'SerialNumber' is unique per employee, I suggest you add it to the local database and put a clustered index on it.
To do the sync, create a staging table locally...
May 18, 2023 at 10:56 am
As you suggest that there will be many queries on the local database which reference data maintained on the remote database, my advice would be 'sync' for sure. The lack...
May 18, 2023 at 9:52 am
As this is a SQL Server forum, you won't find many code-first people here. We like to design our DBs first 🙂
As you suggest, it seems that a good solution...
May 18, 2023 at 9:17 am
They are different characters and therefore multiple nested REPLACE commands would be required.
DECLARE @x VARCHAR(50) = CONCAT ('Some''', CHAR (96), CHAR (145), CHAR (146));
SELECT @x
...
May 17, 2023 at 11:42 am
First of all, I have some suggestions for your existing query.
May 17, 2023 at 9:02 am
As you already have the results in #temp, the query can be written as follows
WHERE contains(c.partitionKey, "BillingEncounter/17792")
AND EXISTS (SELECT 1 FROM #temp t where t.EncounterId =...
May 16, 2023 at 3:40 pm
Viewing 15 posts - 916 through 930 (of 13,838 total)