Re: Connection object question
- From: Edward Diener <eddielee_no_spam_here@xxxxxxxxxxxxxx>
- Date: Thu, 26 May 2005 11:45:35 -0400
Mark J. McGinty wrote:
"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.
Is there any way I can have a connection to an SQL Server database in exclusive mode ? If there was a way would this speed up changes to tables in that database ? Is there any connection mode which would be effective to speed up any changes when I know that no other connection will be accessing a particular database when my program does ?
.
- Follow-Ups:
- Re: Connection object question
- From: Stephen Howe
- Re: Connection object question
- References:
- Connection object question
- From: Edward Diener
- Re: Connection object question
- From: Mark J. McGinty
- Connection object question
- Prev by Date: ADODB.Recordset Open progress indicator
- Next by Date: Re: Connection object question
- Previous by thread: Re: Connection object question
- Next by thread: Re: Connection object question
- Index(es):
Relevant Pages
|
|