Re: Connection object question
- From: "Mark J. McGinty" <mmcginty@xxxxxxxxxxxxxxx>
- Date: Thu, 26 May 2005 05:47:51 -0700
"Edward Diener" <eddielee_no_spam_here@xxxxxxxxxxxxxx> wrote in message
news:uLJfReeYFHA.3184@xxxxxxxxxxxxxxxxxxxxxxx
> Does the connection object define the connection to a single data source,
> ie. database, or to a server in general ?
Depends on the provider, for many of the less-functional back-ends, there
really is no "server" to speak of, only a host file system, and driver
modules on the clients. For those providers that do implement actual server
processes running on the host, it is a connection to the server. With SQL
Server, there is a designated default database, but you can reference any
database to which the connection has permissions from a single connection,
by either using 3-part names, or changing the DefaultDatabase property.
> I believe the former. The reason I ask is that if I set the Mode to
> adModeShareExclusive, I do not want to prevent other connections to the
> same server but a different database.
That would depend upon the provider as well, I believe adModeShareExclusive
is only supported by "file-based" providers, that rely on the host file
system to mitigate concurrency issues. (Examples of these are Jet and
FoxPro.)
SQL Server, for instance, returns Error #-2147217887: Provider does not
support the property.
-Mark
.
- Follow-Ups:
- Re: Connection object question
- From: Edward Diener
- Re: Connection object question
- References:
- Connection object question
- From: Edward Diener
- Connection object question
- Prev by Date: Connection object question
- Next by Date: WSAECONNREFUSED on a TCP socket breaks an open ADO connection.
- Previous by thread: Connection object question
- Next by thread: Re: Connection object question
- Index(es):
Relevant Pages
|
|