Group:  Microsoft Access ยป microsoft.public.access.adp.sqlserver
Thread: Connection to SQL Express

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Connection to SQL Express
Gabriele Bertolucci <info[ at ]REMOVEpbsoft.it> 03.03.2006 16:45:15
I'm using Access XP.

May you tell me why, if I use the following connection string:

"Provider=SQLNCLI;Server=mycomputer\sqlexpress;Database=databasename;UID=sa;PWD=sapassword;MarsConn=yes;Encrypt=yes"

I continue to receive a "Specified SQL Server not found" error,

while, if I use the following one:

"Provider=SQLOLEDB.1;Persist Security Info=False;Data Source=mycomputer\sqlexpress;User
ID=sa;Password=sapassword;Initial Catalog=databasename"

it seems all ok?

Obviously I tried also not to specify MARS and encryption parameters, but
got same results.
I tried also to specify ".\sqlexpress" as server name, but problem stays up.

I hope you can help me.

--
PBsoft di Gabriele Bertolucci
www.pbsoft.it


Re: Connection to SQL Express
"Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)> 03.03.2006 17:57:18
SQL-Server use SSL to perform its encryption; so the use of encryption
requires that a valid certificate from a known CA authority exist on the
server and that the root certificate for this CA authority is already
installed on the client machine.

This is the same requirement has for HTTPS://; so if you cannot make a
connection with HTTPS on the server, then you cannot use encryption with
SQL-Server.

(There is one exception to this: the old Multiprotocol Net-Library for
SQL-Server offers support for its own encryption algorithm but I don't know
if this old protocol is still supported with SQL-2005 Express.)

The question with the native provider SQLNCLI is more interesting: can we
use with ADP? From your test, it appears that maybe we cannot use it with
ADP. However, all the advanced features of SQLNCLI are probably unavailable
under ADP, so there is no real advantage to use this provider under ADP.

If you want to use some of these features with ADP, you should open your own
ADO connection and access it with VBA code.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: http://cerbermail.com/?QugbLEWINF


"Gabriele Bertolucci" <info[ at ]REMOVEpbsoft.it> wrote in message
news:875ea355af2e8c80d015d2e52c0[ at ]news.virgilio.it...
[Quoted Text]
> I'm using Access XP.
>
> May you tell me why, if I use the following connection string:
>
> "Provider=SQLNCLI;Server=mycomputer\sqlexpress;Database=databasename;UID=sa;PWD=sapassword;MarsConn=yes;Encrypt=yes"
>
> I continue to receive a "Specified SQL Server not found" error,
>
> while, if I use the following one:
>
> "Provider=SQLOLEDB.1;Persist Security Info=False;Data
> Source=mycomputer\sqlexpress;User ID=sa;Password=sapassword;Initial
> Catalog=databasename"
>
> it seems all ok?
>
> Obviously I tried also not to specify MARS and encryption parameters, but
> got same results.
> I tried also to specify ".\sqlexpress" as server name, but problem stays
> up.
>
> I hope you can help me.
>
> --
> PBsoft di Gabriele Bertolucci
> www.pbsoft.it
>
>


Re: Connection to SQL Express
"aaron.kempf[ at ]gmail.com" <aaron.kempf[ at ]gmail.com> 04.03.2006 17:46:10
MS is a bunch of friggin drunk retards for not giving us a realworld
option for using ADP 2003 against SQL 2005.

I mean; the product manager than made that decision should be shot on
live television.

I mean.. Server-based Crosstab Query Wizard, anybody?

HELLO IS THERE ANYBODY IN REDMOND WITH A CLUE??

i mean-- what better way to force adoption of Office 2003??

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net