Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: MS SQL Server Perl DBI

by rdfield (Priest)
on Dec 02, 2003 at 13:36 UTC ( [id://311605]=note: print w/replies, xml ) Need Help??


in reply to MS SQL Server Perl DBI

No, that's an SQL Server issue. A single SQL statement, correctly written, that accesses many databases is not a problem for any client software (including DBI). It is a server configuration issue - the definitions of, and the permissions granted to, the DB Links are what defines if a query can successfully joins tables over multiple databases.

rdfield

Replies are listed 'Best First'.
Re: Re: MS SQL Server Perl DBI
by Grygonos (Chaplain) on Dec 02, 2003 at 13:56 UTC

    First of all you need to make sure that the server is linked in Enterprise Manager. Then secondly the method for specifying data in linked servers is very tedious.

    select linked.fields FROM servername.dbname.owner(usually dbo).table as linked where linked.criteria
    That's the syntax for querying a linked server in MSSQL. That should get it done. Be warned you cannot specify the with(no lock) criteria on a linked server. Also you must specify an alias to the linked server via the as xxx method to be able to resolve conflicting field names. using the fully quantified name produces an error.

    hope this helps,

    Grygonos

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://311605]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-04-23 21:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found