Viewing 13 posts - 1 through 13 (of 13 total)
Lynn and Steve,
Thanks for your replies. I made it work by moving the view2-related filters from the WHERE clause to the JOIN..ON section, and that solved the issue.
October 13, 2017 at 9:25 am
Steve,
View_1 and View_2 are working fine, and give results within seconds, so I am not sure that the linked server is the issue here. it's the third view...
October 6, 2017 at 11:32 am
One tiny correction in the code (in case anyone else uses it) - should be:
SELECT N FROM (VALUES(1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12))e(N)
There was an extra comma after (12).
August 21, 2014 at 9:26 am
Luis C.,
Tested your code, and it is exactly the solution I was looking for! Thanks for your help.
-Amit
Luis Cazares (8/11/2014)
August 21, 2014 at 9:24 am
Luis Cazares (8/11/2014)
WHERE LD.FISCAL_YEAR > '2012' --Is this a number or a string?AND LD.ACCOUNTING_PERIOD >= 0 --Is this even necessary?
[/code]
Hi Luis,
FISCAL_YEAR is an integer, so I'll change that in the...
August 12, 2014 at 8:03 am
LutzM (8/11/2014)
It looks like you return the running total balance per month an fiscal year.
Why would you worry about this FY having less than...
August 12, 2014 at 8:00 am
Keith,
Thanks for your response and suggestion (duly noted).
Your solution has given me the idea. I need to tinker with a little bit - add a new table with Resetfrequency values...
October 7, 2013 at 11:37 am
Thanks, Sean and Lynn! That worked.
June 13, 2013 at 10:01 am
Hi Lynn,
I get the following error when I parse your script:
Msg 156, Level 15, State 1, Line 6
Incorrect syntax near the keyword 'over'.
I'm using SQL Server 2008 R2.
June 13, 2013 at 9:00 am
Thanks, Lynn and Sean.
Yes, that worked!! 🙂
So can I take way the following as a rule?
"Don't fully qualified the column that needs to be updated (in a scenario like this)."
Thanks,...
September 24, 2012 at 12:45 pm
Gail,
No triggers on the table ContractData.
"..bhc.coreprocesstoken18 appears nowhere in the update statement."
Oops, sorry about that - I'd changed the alias in the code, but posted the earlier error message...
September 24, 2012 at 10:46 am
Sean, the code you provided returned one row of data that included all the columns from table ContractData; and accountnumber, sourcesystem, effectivedate, siccode & coreprocesstoken18 from UDBSourceData for the same...
September 24, 2012 at 10:38 am
Is this a view or a table?
RR_GMC.RCA.dbo.UDBSourceData
Lynn, it's a table.
Both the source and the destination tables have the same columns, and I need to update the column coreprocesstoken18 in destination...
September 24, 2012 at 10:30 am
Viewing 13 posts - 1 through 13 (of 13 total)