Viewing 15 posts - 61 through 75 (of 86 total)
absolutey fantastic
thanks very much that works
Alan
March 12, 2013 at 9:21 pm
ok guys this is what I have with an error, see error below
use TestData
go
Drop table lookuptable;
WITH cteDupeCheck
AS...
March 12, 2013 at 7:24 pm
Hi Guys.
Thanks for all your comments. Anyway going back to the original question will it be a definate that I have to create the table first before selecting into as...
March 12, 2013 at 4:51 pm
Hi Lynn
I have added a group by clause on the end like so which seems to work
insert into RefTable(software_name_raw,software_name_amended)
select
bt.software_name_raw,
'Needs Updating'
from
...
March 10, 2013 at 10:37 pm
Hi Lynn
Yeah very close to the expected result but the RefTable has a primary key on it. so if it encounters a duplicate record from the other table it also...
March 10, 2013 at 10:10 pm
Hi Jason.
Thanks for that its all working now. I just need to work on tidying my reports up and granting permissions to various users.
Thanks again
Alan
March 10, 2013 at 7:41 pm
Hi Lynn
That sort of works but when I run just this part for the second time I get.
Msg 2627, Level 14, State 1, Line 2
Violation of PRIMARY KEY constraint 'PK__RefTable__6897329A11007AA7'....
March 10, 2013 at 6:19 pm
ok I seem to have got a little further with the deploy thing past the permissions problem I am now facing another problem which is
Cannot deploy the report because the...
March 8, 2013 at 5:11 am
Thanks for that, that was a big help I am a little further. I have created the report and managed to pre-view it but once I go to delpoy it...
March 8, 2013 at 3:45 am
that was quick i was still mentioning the last thing lol
anyway the code you have just provided is perfect but I still wish to overwrite the first column in the...
March 7, 2013 at 3:52 pm
Hi Lynn
just me again I forgot to mention that yes I want to insert data that does not already exist in the Target Table but if it does exist then...
March 7, 2013 at 3:49 pm
Lynn
I just downloaded this sample code from a website and amended accordingly and your right I do not want to update data that already exists so thanks for pointing that...
March 7, 2013 at 3:29 pm
right Lynn I will try again.
I have had a look at your merge statement which has been useful the only thing is i have one error from the query below.
Please...
March 7, 2013 at 5:05 am
Viewing 15 posts - 61 through 75 (of 86 total)