Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Connection issues with ADO
Hello,

I distribute an app to various folks that allows them to connect to
various SQL Servers.  I have no control over what version of ADO they
have installed, but it's version 2.5 or higher.

With ADO 2.5 the default connection protocol was named pipes.  With ADO
2.6, they've changed the default to TCP/IP.

When users try to connect using ADO 2.5, sometimes the connection fails
for varoius reasons: the user is not on the domain and the server they
are connecting to is or they are connecting across non-trusted domains
and so forth.

So my questions are as follows:

1.  Will it have any repercussions if I force the connection to TCP/IP,
by appending "Network Library=dbmssocn" to the connection string?  Will
I still be able to connect to the local machine regardless of ADO version?

2.  Named pipes work fine as long as you are authenticated on the
domain.  Is this a correct assumption?

3.  I can always use Named Pipes to connect to my local sql server.  Is
this correct?

4.  What about if the user's PC and the SQL Server are in the same
workgroup.  Will named pipes still work?

Thanks

Report this thread to moderator Post Follow-up to this message
Old Post
Frank Rizzo
05-28-05 08:55 PM


Re: Connection issues with ADO
On Sat, 28 May 2005 10:58:40 -0700, Frank Rizzo <nospam@nospam.com>
wrote:
in <eq5kf66YFHA.3096@TK2MSFTNGP15.phx.gbl>

>Hello,
>
>I distribute an app to various folks that allows them to connect to
>various SQL Servers.  I have no control over what version of ADO they
>have installed, but it's version 2.5 or higher.
>
>With ADO 2.5 the default connection protocol was named pipes.  With ADO
>2.6, they've changed the default to TCP/IP.
>
>When users try to connect using ADO 2.5, sometimes the connection fails
>for varoius reasons: the user is not on the domain and the server they
>are connecting to is or they are connecting across non-trusted domains
>and so forth.
>
>So my questions are as follows:
>
>1.  Will it have any repercussions if I force the connection to TCP/IP,
>by appending "Network Library=dbmssocn" to the connection string?  Will
>I still be able to connect to the local machine regardless of ADO version?
>
>2.  Named pipes work fine as long as you are authenticated on the
>domain.  Is this a correct assumption?
>
>3.  I can always use Named Pipes to connect to my local sql server.  Is
>this correct?
>
>4.  What about if the user's PC and the SQL Server are in the same
>workgroup.  Will named pipes still work?
>
>Thanks

Named pipes will not work with any 9x based system, so your assertions
are correct if all clients/servers are NT based systems.  You could
always ~encourage~ your clients to upgrade to MDAC 2.8 the way MS
~encourages~ upgrades.  Use your imagination here.


---
Stefan Berglund

Report this thread to moderator Post Follow-up to this message
Old Post
Stefan Berglund
05-29-05 01:55 AM


Re: Connection issues with ADO
SQL Server has to be set up with the appropriate libraries for NamedPipes or
you will not be able to connect. For example, on several of my servers, I
use only TCP/IP.

"Frank Rizzo" <nospam@nospam.com> wrote in message
news:eq5kf66YFHA.3096@TK2MSFTNGP15.phx.gbl...
> Hello,
>
> I distribute an app to various folks that allows them to connect to
> various SQL Servers.  I have no control over what version of ADO they have
> installed, but it's version 2.5 or higher.
>
> With ADO 2.5 the default connection protocol was named pipes.  With ADO
> 2.6, they've changed the default to TCP/IP.
>
> When users try to connect using ADO 2.5, sometimes the connection fails
> for varoius reasons: the user is not on the domain and the server they are
> connecting to is or they are connecting across non-trusted domains and so
> forth.
>
> So my questions are as follows:
>
> 1.  Will it have any repercussions if I force the connection to TCP/IP, by
> appending "Network Library=dbmssocn" to the connection string?  Will I
> still be able to connect to the local machine regardless of ADO version?
>
> 2.  Named pipes work fine as long as you are authenticated on the domain.
> Is this a correct assumption?
>
> 3.  I can always use Named Pipes to connect to my local sql server.  Is
> this correct?
>
> 4.  What about if the user's PC and the SQL Server are in the same
> workgroup.  Will named pipes still work?
>
> Thanks



Report this thread to moderator Post Follow-up to this message
Old Post
Earl
05-29-05 08:55 AM


Re: Connection issues with ADO
"Stefan Berglund" <keepit@in.thegroups> wrote in message
 news:7cfh91dus5qpan58ij9ratsthudrhn48mc@
4ax.com...

> Named pipes will not work with any 9x based system

I question that statement. Do you have something to back it up?



Report this thread to moderator Post Follow-up to this message
Old Post
Jeff Johnson [MVP: VB]
05-30-05 08:55 AM


Re: Connection issues with ADO
On Sun, 29 May 2005 22:12:43 -0400, "Jeff Johnson [MVP: VB]"
<i.get@enough.spam> wrote:
in <#09cczLZFHA.796@TK2MSFTNGP10.phx.gbl>

>
>"Stefan Berglund" <keepit@in.thegroups> wrote in message
> news:7cfh91dus5qpan58ij9ratsthudrhn48mc@
4ax.com...
> 
>
>I question that statement. Do you have something to back it up?
>
Well, I guess you're right.  Apparently I erroneously concluded that
because the CreateNamedPipe API isn't available on 9x systems but I see
that most of the other pipe APIs are:

mk:@MSITStore:G:\MSDN\ipc.chm::/hh/winbase/pipes_0tmb.htm

So I'll say that you can't create a named pipe on a 9x system but
apparently you can read/write it.

Thanks for the correction although I'm still thinking I decided against
pipes for this very reason, but I sure as hell can't find it now.  <g>


---
Stefan Berglund

Report this thread to moderator Post Follow-up to this message
Old Post
Stefan Berglund
05-30-05 08:55 AM


Re: Connection issues with ADO
"Stefan Berglund" <keepit@in.thegroups> wrote in message
 news:e7vk91ha544hairpd3hea50inqukfu4vfc@
4ax.com...
 
> Well, I guess you're right.  Apparently I erroneously concluded that
> because the CreateNamedPipe API isn't available on 9x systems but I see
> that most of the other pipe APIs are:
>
> mk:@MSITStore:G:\MSDN\ipc.chm::/hh/winbase/pipes_0tmb.htm
>
> So I'll say that you can't create a named pipe on a 9x system but
> apparently you can read/write it.
>
> Thanks for the correction although I'm still thinking I decided against
> pipes for this very reason, but I sure as hell can't find it now.  <g>

I believe the only pipe 9x systems can "create" is the "anonymous" pipe,
i.e., the named pipe with no name....



Report this thread to moderator Post Follow-up to this message
Old Post
Jeff Johnson [MVP:VB]
05-31-05 08:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Basic archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:40 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.