473,394 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

When Linking A Server; Only System Tables Are Accessible!


I added a linked server successfully; but the only tables accessible are
only the system tables!
I do have all the rights on both servers (Windows & SQL server).

All the non system tables are designated as DBO.

Strange thing is that I was able to access the non system tables only
from the query analyzer (not from the SQL Manager tree) by using the
following script:
EXEC sp_addlinkedserver 'LINKED_SERVER_NAME', N'SQL Server'
GO
Set ANSI_NULLS on
Set ANSI_WARNINGS on
GO
Select * From LINKED_SERVER_NAME.Database_name.DBO.table_name
GO

Thank you very much

Mike

*** Sent via Developersdex http://www.developersdex.com ***
Dec 8 '05 #1
3 1939
mike (-n*****@yahoo.com) writes:
I added a linked server successfully; but the only tables accessible are
only the system tables!
I do have all the rights on both servers (Windows & SQL server).

All the non system tables are designated as DBO.

Strange thing is that I was able to access the non system tables only
from the query analyzer (not from the SQL Manager tree) by using the
following script:


That may be true that you can't see the tables in a linked server from
a graphical management tool. After all that could be a costly operation.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.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
Dec 8 '05 #2
Dear sir,
I am balakumar here,
I have created a database of a company like the whole company employee
is under MD.
but i want number of employee forming a branches who is directly
reporting to there immediate senior.
I want the maximum number of subordinates reporting to their
immediate(Direct) senior.
what would be the <syntax> in nested select option.
I request you to send the <syntax> to my mail ID at the earliest.
MODEL OF MY DATA"S
like....

The hierchy of the company is
MD > 3 Director > each director have 2,3,and 4 subordinates
respectively.
I want the maximum number of subordinates Reporting to direct
(immediate) senior.

Thanking you,

With Regrads,
J.Balakumar

*** Sent via Developersdex http://www.developersdex.com ***


Dec 9 '05 #3
(J.*********@gmail.com) writes:
I am balakumar here,
I have created a database of a company like the whole company employee
is under MD.
but i want number of employee forming a branches who is directly
reporting to there immediate senior.
I want the maximum number of subordinates reporting to their
immediate(Direct) senior.
what would be the <syntax> in nested select option.
I request you to send the <syntax> to my mail ID at the earliest.


A standard recommendation for this type of questions, is that your post
should include:

o CREATE TABLE statement for your table(s).
o INSERT statements with sample data.
o The desired result given the sample.

With that information, your chances to get a tested solution are very
good.

Without that information, and only a vague question, all you get are
more or less guesses. It sounds as if you are looking for how to run
a hierarchical query. In SQL 2000, there is on built-in syntax for this,
but look at
http://groups.google.com/group/comp....496712c9795f8f
for a way of doing it.

In SQL 2005 you can use something called Common Table Expression. If
you have SQL 2005, I suggest that you look up "WITH common table expression"
in Books Online for a discussion and some examples.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.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
Dec 9 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John South | last post by:
I have an Access 2000 front end that I wish to work with a SQL Server 2000 database by means of Linked tables. Do I have to use an ODBC connection to SQL Server? It seems to be the only option...
2
by: Jeff Pritchard | last post by:
Some time ago I am sure I came across something that said this was possible, though it doesn't seem to work. A client wants to replace an Access back-end with SQL Server tables. We have tried...
1
by: Kinetic - Paul G | last post by:
Hi All Hope someone can help out . . . I have a system that worked fine in A97 .and Win 98 with NT server . . . 10 PCs running a front end MDB and usual backend MDB with tables on the server....
0
by: gasturbtec | last post by:
please help im new at access programming and i just got this project dropped in my lap because the old programmer quit. i've been doing ok so far but now i need to add code to an existing database...
5
by: Christoph Sticksel | last post by:
Hi, I'm having problems with attaching two tables stored in an SQL Server 2000 to an Access 97 database. It worked well for all other tables except those two. This is what I did: Choose the...
2
by: Matthew Wells | last post by:
Good morning... I have an Access front end that uses SQL Server linked tables. SQL Server uses Windows authentication. I have one Windows group that all Access users are a member of. I added...
23
by: wylbur37 | last post by:
I'm running an Apache server on my own computer (Windows XP Pro). I wrote a simple PHP script (called test3.php) that I'm running by putting the following URL in the address bar of the browser...
2
by: Anns via SQLMonster.com | last post by:
I have about 20 Ms Access Databases to need to be upload onto a SQL Server 2005. Currently the are on a network/server residing on a specific drive. The goal is to keep the user face the same...
7
by: Lisa | last post by:
I have an Access 2000 application that uses the following function to re-link my tables when I switch from my Current back end to a Dummy back end. I also use it to refresh my links. Function...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
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...
0
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.