I have a question when I work on Linkedserver
The Linkedserver name is [Hp-server],the Datebase name is
Newexec,the Table name is Customers_CoypT est
The SQLScript is below:
Update [Hp-server].Newexec.dbo.Cu stomers_CoypTes t
set Unitname=b.Unit name
from [Hp-server].Newexec.dbo.Cu stomers_CoypTes t a join
Newexec.dbo.Cus tomers_CoypTest b
on a.Cid=b.Cid and b.Cid='Tony'
The server returns ERROR like this:
a) can not open this table '"Newexec"."dbo "."Customers_Co ypTest"'
(come from OLE DB provide server 'SQLOLEDB'). provide server do not
support index scan on the data source.
b) [OLE/DB provider returned message:Error occured when
multi-operate.If possible, please check each OLE DB status value.No
work had been completed.]
c) OLE DB Error trace[OLE/DB Provider 'SQLOLEDB'
IOpenRowset::Op enRowset returned 0x80040e21:
[PROPID=DBPROP_C OMMANDTIMEOUT VALUE=600 STATUS=DBPROPST ATUS_OK],
[PROPID=Unknown PropertyID VALUE=True STATUS=DBPROPST ATUS_OK],
[PROPID=DBPROP_I RowsetIndex VALUE=True
STATUS=DBPROPST ATUS_NOTSUPPORT ED]]. 5 2051 xc*********@gma il.com (xc*********@gm ail.com) writes: I have a question when I work on Linkedserver
The Linkedserver name is [Hp-server],the Datebase name is Newexec,the Table name is Customers_CoypT est
The SQLScript is below:
Update [Hp-server].Newexec.dbo.Cu stomers_CoypTes t set Unitname=b.Unit name from [Hp-server].Newexec.dbo.Cu stomers_CoypTes t a join Newexec.dbo.Cus tomers_CoypTest b on a.Cid=b.Cid and b.Cid='Tony'
The server returns ERROR like this:
a) can not open this table '"Newexec"."dbo "."Customers_Co ypTest"' (come from OLE DB provide server 'SQLOLEDB'). provide server do not support index scan on the data source.
Interesting error. :-)
Which version of SQL Server do you have, including service pack (on
both sides)? Also, since the MDAC be involved, which OS versions do
you have?
Also try this syntax:
Update [Hp-server].Newexec.dbo.Cu stomers_CoypTes t
set Unitname= (SELECT b.Unitname
FROM Newexec.dbo.Cus tomers_CoypTest b
WHERE a.Cid=b.Cid and b.Cid='Tony')
from [Hp-server].Newexec.dbo.Cu stomers_CoypTes t a join
--
Erland Sommarskog, SQL Server MVP, es****@sommarsk og.se
Books Online for SQL Server 2005 at http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinf...ons/books.mspx
Thanks a lot for your reply.
I try your script this morning, returned the same ERROR above.
But at the other side,it works when i run the script below:
Update [Wlrcserver].Newexec.dbo.Cu stomers_CoypTes t
set Unitname=b.Unit name
from [Wlrcserver].Newexec.dbo.Cu stomers_CoypTes t a join
Newexec.dbo.Cus tomers_CoypTest b
on a.Cid=b.Cid and b.Cid='Tony'
(1 row(s) affected)
I use SQL Server 2000 with SP4 at [Wlrcserver],and SQL Server 2000 with
SP3 at [HP-server].
Both sides the OS Version are Windows advanced Server 2000.
And I installed MDAC 2.7 yesterday,it didn't work. xc*********@gma il.com (xc*********@gm ail.com) writes: Thanks a lot for your reply.
I try your script this morning, returned the same ERROR above. But at the other side,it works when i run the script below:
Update [Wlrcserver].Newexec.dbo.Cu stomers_CoypTes t set Unitname=b.Unit name from [Wlrcserver].Newexec.dbo.Cu stomers_CoypTes t a join Newexec.dbo.Cus tomers_CoypTest b on a.Cid=b.Cid and b.Cid='Tony' (1 row(s) affected)
I use SQL Server 2000 with SP4 at [Wlrcserver],and SQL Server 2000 with SP3 at [HP-server]. Both sides the OS Version are Windows advanced Server 2000. And I installed MDAC 2.7 yesterday,it didn't work.
To clarify: when you run from SP3 to SP4 it works, but when you run
from SP4 to SP3 it fails? Since the remote server is not doing anything
here; the error comes from OLE DB provider, SP4 is a but suspect here.
(But SP3 -> SP4 could work because SQL Server chooses another query plan.)
If you need this to work, I would suggest that you try to set up a linked
server with the MSDASQL provider. MSDASQL is OLE DB over ODBC, and usually
inferior, but sometimes it performs things differently than SQLOLEDB.
Look in Books Online under sp_addlinkedser ver for an example of setting
up a linked server with MSDASQL.
--
Erland Sommarskog, SQL Server MVP, es****@sommarsk og.se
Books Online for SQL Server 2005 at http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinf...ons/books.mspx
EXEC xp_regwrite 'HKEY_LOCAL_MAC HINE',
'Software\Micro soft\MSSQLServe r\Providers\SQL OLEDB',
'DisallowAdhocA ccess', 'REG_DWORD', 0
I ran the script above,the problem solved,Thank you very much. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: alexrait1 |
last post by:
I launch my python. Then I write this:
import popen2
popen2.Popen3("mplayer *.mpg")
it starts playing for 2 seconds.. and then stops...
if I quit python (ctrl - D)
mplayer continues to run and plays music as it should...
Any ideas?
|
by: sachin bond |
last post by:
The following code(in c++) is supposed to divide a file into 'n' different
files.
suppose i'm having a file called "input.zip".
The execution of the following code should divide "input.zip" into 'n'(user
specified) different files.
However the code currently..though makes 'n' different files... the divided
contents are stored only in the first of the 'n' files.
|
by: CM |
last post by:
Hi,
when i want connect me in my BD with a JSP (with this simple code),
this exception is throw.
Thank's for ur help
Mathieu
CODE of my JSP
---------------------
|
by: ayiiq180 |
last post by:
my hook already in a dll and the handle is shared,but the hook cant
work well,when i run the application,My mouse click the application's
view,the hook work well,but when i click the other place(like
taskbar),it cant work,why?help me.
this is the hook:
// HookDll.cpp : Defines the initialization routines for the DLL.
//
#include "stdafx.h"
#include "HookDll.h"
|
by: Daniel |
last post by:
Is this a bug in .net file io? is there a work around?
when writing a large file with using(StreamWriter ... if the network drive
of the share is removed then the file is never closed. I tried doing the
using clause, i tried both close and closehandle in the finaly clause. in
all cases if a large file is being written to a network drive and the
network drive is disconnected the file handle remains open. when i try to
close, dispose, or...
| |
by: viorel |
last post by:
Greeting All!
Is some one who can help me?
The problem is when I use a func(_GetDNSServers) from a native dll which is
responsible in returning DNS servers address.
public class DNSQuery
{
|
by: R Reyes |
last post by:
is there a way to avoid the validateRequest error page in my code behind
file? i can't seem to find a way to handle the error w/o an error code or
exception being thrown...
i am NOT looking for a link that explains what it does and what it doesn't
do OR the pros/cons, as i've already read through many of those. i just want
to know if i can code some sort of exception to catch for it so that the ugly
yellow/white microsoft generic page...
|
by: Drebin |
last post by:
I am retrofitting a central login application and want to be able to read
the Request.ServerVariables so that when they have logged
on, I can send them back to wherever they were trying to go..
If you try to load a legacy ASP app, I do this:
If Len(SessionID) <> 40 Then
Response.Redirect "/WAS/Default.aspx?AppCode=2400"
End If
|
by: Mitchell Vincent |
last post by:
I have a module that creates an instance of a window but needs to set
the MDIParent property to the 'main' window, appropriately named
MainWindow.
When I do this :
Dim MyCustWindow As New CustomerWindow
MyCustWindow.MdiParent = MainWindow
|
by: jeffstl |
last post by:
We are a staff of 3 IT people. 2 of us handle all internal operations, and 1 handles the www application.
We have end to end control from SQL Server 2008, Windows server, up to the .NET application that runs the entire company such as Sales, Marketing, HR, Finance, Order Processing, Inventory, Reports, etc.
We manage approximately 1550+ Stored procedures, easily 500 or so tables, and off shoot side applications as well. We manage users...
|
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: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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: 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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
| |