Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
|
Callback
Support |
If you live in USA, UK, Canada, Australia or New
Zealand, you can leave us details on your question and request us to call you back and discuss
them with you personally (charges apply). |
Click Here
|
Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
|
Four-part naming for Linked SQL Server Objects |
Author |
Message |
|
Posted : 2006-08-16 06:27:34 |
Can you provide the proper Link.Catalog.Schema.Object terminology. I'm supposing it's something like QODBC.___.___.Customer. Can you help fill-in the blanks.
I'm encountering limititations in using OPENQUERY statements in that they cannot be 'built on the fly' (or do you have a working scheme for that?, i.e. using variables in query strings).
I'm suspecting that using four-part naming will overcome these limitations (At a severe performance hit?). Any guidance you have regarding this would be appreciated.
|
|
|
Randle Sather
IT Manager
Pavillon International
randles@pavillon.org |
| Top | |
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2006-08-16 08:29:03 |
Most of the time I don't see many users using a catalog or schema name in the four-part name: linked_server_name.catalog.schema.object_name.
Below are a few examples based a Link Server named "QODBC":-
-
SELECT * FROM QODBC...HOST
-
SELECT * FROM QODBC...HostSupportedVersions
-
SELECT ListID, Name FROM QODBC...Employee
-
SELECT ListID, Name FROM QODBC...Customer
-
SELECT ListID, Name, CompanyName FROM QODBC...Vendor
-
UPDATE QODBC...Vendor SET "CompanyName" = 'Bayshore Water, LLC' WHERE "Name" = 'Bayshore Water'
-
INSERT INTO QODBC...Customer (Name) Values ('Test Customer 201')
|
|
|
|
|