Re: How many periods are REALLY needed?
- From: "Russell Fields" <russellfields@xxxxxxxxxx>
- Date: Tue, 2 Oct 2007 17:43:28 -0400
Keith,
ServerName.DatabaseName.OwnerOrSchemaName.ObjectName make up the four
components for SQL Server names. If you are using a linked server you
should always have 3 dots involved when talking to another SQL Server.
But talking to Access, I don't know why behavior would have changed on you
even though Access is a different database. (More frankly, I don't know why
the .. worked.)
The 2000 and 2005 Books Online both say: Access databases do not have
catalog and schema names. Therefore, tables in an Access-based linked server
can be referenced in distributed queries using a four-part name of the form
linked_server...table_name.
RLF
"greenmtnsun" <greenmtnsun@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1A90E243-B0E5-43F4-AE44-E3291A5933FB@xxxxxxxxxxxxxxxx
I have a very strange situation. A select statement I am running isn't
returning the right number of records from a linked server.
The linked server is to an Access 2000 Database using the Microsoft Jet
4.0
OLE DB Provider driver. (4.0.9505.0)
Here is the problem:
SELECT * FROM PCCHARGE..TRANS -- This does not pull back todays data
judged
by looking at a column named "date".
SELECT * FROM PCCHARGE...TRANS -- This pulls back todays data, it pulls
back
all of the data.
What's the difference? the ... verses the ..
The .. was used by my predecessor in our SP's. They worked without any
known problems until today. Now all of the sudden, they don't do so well.
I
came to find out if you right click on the table in server objects and ask
SSMS to generate the select statement it gives ... periods.
So... Any idea what the problem is? What is the philosophy of periods
with
linked servers? How could they stop working?
Thanks,
Keith
.
- Prev by Date: RE: Unable to connect to SQL Server 2005, the service is running..
- Next by Date: Re: How many periods are REALLY needed?
- Previous by thread: RE: Unable to connect to SQL Server 2005, the service is running...
- Next by thread: Re: How many periods are REALLY needed?
- Index(es):
Relevant Pages
|
Loading