|
I have a process on every server that collects meta data into a local database table and on one server I have a view that selects data across all of those tables so that I can compare/review results, it uses linked server objects. I am moving from 2005 to 2008 and am in the process of moving this view. For this example we have two hardware servers Alpha and Beta. Alpha has two SQL 2005 instances (Wolf and Bear), Beta has one SQL 2005 instance (Snake) and the new 2008 instance (Monkey). The view on Snake works fine but I cannot create it on Monkey. The CREATE script errors with
The script I am trying to run is
The linked server objects to Alpha\Bear are identical on Beta\Snake and Beta\Monkey The odd things are: Does anyone have any ideas what I am missing please, is there a 2008 setting that I need to configure?
(comments are locked)
|
|
Well, that's 2hrs of my life I wont get back. This isnt an issue now. I copied the script into a new query window and it ran without issue. Is it possible some config settings are persisted with the connection and I have started a new one without previous restrictions? OK, some research and a call in to the software developers that make SQL Compare (Hello to everyone at Red Gate) it turns out the issue is outside the issues put forward in my question. I pasted the create script but didnt explain it was an extract from a script created by SQL Compare which I was using to transfer objects to my new server. SQL Compare creates a script that manages the create scripts and ensures that all changes are successful or get rolled back if any part of it fails. The output from the application is actually
now it turns out that when I copied (only) the CREATE section to a new window I was removing the line of code that caused the issue. The offending line is:
I got around it by removing it all together but the proper way to resolve the situation is to alter it to MSDTC is a bit of a 'black box' - and I don't know enough about it's internals to say for definite. Grant may know?
Apr 29 '10 at 07:25 AM
Matt Whitfield ♦♦
Nope. Grant doesn't know squat about MSDTC. As long as it works I try not to look at it too closely.
Apr 29 '10 at 08:19 AM
Grant Fritchey ♦♦
@Grant - yup - that's pretty much my excuse! :)
Apr 29 '10 at 11:24 AM
Matt Whitfield ♦♦
Glad it is working for you. I have created a couple of views using linked servers without problem.
Apr 29 '10 at 12:49 PM
TimothyAWiseman
Thanks Timothy, I am researching this as there seems to be a connection with some settings I had in place. I'll update this when I get to the bottom of it.
Apr 29 '10 at 03:51 PM
Fatherjack ♦♦
(comments are locked)
|
|
A quick search reveals this page, which looks right - it's definitely an MSDTC issue... From that page:
Cheers Matt, I've been up and down that page so many times this morning!!! Also, just for kicks and giggles - what is the SQL server service manager (last paragraph)?
Apr 29 '10 at 07:29 AM
Fatherjack ♦♦
@Fatherjack - I think that's the 'SQL Server Services' node in 'Sql Server Configuration Manager' - it used to be a separate app (but that's 2000 and prior)...
Apr 29 '10 at 07:49 AM
Matt Whitfield ♦♦
(comments are locked)
|

