How do I  acess tables in SQL 2005 EXPRESS linked with SQL 2000 ?

Posted on 2008-10-15
Last Modified: 2010-04-21
I created a linked server on SQL 2000 to  SQL EXPRESS 2005. I am able to view the linked tables in SQL 2000 server but i can't acess the tables.
Question by:jhbeggs
  • 4
  • 4
LVL 37

Expert Comment

ID: 22721651
what do you mean can't access?
what are you trying to do?
did you try to select from them? what message did you receive?

Author Comment

ID: 22721759
I can't access the contents of the tables.I am trying to insert values into the linked table from insert trigger on a table in sql 2000.But I am getting the following error:
System.Data.SqlClient.SqlException: Invalid object name 'linkedservername'.'tablename'.
Waiting for your reply.Thank you very much.
LVL 37

Expert Comment

ID: 22721827
can you post here the insert statement?

Author Comment

ID: 22721939
I tried to insert values into a table in linked server after insert the values in a table in sql 2000 by using triggers.

CREATE TRIGGER trig_name ON [dbo].[tablename]
DECLARE @staff_id VARCHAR(100)
DECLARE @weeknumber (100)
DECLARE @staff_id VARCHAR(100)
SELECT @staff_id= (SELECT staff_id FROM  Inserted)
SELECT @weeknumber = (SELECT weeknumber FROM  Inserted)
INSERT INTO  [TEST].[tbl_testexpense](staff_id,week_number) VALUES('@staff_id','@weeknumbe'r)
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

LVL 37

Expert Comment

ID: 22721969
when using a linked server you have to specify the full table name:


Author Comment

ID: 22722078
I specified the full table name  and execute ,Then i get the following error.
Access to the remote server is denied because no login-mapping exists.
LVL 37

Accepted Solution

momi_sabag earned 500 total points
ID: 22728406
you need to solve this issue... :-)
you need to create at the remote server the same login that you are using in your local server
are you using windows authentication or sql authentication?

Author Closing Comment

ID: 31506314
SQL EXPRESS 2005 will not allow the creation of the same username and password as in SQL 2000.

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
T-SQL to Update Table Dynamically 2 40
Set the max value for a column 7 36
Sql Query join multiple table and distinct records 7 29
So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now