Viewing 15 posts - 676 through 690 (of 4,820 total)
It would appear you have data you are not expecting..The part of your code that has WHERE rn = 1, must be bringing back more than 1 row. There doesn't...
August 24, 2018 at 8:56 am
August 24, 2018 at 8:49 am
Here's my attempt in one pass:CREATE TABLE #Transactions (
Date1 date NOT NULL PRIMARY KEY CLUSTERED,
Amount1 int,
Amount2 int
);
INSERT INTO #Transactions (Date1, Amount1, Amount2)
VALUES ('20180101', 1000000,...
August 24, 2018 at 8:43 am
I have imported everything successfully, but because of the Circular reference problem I...
August 22, 2018 at 3:56 pm
August 22, 2018 at 7:00 am
Honestly, a cursor within a cursor, that effectively needs to be dynamic, just seems a tad much to me... Too difficult to create easily, and overly complex to troubleshoot. Pretty...
August 21, 2018 at 12:58 pm
One way would be to change your table design to use just one table called Tags, and have a column that indicates TagType (Custom or Stock - perhaps simply C...
August 21, 2018 at 12:37 pm
I have following Query in my production. My Table_B has 8mil + rows. If I...
August 21, 2018 at 6:53 am
I am dealing with a set of legacy apps with more than 20...
August 21, 2018 at 6:43 am
Be careful about changing functionality somewhere deep in a nest of such daisy-chained stored procedures. Once you have a nest like that, you may find you don't know that any...
August 21, 2018 at 6:25 am
I would tend to lean toward establishing ALL the linkages between the databases as a single final step done by an "incremental" T-SQL script, and let the base objects get...
August 20, 2018 at 8:10 am
dcotterman - Friday, August 17, 2018 7:58 AMThat seems to have corrected the problem. Big thank you Steve!!
You're very welcome.
August 20, 2018 at 7:42 am
In terms of PIVOT, if you are using the actual PIVOT keyword as part of your query, that CAN be trouble, especially with a large number of resulting columns. It's...
August 20, 2018 at 7:37 am
August 20, 2018 at 7:29 am
Depends rather heavily on table size and the number of rows to be handled, along with whether or not there are appropriate indexes to handle the queries, along with the...
August 20, 2018 at 6:48 am
Viewing 15 posts - 676 through 690 (of 4,820 total)