Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Server, access to more than 1 database at a time
Message
From
13/11/2011 03:29:37
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
12/11/2011 22:38:10
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01528644
Message ID:
01528761
Views:
77
>Hi
>
>To be more specific for at least one basic case,
>
>If I connect to a second database in SQL 2005 it works fine
>If I do the same in SQL 2008 R2 I get the following message:
>Error 0:
>Connectivity Error [Mocrosoft][ODBC driver Manager] Data Source Name not found and no default driver specified.

What Bill said, which means you'd have to connect to each separately and keep two handles.

There are more complicated ways - if you need to use tables from both servers in the same statement, you can have the servers talk to each other. That requires that one server pulls from the other - see in BOL about connected servers. In that case, you connect to one server, and it pulls data from the other server, combines them with its local data, and returns a result set to you.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform