MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old June 10th, 2004, 03:14 PM
kstahnke kstahnke is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 3 kstahnke User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
SQL server freezing when I save a linked view

I have two SQL 2000 Servers running on separate machines both running Windows Web Server 2000. I have linked server1 to server2 so that I can pull information from server2 into server1. I then created a view on server1 of a view on server2 so that I can more easily write queries against the server2 to get my required information.

For about a month this worked wonderfully but then server2 crashed. They had to completely rebuild server2 on a new machine with all the same specs but were unable to rebuild the database from which my view was pulling. The linked connection is still working since I can write a distributed query against server2 and get back correct information. They rebuilt the database I was pulling from under a different name so I went to my view and changed it to point to the new database. When I ran the SQL in the View Creation tool, it successfully returned the new records. However, when I tried to save the revised view, the entire server froze up and refused to respond.

We rebooted the machine and I tried again and had the same result. I then created a completely new view and it successfully pulled data from server2 but when I tried to save it, same result.

To see if the problem was with server1, I created a view of local data stored on server1 and saved it with no problems. I also saved a new table with no problems.

At this point, I've pretty much hit the wall. I can write a distributed query to pull info from server2 over the linked server connection, so I know it's working, but I don't have a clue as to why my machine freezes up every time I try to save a view of a view stored on server2. If I have to, I can change my program to work from the distributed query but I'd rather resolve the problem of my view.

Any advice or ideas for a direction worth investigating?

Reply With Quote
  #2  
Old June 11th, 2004, 10:15 AM
Al_Dev's Avatar
Al_Dev Al_Dev is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 105 Al_Dev User rank is Private First Class (20 - 50 Reputation Level)Al_Dev User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 7 h 32 m 21 sec
Reputation Power: 6
Send a message via AIM to Al_Dev
all i can think of is make sure the MS DTC (data transaction coordinator) service is running on both machines.

Reply With Quote
  #3  
Old June 11th, 2004, 05:11 PM
kstahnke kstahnke is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 3 kstahnke User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You're dead on the money Al. After I posted this thread I discovered that the rebuilt server had been built with Windows Server 2003 which has the distributed transaction coordinator turned off by default.

Since the linked server was still working, I went ahead and rewrote my scripts to work with distributed transactions rather than worrying about creating a view of their view.

Thanks

Reply With Quote
  #4  
Old June 12th, 2004, 11:35 AM
Al_Dev's Avatar
Al_Dev Al_Dev is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 105 Al_Dev User rank is Private First Class (20 - 50 Reputation Level)Al_Dev User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 7 h 32 m 21 sec
Reputation Power: 6
Send a message via AIM to Al_Dev
awesome. glad it worked. i never even knew what dtc was until i had a similiar problem.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > SQL server freezing when I save a linked view


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway