We have a database running on SQL 2005.  One of the store procedure looks up a user's email address from Active Directory using a linked server.  The call to the linked server occurs in a database function.
I'm able to call is successfully from my Asp.Net application the first time, but periodically after that, it fails with the followi...
            
           
          
            
            I am trying to connect to Teradata using a Linked Server in SQL Server 2005. When I try to use SQL Server to connect using OPENQUERY, I get the following errors:
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "TDOLEDB.1" for linked server "TERADATA" reported an error. Access denied.
Msg 7350, Level 16, State 2, Line 1
Cannot g...
            
           
          
            
            Hello Everyone,
I have set up Oracle Linked server on Sql Server 2005 box using Oracle provider oledb and its working fine from sql server 2005 to oracle 9i, i.e. When i run distributed query from sql server i get data from oracle server to sql server. Now I don't have any clue how do i run distributed query from Oracle server and get d...
            
           
          
            
            I've got a large table in a SQL Server 2005 database and I'd like to copy it over to another database. 
What's the fastest way to do this? Is there a shortcut to linking servers and doing inserts?
...
            
           
          
            
            can someone please let me know the steps on creating a linked server using ODBC connection? thanks....
...
            
           
          
            
            I have a scheduled AM process on SQL Server 2008 that imports data from Oracle using a linked server.  I am overwriting the imported data from Oracle using drop table, then select into pattern
Apparently, the presence of the "order by" affects my end result!  Take a look.
--This works fine to give me the one row I'm expecting from the ...
            
           
          
            
            Hello Im using SQL Server with distributed transaction on local Oracles Linked servers,
as the following : 
GO
BEGIN DISTRIBUTED TRANSACTION;
  SET XACT_ABORT  off;
  GO
  SELECT MAX(DEPTNO)+1,
  FROM [WSF08_CONTA_ORADATA_II]..[SCOTT].DEPT
  SET XACT_ABORT  on;
  GO
COMMIT TRANSACTION;
So when I run this script I get the follows er...
            
           
          
            
            I am connecting the oracle db server from sqlserver 2005 using linked server with microsoft oledb oracle drivers.
Table present in the oracle db is having the DateTime Stamp. So i will be fetching only the latest records from that table, by passing the query with where condition.But query is taking 6 to 7 minutes approx.
2 crore record...
            
           
          
            
            I have a dev workstation with sql 2005 installed and in it I created a linked server to a odbc connection to a clarion database. I can run select statements against it inside sql Mgt studio. When I take a second workstation and connect to the sql on the first box using sql mgt studio, then try the exact same query I get
  OLE DB provid...
            
           
          
            
            I have two linked SQL servers and i am trying to issue an update on the other server but am getting an error "Statement(s) could not be prepared.", followed by "Must declare the scalar variable "@Shipper_Nbr""
The syntax i am using is:
update DBSERVER.DBNAME.DBO.TABLE set Field = @Value WHERE ID = @id
What is the correct way to do th...
            
           
          
            
            Hi all,
 I'm trying to create a linked server in Sql server 2008 R2, just tried downloading the '64-bit version of the Office 2010 Access AD Engine' exe from Microsoft.
Unfortunately, I had tried adding a linked server, BEFORE making this installation, and it failed: 
EXEC sp_addlinkedserver 'LinkedServer1', 'Excel', 'Microsoft.Jet.OLE...
            
           
          
            
            Can someone help me construct the SQL that I need to query the Projects_dim table using the Linked Server "idwd"?
To test the connection, I ran a sample query using the linked server name. To access the tables on the linked server, I used a four-part naming syntax: 
linked_server_name.catalog_ name.schema_name.table_name. 
replacing t...
            
           
          
            
            Hi everyone,
I am using Windows 7 64 bit, but my Oracle Server I am trying to connect is 32 bit, and so is the SQL Server 2008 and Oracle Client on my machine.
I have installed Oracle 10g client (32 bit) with administration tools on my machine and setup Net Services to connect to database. I can connect to all the databases through SQL...
            
           
          
            
            UPDATE : The issue was col1 was hiereachyid type and even a select didnt work for it.
Hi all, 
I am getting this error - 
  Objects exposing columns with CLR types are not allowed in distributed queries. Please use a pass-through query to access remote object '"RemoteDb"."dbo"."RemoteTable"'.
I have already setup the linked server ...
            
           
          
            
            How do I create an ODBC connection using sp_addlinkedserver in SQL using a DSN-LESS connection string?
I assume I am doing something wrong with syntax, here is how I set up the connection:
EXEC master.dbo.sp_addlinkedserver 
@server = N'SERVER_NAME', 
@srvproduct=N'Oracle', 
@provider=N'MSDASQL', 
@provstr=N'DataSource=(DESCRIPTION=(AD...