TABLE list on linked server?

In SQL Developer, i can see a list of TABLEs in the Connections list, and see TABLE definition and data.
I have a DB Link providing access to a number of TABLEs on a different server. Is there a way to see a similar list of the available TABLE on the linked server?

There is a link at the top of the forum to the SQLDeveloper exchange where you can raise feature requests.
Post a link to your request back here so people can find it more easily to vote on it.
This also looks like the kind of thing which is amenable to an XML extension.

Similar Messages

  • Query to get list of linked server tables referenced inside a stored procedure

    Hi,
    SQL Server 2005 sp4
    I have a requirement to get list of linked server tables referenced insider a stored procedure
    Ex:
    Databases       DB1          DB2
    Tables:            T1             T2                            
    Use DB1
    Go
    Create proc P1
    begin
    select * from T1
    select * from DB2.dbo.T2
    end
    I am looking for a query which can return a result with output as below. sp_depends is not helping here as it does not work for cross DB objects, any other thoughts.
    Tables
    T1,
    DB2.dbo.T2

    On SQL 2005, you will have to do it manually.
    On SQL 2008 or later, you could have used sys.sql_expression_dependencies.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Adding a table to a linked server in SQL

    Hi
    I have a linked server in SQL server management studio.
    It has a list of oracle tables that can be reached through it. To add tables to the list do i need set up some permissions on the Oracle side?
    thanks a lot for any help

    To add to what Sunny posted. If the linked server uses a fixed user/password to connect to Oracle then in the Oracle database all you need do is get the required object privileges granted to the Oracle username being used in the linked server to Oracle. The grant can be direct to the username or to a role the username has been granted.
    If the MS SQL Server Linked Server to Oracle does not use a fixed user then the SQL Server usernames have to also exist in Oracle or have been mapped via the linked server definition to an Oracle username. Different SQL Server users can have different Oracle usernames associated to them via the linked server definition so you may need the Oracle grants issued to one or more Oracle usernames.
    Most linked servers use fixed users to connect to Oracle but you need to be aware this is not always true and when it is not true the list of tables shown under the linked server can vary based on the SQL Server user logged in.
    HTH -- Mark D Powell --

  • Update table on a linked server

    I am creating a SP on server WDC1GISDBP2, I need to update a table on WDC1GISDBP3 (edtables is the database).  Both servers are running SS 2008r2
    This is the error kicked back:
    Msg 102, Level 15, State 1, Line 4
    Incorrect syntax near ';'.
    This is the query:
    UPDATE OPENQUERY (WDC1GISDBP3,
    'SET DataType = b.DESCRIPTION FROM edtables.dbo.Admin_DataCatalog_DataFields a
    inner join (select CODE, DESCRIPTION FROM edtables.dbo.ESRISDEDataTypes_Lookup) b
    ON a.DataType = b.CODE');
    UPDATE OPENQUERY (WDC1GISDBP3,
    'SET [edtables].[dbo].[Admin_DataCatalog_DataFields].DataID = [edtables].[dbo].[Admin_DataCatalog].DataID
    FROM [edtables].[dbo].[Admin_DataCatalog]
    WHERE [edtables].[dbo].[Admin_DataCatalog_DataFields].FeatClass = [edtables].[dbo].[Admin_DataCatalog].TechName');
    Thanks in advance for any input !

    If the update on WDC1GISDBP3
    does not refer any value on server WDC1GISDBP2, why do you need OpenQuery
    UPDATE [linked server].[database].[schema].[tablename]
    SET [edtables].[dbo].[Admin_DataCatalog_DataFields].DataID = [edtables].[dbo].[Admin_DataCatalog].DataID
    WHERE [edtables].[dbo].[Admin_DataCatalog_DataFields].FeatClass = [edtables].[dbo].[Admin_DataCatalog].TechName

  • Linked server "LK_SERVER_NAME" was unable to begin a distributed transactio

    Hi,
    I have two DBs namely MS SQL 2008 and ORACLE 11g. I need to transfer data from MS SQL to ORACLE using the linked server. I did the following,
    I have a stored procedure in ORACLE as call_linked_oracle_procedure which needs to be called from the MS SQL server to transfer the data.
    So the steps I did to achieve this is provided as a sample as follows,
    /* Creating a sample table */
    create table source_tab3
    id numeric,
    name varchar(MAX)
    GO
    /* Creating a insert trigger for the sample table which calls the oracle through the linked server*/
    IF OBJECT_ID ('dbo.source_tab3Trigger','TR') IS NOT NULL
    DROP TRIGGER dbo.source_tab3Trigger;
    GO
    CREATE TRIGGER source_tab3Trigger ON source_tab3
    AFTER INSERT
    AS
    DECLARE @output varchar(600)
    EXEC [dbo].[call_linked_oracle_procedure] @parameter1 =N'value1', @parameter2 =N'value2'
    select @output
    GO
    /* Insert a sample data */
    insert into source_tab3 (id,name) (1,'vijai');
    GO
    Now when I insert the data, It give the following error
    OLE DB provider "OraOLEDB.Oracle" for linked server "LK_SERVER_NAME" returned message "New transaction cannot enlist in the specified transaction coordinator. ".
    Msg 7391, Level 16, State 2, Procedure source_tab3Trigger, Line 11
    The operation could not be performed because OLE DB provider "OraOLEDB.Oracle" for linked server "LK_ORACLE" was unable to begin a distributed transaction.
    The things I did to solve this were,
    1. Enabled the MSDTC services (Distributed Transaction Coordinator is started ).
    2. Enabled the Network DTC access from the control panel, component services to 'Allow InBound' etc.
    3. My 'OracleMTSRecoveryService' is running in my services list.
    Also, I have done all these where my machine where MS SQL 2008 is installed. Dono what needs to be done in the ORACLE server.
    Also to note, that I am able to query the tables/procedure via linked server individually, but not able to do that within the triggers.
    Any tip is much appreciated.
    regards,
    Vijai

    Hi,
    I made few changes in the SQL trigger code, and it seems to work. But not sure if its the right code. Any way I will leave my findings here, so others might get a tip for their tries,
    If anyone know who my code is working, please leave a comment,
    IF OBJECT_ID ('dbo.source_tab3Trigger','TR') IS NOT NULL
    DROP TRIGGER dbo.source_tab3Trigger;
    GO
    CREATE TRIGGER source_tab3Trigger ON source_tab3
    AFTER INSERT, UPDATE
    AS
    commit transaction;
    set implicit_transactions on
    DECLARE @output varchar(600)
    DECLARE @p_1 varchar(600) = 'EASYLINK51_EBS_MECH'
    DECLARE @p_2 varchar(600) = 'standard'
    DECLARE @p_3 varchar(600) = 'EBS'
    EXEC [dbo].[call_linked_sys_param] @p_1 =N'EASYLINK51_EBS_MECH', @p_2 =N'standard', @p_3 =N'EBS', @output = @output OUTPUT
    select @output
    set implicit_transactions off
    begin transaction;
    GO
    regards,
    Vijai

  • The operation could not be performed because OLE DB provider "OraOLEDB.Oracle" for linked server ...

    Our setup is that we have two databases; a SQL Server 2008 database and an Oracle database (11g). I've got the oracle MTS stuff installed and the Oracle MTS Recovery Service is running. I have DTC configured to allow distributed transactions. All access to the Oracle tables takes place via views in the SQL Server database that go against Oracle tables in the linked server.
    (With regard to DTC config: Checked-> Network DTC Access, Allow Remote Clients, Allow Inbound, Allow Outbound, Mutual Authentication (tried all 3 options), Enable XA Transactions and Enable SNA LU 6.2 Transactions. DTC logs in as NT AUTHORITY\NetworkService)
    Our app is an ASP.NET MVC 4.0 app that calls into a number of WCF services to perform database work. Currently the web app and the WCF service share the same app pool (not sure if it's relevant, but just in case...)
    Some of our services are transactional, others are not.
    Each WCF service that is transactional has the following attribute on its interface:
    [ServiceContract(SessionMode=SessionMode.Required)]
    and the following attribute on the method signatures in the interface:
    [TransactionFlow(TransactionFlowOption.Allowed)]
    and the following attribute on every method implementations:
    [OperationBehavior(TransactionScopeRequired = true, TransactionAutoComplete = true)]
    In my data access layer, all the transactional methods are set up as follows:
    using (IDbConnection conn = DbTools.GetConnection(_configStr, _connStr))
    using (IDbCommand cmd = DbTools.GetCommand(conn, "SET XACT_ABORT ON"))
    cmd.ExecuteNonQuery();
    using (IDbCommand cmd = DbTools.GetCommand(conn, sql))
    ... Perform actual database work ...
    Services that are transactional call transactional DAL code. The idea was to keep the stuff that needs to be transactional (a few cases) separate from the stuff that doesn't need to be transactional (~95% of the cases).
    There ought not be cases where transactional and non-transactional WCF methods are called from within a transaction (though I haven't verified this and this may be the cause of my problems. I'm not sure, which is part of why I'm asking here.)
    As I mentioned before, in most cases, this all works fine.
    Periodically, and I cannot identify what initiates it, I start getting errors. And once they start, pretty much everything starts failing for a while. Eventually things start working again. Not sure why... This is all in a test environment with a single user.
    Sometimes the error is:
    Unable to start a nested transaction for OLE DB provider "OraOLEDB.Oracle" for linked server "ORACLSERVERNAME". A nested transaction was required because the XACT_ABORT option was set to OFF.
    This message, I'm guessing is happening when I have non-transactional stuff within transactions, as I'm not setting XACT_ABORT in the non-transactional code (that's totally doable, if that will fix my issue).
    Most often, however, the error is this:
    System.Data.SqlClient.SqlException (0x80131904): The operation could not be performed because OLE DB provider "OraOLEDB.Oracle" for linked server "ORACLSERVERNAME" was unable to begin a distributed transaction.
    Now, originally we only had transactions on SQL Server tables and that all worked fine. It wasn't until we added transaction support for some of the Oracle tables that things started failing. I know the Oracle transactions work. And as I said, most of the time, everything is just hunky dorey and then sometimes it starts failing and keeps failing for a while until it decides to stop failing and then it all works again.
    I noticed that our transactions didn't seem to have a DistributedIdentifier set, so I added the EnsureDistributed() method from this blog post: http://www.make-awesome.com/2010/04/forcibly-creating-a-distributed-net-transaction/
    Instead of a hardcoded Guid (which seemed to cause a lot of problems), I have it generating a new Guid for each transaction and that seems to work, but it has not fixed my problem. I'm wondering if the lack of a DistribuedIdentifier is indicative of some other underlying problem. I've never dealt with an environment quite like this before, so I'm not sure what is "normal".
    I've also noticed that the DistributedIdentifier doesn't get passed to WCF. From the client, I have a DistributedIdentifier and a LocalIdentifier in Transaction.Current.TransactionInformation. In the WCF server, however there is only a LocalIdentifier set and it is a different Guid from the client side (which makes sense, but I would have expected the DistributedIdentifier to go across).
    So I changed the wait the code above works and instead, on the WCF side, I call a method that calls Transaction.Current.EnlistDurable() with the DummyEnlistmentNotification class from the link above (though with a unique Guid for each transaction instead of the hardcoded guid in the link). I now havea  DistributedIdentifier on the server-side, but it still doesn't fix the problem.
    It appears that when I'm in the midst of transactions failing, even after I shut down IIS, I'm unable to get the DTC service to shutdown and restart. If I go into Component Services and change the security settings, for example, and hit Apply or OK, after a bit of a wait I get a dialgo that says, "Failed ot restart the MS DTC serivce. Please examine the eventlog for further details."
    In the eventlog I get a series of events:
    1 (from MSDTC): "The MS DTC service is stopping"
    2 (From MSSQL$SQLEXPRESS): "The connection has been lost with Microsoft Distributed Transaction Coordinator (MS DTC). Recovery of any in-doubt distributed transactions
    involving Microsoft Distributed Transaction Coordinator (MS DTC) will begin once the connection is re-established. This is an informational
    message only. No user action is required."
    -- Folowed by these 3 identical messages
    3 (from MSDTC Client 2): 'MSDTC encountered an error (HR=0x80000171) while attempting to establish a secure connection with system GCOVA38.'
    4 (from MSDTC Client 2): 'MSDTC encountered an error (HR=0x80000171) while attempting to establish a secure connection with system GCOVA38.'
    5 (from MSDTC Client 2): 'MSDTC encountered an error (HR=0x80000171) while attempting to establish a secure connection with system GCOVA38.'
    6 (From MSDTC 2): MSDTC started with the following settings: Security Configuration (OFF = 0 and ON = 1):
    Allow Remote Administrator = 0,
    Network Clients = 1,
    Trasaction Manager Communication:
    Allow Inbound Transactions = 1,
    Allow Outbound Transactions = 1,
    Transaction Internet Protocol (TIP) = 0,
    Enable XA Transactions = 1,
    Enable SNA LU 6.2 Transactions = 1,
    MSDTC Communications Security = Mutual Authentication Required, Account = NT AUTHORITY\NetworkService,
    Firewall Exclusion Detected = 0
    Transaction Bridge Installed = 0
    Filtering Duplicate Events = 1
    This makes me wonder if there's something maybe holding a transaction open somewhere?

    The statement executed from the sql server. (Installed version sql server 2008 64 bit standard edition SP1 and oracle 11g 64 bit client), DTS enabled
    Below is the actual sql statement issued
    SET XACT_ABORT ON
    BEGIN TRAN
    insert into XXX..EUINTGR.UPLOAD_LWP ([ALTID]
              ,[GRANT_FROM],[GRANT_TO],[NO_OF_DAYS],[LEAVENAME],[LEAVEREASON],[FROMHALFTAG]
              ,[TOHALFTAG] ,[UNIT_USER],[UPLOAD_REF_NO],[STATUS],[LOGINID],[AVAILTYPE],[LV_REV_ENTRY])
              values('IS2755','2010-06-01',
    '2010-06-01','.5',     'LWOP'     ,'PERSONAL'     ,'F',     'F',     'EUINTGR',
    '20101',1,1,0,'ENTRY')
    rollback TRAN
    OLE DB provider "ORAOLEDB.ORACLE" for linked server "XXX" returned message "New transaction cannot enlist in the specified transaction coordinator. ".
    Msg 7391, Level 16, State 2, Line 3
    The operation could not be performed because OLE DB provider "ORAOLEDB.ORACLE" for linked server "XXX" was unable to begin a distributed transaction.
    Able to execute the above statement successfully without using transaction.We need to run the statement with transaction.

  • SQL Server Link Server issue.

    Hi,
    I have setup a linked sql in SQL Server 2000 to connect to an Oracle 9i database. When I try to select from a table through the link server I get the following error message.
    Could not execute query against OLE DB provider 'OraOLEDB.Oracle'.
    OLE DB error trace [OLE/DB Provider 'OraOLEDB.Oracle' ICommandText::Execute returned 0x80040155].
    This is for a table without any nvarchar2 columns (I get a different error for tables containing those datatypes).
    Any ideas?
    Thanks
    Sanjay

    Ralph,
    1. Right-click on the linked server you created, select Properties from the popup menu.
    2. In Linked Server Properties dialog box, click Options... button under Provider Name dropdown combo.
    3. Check (or enable) "Allow InProcess" option.
    4. Click Apply button.
    5. Click Ok button.
    Sinclair

  • Linked Server to MS Access mdb file and exclusivity??

    I've got an SQL database running on SQL Server 2008.  From this server, I have a linked server to an Access database (access 2003).
    In my database I have a stored procedure that I want to query the access database (linked server) and insert / update some rows in one of my SQL tables.
    The linked server is setup without an ODBC DSN (though, I have tried it with one and still get the same results). 
    When I run the stored procedure RDP'd onto the sql server, it runs without issue.  When I run the stored procedure from management studio from my machine, I get "It is already opened exclusively by another user, or you need permission to view its
    data"
    Unfortunately, this access mdb file is pulled from all over our organizatoin - a sin from a long time ago - but I do know that in both instances, the file is still in use by others.
    My SQL Server and file server where the MDB file exists are both a member of the same domain.  Also, the account the SQL Service runs under is a domain account as well.  
    Does this make any sense?
    Thanks
    sb

    Hi kumar,
    According to your description, when you create an linked server in SQL Server 64 bit to connect to the Access database 32bit , usually, the error 7399 and 7350 will occur. As other post, you need to install SQL Server 32bit. Or you can uninstall 32bit office
    products and install 64bit Microsoft Access Database Engine. For creating Linked Server, if you run on a 64bit environment we need to download
    Microsoft Access Database Engine 2010 Redistributable from Microsoft and install suitable version of software on the machine.
    For more information, see:
    http://calyansql.blogspot.jp/2013/02/fix-cannot-initialize-data-source.html
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Error with Linked Server

    I am trying to configure a linked server to connect from MS Sqlserver2000 to Oracle.
    I am using an Oracle 8i client. Following notes on this website and from microsoft I changed
    my registery enteries as follows:
    OracleOciLib oci.dll
    OracleSqllib orasql8.dll
    OracleXalib oraclient.dll
    My odbc connection works when tested thru Oracle Network administation but when I try to look at any tables of the linked server (using MS Enterprise Manager) I get the following error:
    "Error 7399: OLE DB provider 'OraOleDB.Orcle' reported an error"
    This occurs when I use the oracle odbc
    When I use the microsoft odbc connector I get:
    "Error 7399: OLE DB provider 'ContextProvider.MSDAORA.1' reported an error"
    Any ideas.
    Thanks in advance.
    Patrick

    To view tables on an Oracle linked server in Enterprise manager you need to add a security context to use when there is no SQL Server user
    It's on the bottom of the "security" tab on the server properties page.

  • Linked Server - Getting Error when performing Cross Instance Query with joins

    Hi Guys,
    I've successfully created a Linked Server that connects a local DB Engine with another DB Engine through an ip over an extranet. I am able to run simple Select statement queries on the Local DB
    Engine and get results from the linked server. However when attempting to perform more complex queries that join tables from
    the linked server with tables from the local DB server, I get the following error message after several minutes of execution:
    OLE DB provider "SQLNCLI11" for linked server "<ip of Linked Server>" returned message "Protocol error in TDS stream".
    OLE DB provider "SQLNCLI11" for linked server "<ip of Linked Server>"
    returned message "Communication link failure".
    Msg -1, Level 16, State 1, Line 0
    Session Provider: Physical connection is not usable [xFFFFFFFF].
    OLE DB provider "SQLNCLI11" for linked server "<ip of Linked Server>"
    returned message "Communication link failure".
    Msg -1, Level 16, State 1, Line 0
    Session Provider: Physical connection is not usable [xFFFFFFFF].
    OLE DB provider "SQLNCLI11" for linked server "<ip of Linked Server>"
    returned message "Communication link failure".
    Msg 10054, Level 16, State 1, Line 0
    TCP Provider: An existing connection was forcibly closed by the remote host.
    Grateful if you could advise what may be causing this issue and how I can resolve it. I've read on Distributed Transactions but I understand that it only applies to manipulation statements?
    Both are SQL servers. Linked Server is SQL2008R2 if not mistaken. Local DB Engine is SQL2014.
    Thanks and Regards,
    Rhyan.

    Thank you for your insight Erland. Can you advise how I can check the SQL Server errorlog pls?
    I just got word from a user that the query ran successfully this morning but took 15 mins to complete.. does it ring a bell to you in terms of issues that may be causing this?
    This kind of behaviour would suggest something makes the query "time out" or stop abruptly.. How can I further investigate it pls? Can a BEGIN DISTRIBUTED TRANSACTION  statement in the query help me mitigate or resolve the error? ref: https://msdn.microsoft.com/en-us/library/ms188386.aspx?f=255&MSPPError=-2147217396
    SQL Version for Remote Server is : 
    Microsoft SQL Server 2012 (SP1) - 11.0.3000.0 (X64) Oct 19 2012 13:38:57 Copyright
    (c) Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)
    SQL Version for Local Server is:
    Microsoft SQL Server 2014 - 12.0.2000.8 (X64) Feb 20 2014 20:04:26 Copyright
    (c) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor)
    Thanks and Regards,
    Rhyan

  • Error while linked server is used to verify the existence of a table

    Hi All,
    Pls help me solve an issue related to linked Server..
    Following is my query:
    IF EXISTS (select 1 from [LinkedServerName].Sales.sys.tables where name = 'SalesTable') 
    BEGIN
     DECLARE @LastSales varchar(25) 
     SET @LastSales = (select CONVERT(VARCHAR(25),max(LastSalesTime)) from [LinkedServerName].SalesDB.dbo.SalesTable)
    END
    What should happen is, it should check the existence of SalesTable on Linked Server (select 1 from [LinkedServer].Sales.sys.tables where name = 'SalesTable'), and only after the it returns 1, the variable @LastSales should be alloted a value.
    But in my case, as soon as I run the code, it gives the error:
    The OLE DB provider "SQLNCLI10" for linked server "LinkedServerName" does not contain the table ""Sales"."dbo"."SalesTable"". 
    The table either does not exist or the current user does not have permissions on that table.
    My question is that if the condition fails at the very outset returning null (as the table does not exist), then why it is entering BEGIN and throwing the error.
    All your valuable inputs are appreciated !!

    Inconsistency is the hailmark of SQL Server.
    If you say:
    IF EXISTS (select 1 from Sales.sys.tables where name = 'SalesTable') 
    BEGIN
     DECLARE @LastSales varchar(25) 
     SET @LastSales = (select CONVERT(VARCHAR(25),max(LastSalesTime)) from        SalesDB.dbo.SalesTable)
    END
    This will work as you expect. That is, if the table does not exist, the batch will parse and produce no result. This is because SQL Server has deferred name resolution for tables. If a table is missing at compile time, SQL Server suppresses the error in
    hope that the table will be there at run-time.
    But there is an exception to this. For table sources on remote data sources, there is no deferred name resolution, but the table has to be there at compile time. This is quite ironic. Personally, I think deferred name resolution (which was introduced in
    SQL 7) is a big misfeature, but I could buy if there was deferred name resolution for objects on linked server, since the server may be down, and you have coded for this like you have above. Well, if the server is down, the IF EXISTS will fail to compile to.
    You will need to introduce a new scope somewhere to avoid the problem. For instance:
    IF EXISTS (select 1 from [LinkedServerName].Sales.sys.tables where name = 'SalesTable') 
    BEGIN
       DECLARE @LastSales varchar(25) 
       EXEC [Linkedservername].SalesDB.sys.sp_executesql
            N'SET @LastSales = (select CONVERT(VARCHAR(25),max(LastSalesTime)) from SalesTable)',
            N'@LastSales varchar(25) OUTPUT', @LastSales
    END
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Select from a linked server fails when executed as a join to database tables

    Hi
    I have been using the following TSQL to update a results table for several years it is currently running on SQL Express version 11.0.2100.60 (I have successfully run this on various versions and editions from 2005 onwards)
    select c.Race_id , r.Runner_id , i.Time_secs
      from CHAMPS INPUT]...Results I
      join  [dbo].[Race] c
      on rtrim(I.Race)COLLATE SQL_Latin1_General_CP1_CI_AS
      = rtrim(c.Race_name)COLLATE SQL_Latin1_General_CP1_CI_AS
      join  [dbo].[Runner] r
      on rtrim(I.[Name]) COLLATE SQL_Latin1_General_CP1_CI_AS
      = rtrim(r.First_Name)COLLATE SQL_Latin1_General_CP1_CI_AS + ' '
      + rtrim(r.Surname)COLLATE SQL_Latin1_General_CP1_CI_AS
     where i.Time_secs > 0
    This worked earlier today then with no obvious change stopped working
    No error is given but no rows are returned
    running select * from [CHAMPS INPUT]...Results where Time_secs > 0 returns the expected rows
    Any ideas where to look for the problem

    Erland thanks for your reply. I have resolved the issue, it was caused by an error in updating the joined race table. I was looking for a problem with the linked server and missing the obvious.
    Hi philpits,
    You can try to use SQL Profiler to capture some events while run your query.
    In addition, can you get expected result while run the query on remote server? Please also check your underlying tables.
    Regards,
    Elvis Long
    TechNet Community Support

  • How to create linked server in sql 2005 to access free table visual foxpro 9 step by step

    Hi All, I want to connect to dbf file visual foxpro by using linked server in sql 2005, but i can't do, i hope getting best anwser from every body in forum.
    Thanks all.

    Hi doanpq,
    Please download and install OLE DB Provider for Visual FoxPro 9.0, which exposes OLE DB interfaces that you can use to access Visual FoxPro databases and tables from other programming languages and applications. Please see:
    http://www.microsoft.com/en-us/download/details.aspx?id=14839
    Then, please follow up the following article to create a linked server:
    Creating Linked Servers:
    http://technet.microsoft.com/en-us/library/ff772782(v=sql.105).aspx
    For more information, you can also take a look at the following article, especially Dave K's comment:
    http://blog.dbase.integralwebsolutions.co.za/2008/10/accessing-your-dbf-tables-via-linked.html
    Elvis Long
    TechNet Community Support

  • Inserting data into table through linked server

    Hi
    I am trying to insert data from a remote database into my database using linked server.
    Below is the syntax that I am using
    set XACT_ABORT on
    INSERT INTO MyTable
    EXEC [172.xx.xx.xxx].MyDatabase.dbo.[MyStoredProc] '2014-10-20','2014-10-26'  
    When I execute the SP (EXEC [172.xx.xx.xxx].MyDatabase.dbo.[MyStoredProc] '2014-10-20','2014-10-26'   ) I get the result.
    but when I try inserting the data into a table using the above code I get the following error
    OLE DB provider "SQLNCLI11" for linked server "172.xx.xx.xxx" returned message "No transaction is active.".
    Msg 7391, Level 16, State 2, Line 59
    The operation could not be performed because OLE DB provider "SQLNCLI11" for linked server "172.xx.xx.xxx" was unable to begin a distributed transaction.
    I tried solutions given on
    http://stackoverflow.com/questions/7473508/unable-to-begin-a-distributed-transaction
    but still i get the issue... I don't know whats wrong.

    I think you may need to set the remote proc transaction promotion for linked server option to
    false.
    Please read the articles in below links for more info:
    How to Share Data between Stored Procedures - The Challenges of Linked Servers (Erland)
    How to insert in table from remote stored procedure without creating a distributed transaction?
    Krishnakumar S

  • Is it possible to link existing Sharepoint 2010 lists to SQL server databases?

    I created a SQL server database and added a table to it. Then I used Sharepoint Designer 2010 to create an external
    Content Type using this table. Now I can alter the according Sharepoint list which then again performs CRUD operations on the said database table.
    Now I want to do the same with a existing list which already contains data. In other words, I want to synchronize already filled lists to a table in my
    SQL Server database. As I am new to Sharepoint this is the only solution I can think of.
    I would create a table in my database which contains the very same columns as my already existing Sharepoint list does. Then I would proceed as described above. Namely I would use
    Sharepoint Designer to create an External Content Type. This would generate a new list which would be connected to my database table. Now I would copy the complete data from the
    original list to the newly created and synchronized list. This way the data should also be synchronized with the database table now. Now I would simply delete the
    old list.
    I somehow have the feeling this is not a clean solution for my task. Is there any easier or cleaner way to do this? Is this even possible?

    It's clean enough, although if I remember correctly you can't bulk upload the data to an external list. If bulk upload isn't available, writing a little script that syncs the data is probably the easiest way to do it, and then delete the old list.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

Maybe you are looking for

  • Unable to call a web service from BPEL Project

    I am running my BPEL PM on Windows XP SP3. The platform is weblogic 9.2, SOA 10.1.3.1. I created a simple BPEL project to call a web service and when I run the project from BPELConsole I getting the following error: exception on JaxRpc invoke: HTTP t

  • TS3626 Mac os x 10.4.11 unable to install snow leopard

    I couldn't install osx snow leopard family pack in to my Mac osx 10.4.11?? I've tried many times. It's start installing aswell but after 10 to 15 minutes it's stops with the error says couldn't install on your computer.. The installer could not copy

  • Vendor ID and Vendor name don't appare

    Hi experts i've done a  Questionnaire via transaction ROS_QSTN_SURVEY. I've filled into the questionnaire the parameters VENDOR_NAME and VENDOR_ID but, at the end of the Registration of Supplier the Vendor ID and the Vendor Name don't appare. Any sug

  • Viewing cover flow through ipod playing on itunes

    I have too much music and don't keep it all on the computer hard drive. Can I plug ipod into itunes and view Cover Flow of the ipod contents while its playing? Cover Flow works great with the files that are in itunes Library, just not through the ipo

  • Uploading Goods Receipt with Serial that already out

    Hi Guys If I will upload via Goods Receipt a serial that already, it will have error regarding serial that is not unique. How can this be, the item is already out. Thanks