I am sure this is a configuration or permissions problem, but I cannot
figure out what it might be.
I have 2 SQL 2000 database servers: one is a linked Windows 2003 based
server using a specified login account and the main server is Windows
2000. The user on the linked server is an SA. Both are running SP
3a.
I EXEC a select statement that selects data from this linked server
(shown below in detail) that runs just fine when executed by itself.
However, if I try to insert the results of the EXEC into a temp table
it NEVER returns! In fact through Profiler I can see that it never
even hits the other database. I left it running for an hour and 18
minutes one time. Even canceling the query took over 6 minutes. I am
doing my tests from Query Analyzer (logged in as an Admin), but my
ASPX pages fail as well.
So, here is the select statement that works:
DECLARE @SQLString varchar(1024)
SELECT @SQLString = 'select name, ''win2003-testsvr\Data1''
from
[win2003-testsvr\Data1].master.dbo.sys databases
where status & 1024 != 1024 --avoid read only
order by name'
EXEC(@SQLString )
The above query returns the results expected. However this query
never returns:
CREATE TABLE #tblDatabases
(
DBName nvarchar(256),
DBInstance varchar(128)
)
GO
DECLARE @SQLString varchar(1024)
SELECT @SQLString = 'select name, ''win2003-testsvr\Data1''
from
[win2003-testsvr\Data1].master.dbo.sys databases
where status & 1024 != 1024 --avoid read only
order by name'
INSERT INTO #tblDatabases EXEC(@SQLString )
GO
select * from #tblDatabases
drop table #tblDatabases
If, I run this query and use the name of the current database server,
it runs as expected. It is only when I try to access this particular
server that it hangs. Actually, I even replaced the server instance
above with another server instance running on a different Windows 2003
machine and that worked.
So this is obviously a configuration or permissions issue, but what
kind of setting or permission would cause an insert into a temp table
to fail for a select statement!!
Please HELP,
Vance 6 4948
Vance Kessler (vk******@peach tree.com) writes: I EXEC a select statement that selects data from this linked server (shown below in detail) that runs just fine when executed by itself. However, if I try to insert the results of the EXEC into a temp table it NEVER returns!
Hm, have you checked that MSTDC is running on the other machine?
--
Erland Sommarskog, SQL Server MVP, so****@algonet. se
Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinf...2000/books.asp
Yes, the Distributed Transaction Coordinator (msdtc.exe) is running on
both systems.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
ermm - dumb q perhaps...
but have you double and triple checked all the columns, servername etc
are actually spelt right (poss incl case) - errors dont seem to
transmit well over the distributed transactions... specially if the
table doesnt exist.
Vance Kessler <vk******@peach tree.com> wrote in message news:<3f******* *************** *@news.frii.net >... Yes, the Distributed Transaction Coordinator (msdtc.exe) is running on both systems.
*** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
Vance Kessler <vk******@peach tree.com> wrote in message news:<3f******* *************** *@news.frii.net >... Yes, the Distributed Transaction Coordinator (msdtc.exe) is running on both systems.
*** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
I have no idea myself, but I found this on Google - the same problem,
caused by not rebooting after installing a servicepack: http://groups.google.com/groups?hl=e...%40tkmsftngp09
Simon
I FOUND IT! I found the following in another post:
---------------------------------------------------------------
BY default Win 2003 server has the following two things disabled. You
need to enable them and reboot your win2003 sql server.
Under add/remove programs/windows components/application server/
enable network COM+ and Enable Network DTC access.
---------------------------------------------------------------
I found this when I noticed the following in the event log:
Event Type: Error
Event Source: MSDTC
Event Category: CM
Event ID: 4357
Date: 9/10/2003
Time: 8:16:34 AM
User: N/A
Computer: ANDROMEDA
Description:
MS DTC is unable to communicate with MS DTC on a remote system. No
common RPC protocol is supported between the two systems. Please
ensure that one or more of the following RPC protocols are common to
both systems: TCP/IP, SPX, or NetBEUI. Error Specifics:
..\iomgrclt.cpp :203, CmdLine: C:\WINNT\System 32\msdtc.exe, Pid: 612
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 21 00 00 00 20 00 00 00 !... ...
I sure am glad you posted this. I've been trying to figure out this
problem for 2 weeks without success. I made the suggested changes and
the error went away after rebooting the server. Wheew!
TW This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Moshe |
last post by:
Page with a <form> action calls ASP page.
The ASP page has the following structure
<%@ LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<% Option Explicit %>
<% Server.ScriptTimeOut=100
With Response
.Buffer = True
.Expires = 0
.Clear
|
by: john |
last post by:
Hi,All Gurus:
It is kind of complicated, please bear with me and let me know if you have
any questions.
Thanks a lot in advance.
John
I have a csharp method, using emit to dynamically generate classes & method
depends on the meta table in the database,here is my problem
1) One method I generated works when it was called, but another set of
method does not work, it generate the following error
|
by: mdurliSPAMFILTER |
last post by:
Hello,
I developed a win32 .exe CGI that connects to a clustered SQLServer to
report some data.
The software is written with Borland C++Builder.
This is the oledb string:
Name=Provider=SQLOLEDB;Password=xxx;Persist Security Info=True;User
ID=xxxx;Data Source=xxxxx;Initial Catalog=xxxxx;Network
Library=dbmssocn
It suddendly stopped working on my customer network, so I made some
|
by: Werner Partner |
last post by:
I use a page created by php.
It should show two pictures of a person an a short text.
If there are no picture, nothing is shown, if there is no text, nothing
is shown.
There a about 20 persons, some of them ghave two pictures, some of them
one or none. Some of them have text.
Every person has an indexword as for instance "meyer", there can be a
|
by: cody |
last post by:
I have a very funny/strange effect here.
if I let the delegate do "return
prop.GetGetMethod().Invoke(info.AudioHeader, null);"
then I get wrong results, that is, a wrong method is called and I have no
clue why.
But if I store the MethodInfo in a local variable I works as expected.
I do not understand why this is so, shouldn't both ways be semantically
equal?
| |
by: Trapulo |
last post by:
I've two copy af the same asp.net application. The application enter on sql
server, working with two separate databases (on the same sql server
instance, of course). The connection is made with integrated security, and
the server is a domain controller.
If I start only the first application (call the web site), all right.
If I start only the second application, all right.
If I start an application, and then call a page from the second,...
|
by: Praveen_db2 |
last post by:
Hi All
I am getting strange errors in my db2diag.log can any one tell me what
these errors mean??
Following is the code from my db2diag.log
*********************************************************************************************
2006-02-23-17.53.12.253000 Instance:DB2 Node:000
PID:1600(db2syscs.exe) TID:440 Appid:AC10E010.J70A.00E883122250
base sys utilities sqleagnt_sigsegvh Probe:1 Database:DEVM_DB
Error in agent...
|
by: conor.robinson |
last post by:
The Problem (very basic, but strange):
I have a list holding a population of objects, each object has 5 vars
and appropriate funtions to get or modify the vars. When objects in
the list have identical vars (like all = 5 for var "a" and all = 10 for
var "b" across all vars and objects) and i change
self.mylist.change_var_a(5)
to a new value, in this case var "a" in object i to 5, now all vars of
|
by: Gotch |
last post by:
Hi,
I'm getting a very strange behaviour while running a project I've
done.... Let's expose it: I've two projects. Both of them use a Form
to do some Gui stuff. Other threads pack up messages this way like:
public class UiMsg
{
public enum MsgType { StatusOk };
public MsgType Type;
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |