Viewing 15 posts - 2,401 through 2,415 (of 4,820 total)
I'm not sure what you thought the QUOTENAME function was going to do, but you're basically using that function against the text of your executed SQL query. Once you execute...
July 20, 2017 at 11:23 am
I'm not sure it's worth the time to do this directly in a query when an SSIS package could make this a LOT easier. However, the first thing is to...
July 20, 2017 at 9:50 am
You don't show what @runtimequery is defined as. If it's defined as a table, you've got a different problem altogether, as once you go dynamic sql, you lose context and...
July 20, 2017 at 9:39 am
And another way:SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE cdw.FactTable (
[SID] int NOT NULL,
Employee_SID int NOT NULL,
Team_SID int NULL,
CreationDate int NULL
July 20, 2017 at 6:55 am
In general, dimensional data should not need date calculations, as the data feeding the cube should have that kind of thing either "pre-computed" or be an actual field. However, I'll...
July 20, 2017 at 5:54 am
Just to mention that at some point, preserving source data may have value, here's a way to keep it intact, while still accomplishing the same goal. Note the differences and...
July 17, 2017 at 9:26 am
Might there be some other trigger as well?
July 13, 2017 at 12:42 pm
July 13, 2017 at 12:23 pm
July 13, 2017 at 12:16 pm
Your last INSERT statement is missing data. Also, you have a table that has a computed field and you didn't post...
July 13, 2017 at 6:33 am
Glad I could help. Let me re-format your query so it appears more consumable for those reading this thread in the future:WITH P AS (
SELECT DISTINCT F.DocumentID,...
July 12, 2017 at 1:20 pm
I don't think that's how BULK INSERT operates. My guess is that the whole reason it needs the table in advance is so that it knows exactly what to expect,...
July 11, 2017 at 7:41 am
July 10, 2017 at 2:05 pm
Hi,
I want to store the first value of a parameter entry by user.
The...
July 10, 2017 at 1:54 pm
Viewing 15 posts - 2,401 through 2,415 (of 4,820 total)