Viewing 15 posts - 316 through 330 (of 2,648 total)
To select all rows from CustomerLeft change join precedence by parentheses:
SELECT *
FROM dbo.CustomerLeft AS cl
LEFT JOIN (dbo.CustomerContact AS cc
INNER JOIN dbo.EmailDomain...
July 31, 2023 at 1:39 pm
Informatica ETL is highly recommended
LOL this has to be an add bot. Informatica hasn't had a major update in something like over a decade and doesn't support(or barely)...
July 28, 2023 at 7:29 pm
Modifying a partition function in SQL Server is not quite as simple as altering a partition statement with the changed dates. Once a partition function is created and associated with...
July 28, 2023 at 7:25 pm
DROP TABLE IF EXISTS #T
GO
CREATE TABLE #T (Col1 VARCHAR(100));
INSERT INTO #T(Col1)
VALUES ('UIMth: 07/01/23 UISeq: 444 Header Reviewer: DN'),
('UIMth: 07/01/23 UISeq:...
July 24, 2023 at 5:57 pm
You can change the collation of a column with an alter statement:
ALTER TABLE MyTable
ALTER COLUMN MyColumn VARCHAR(50) COLLATE SQL_Latin1_General_CP1_CS_AS
You could add a computed column to your table...
July 21, 2023 at 8:36 pm
You can create a column on a database that is not case sensitive to be case sensitive
CREATE TABLE MyTable
(
MyColumn VARCHAR(50) COLLATE SQL_Latin1_General_CP1_CS_AS
)
July 21, 2023 at 7:59 pm
I am with Grant - I don't see any reason to be splitting a table. No matter what - all development groups will still need access to the original...
July 18, 2023 at 9:48 pm
Because of the row size limitation in SQL Server, I had to split the columns of a data warehouse table. The combined size of the rows exceeded the permitted limit.
To...
July 18, 2023 at 8:57 pm
I've had to add an identity column (ID) so the table can be ordered by something:
DECLARE @T table (ID int IDENTITY(1, 1), A int )
insert
into...
July 18, 2023 at 11:14 am
There is nothing to order the table by. Maybe you should add an identity column to your table first.
July 18, 2023 at 1:28 am
What's more interesting than any of that is how we missed the forest for the trees. 🙁 The MAX solution that Peter provided is all that's needed here. [headdesk].
Yes,...
July 16, 2023 at 3:51 pm
There is an article on the same problem here: https://www.mssqltips.com/sqlservertip/5279/sql-server-error-query-processor-ran-out-of-internal-resources-and-could-not-produce-a-query-plan/
What State did the error return? (1 or 2)
State 1 - The query timed out due to the...
July 15, 2023 at 11:37 pm
drop table if exists #t1
drop table if exists #t2
drop table if exists #t3
go
set statistics io, time on
go
SELECT p.FIRST_NAME,
p.LAST_NAME,
...
July 14, 2023 at 4:07 pm
I've got a (8 years old) Dell XPS 8700 desktop with a i7-4790 and 28GB RAM, and a SanDisk Ultra II 960GB SSD with the tempdb on...
July 14, 2023 at 6:52 am
Viewing 15 posts - 316 through 330 (of 2,648 total)