SQLOLEDB with Server=(local) on SQL Server 2005



I've installed MS SQL Server 2005 and my existing ADO code that uses
the OLE DB provider (SQLOLEDB) cannot conntect using '(local)' as the
server/data source name

e.g. these fail:

Provider=SQLOLEDB.1;Data Source=(local);Initial Catalog=Airplanes;User
Id=sa;password=MySaPassw0rd;
Provider=SQLOLEDB.1;Server=(local);Initial Catalog=Airplanes;User
Id=sa;password=MySaPassw0rd;

It works when I explicitly use the server name

e.g. this succeeds:

Provider=SQLOLEDB.1;Data Source=MYSERVER;Initial Catalog=Airplanes;User

Id=sa;password=MySaPassw0rd;

I can also get '(local)' to work with the SQL Server native client:

e.g. this succeeds:

Provider=SQLNCLI;Server=(local);Database=Airplanes;UID=sa;PWD=MySaPassw0rd;­DataTypeCompatibility=80;


Can anyone confirm whether or not it is possible to use '(local)' with
SQLOLEDB on SQL Server 2005?

Thanks,
Jamie


--

.



Relevant Pages

  • SQLOLEDB
    ... connect to a SQL server ... When I try to query the server I get the ODBC Connection error message that ... I search my codes for that Catalog and I can ... Also How can I found out what are the file dependency for SQLOLEDB to make ...
    (microsoft.public.vb.database.ado)
  • Re: Unspecified error while passingTEXT fields containing Hebrew t
    ... I am using ADO to communicate with SQL Server and the PRovider is ... > I assume that the engine is SQL Server, and the provider is SQLOLEDB? ...
    (microsoft.public.data.oledb)
  • Re: Problem with Linked Server and Text fields
    ... Thanks Erland ... >> The provider OLE DB 'SQLOLEDB' can`t INSERT INTO table ... > that the problem is fixed in SQL Native Client, an SQL Server OLE DB ...
    (microsoft.public.sqlserver.server)
  • Re: oledb standard errors?
    ... > I am writing a vb6 app using ADO to connect to a SQL server database ... > through SQLOLEDB. ... Although the backend is SQL server right now, ...
    (microsoft.public.data.oledb)
  • Re: ADO Recordset Seek Method ?
    ... perhaps someone with more experience of SQL Server might ... > Server and I am 99% certain I have seen documentation that say SQLOLEDB ... > does not support it (and considering what SQLOLEDB does support, ... that Seek is unique to Jet ... ...
    (microsoft.public.data.ado)