PC Review


Reply
Thread Tools Rate Thread

Can't connect to local SQL Server 2005 from .adp

 
 
Francis Moore
Guest
Posts: n/a
 
      30th Jul 2008
First off, I'm using Access 2007 SP1, Vista SP1 and SQL Server 2005 Developer
Edition SP2 (Build 3068), all on my local computer.

It seems that I can connect to my server from any application but from an
Access adp... I can't figure out why... It's the first time I'm using an adp,
when I try to connect to SQL Server I get the error:

Test connection failed because of an error in initializing provider.
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access
denied.

I'm able to connect to SQL Server from SSMS, from Visual Studio 2008 and I
can create an ODBC datasource pointing to a database on the server and test
succesfully the connection.

I tried both with Integrated Security and username/password (which is
enabled on the server) without luck. I tried to disable the windows firewall,
it didn't help either.

Any ideas?
 
Reply With Quote
 
 
 
 
Paul Shapiro
Guest
Posts: n/a
 
      30th Jul 2008
Check that you're ADP connection is using a communication method that is
enabled on your SQL Server. I think the default SQL Server install might
only enable shared memory connections.

"Francis Moore" <(E-Mail Removed)> wrote in message
news:9DFC5586-5232-40DF-9331-(E-Mail Removed)...
> First off, I'm using Access 2007 SP1, Vista SP1 and SQL Server 2005
> Developer
> Edition SP2 (Build 3068), all on my local computer.
>
> It seems that I can connect to my server from any application but from an
> Access adp... I can't figure out why... It's the first time I'm using an
> adp,
> when I try to connect to SQL Server I get the error:
>
> Test connection failed because of an error in initializing provider.
> [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access
> denied.
>
> I'm able to connect to SQL Server from SSMS, from Visual Studio 2008 and I
> can create an ODBC datasource pointing to a database on the server and
> test
> succesfully the connection.
>
> I tried both with Integrated Security and username/password (which is
> enabled on the server) without luck. I tried to disable the windows
> firewall,
> it didn't help either.


 
Reply With Quote
 
Francis Moore
Guest
Posts: n/a
 
      30th Jul 2008
Thank you for your reply, but where can I find these settings?

"Paul Shapiro" wrote:

> Check that you're ADP connection is using a communication method that is
> enabled on your SQL Server. I think the default SQL Server install might
> only enable shared memory connections.
>
> "Francis Moore" <(E-Mail Removed)> wrote in message
> news:9DFC5586-5232-40DF-9331-(E-Mail Removed)...
> > First off, I'm using Access 2007 SP1, Vista SP1 and SQL Server 2005
> > Developer
> > Edition SP2 (Build 3068), all on my local computer.
> >
> > It seems that I can connect to my server from any application but from an
> > Access adp... I can't figure out why... It's the first time I'm using an
> > adp,
> > when I try to connect to SQL Server I get the error:
> >
> > Test connection failed because of an error in initializing provider.
> > [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access
> > denied.
> >
> > I'm able to connect to SQL Server from SSMS, from Visual Studio 2008 and I
> > can create an ODBC datasource pointing to a database on the server and
> > test
> > succesfully the connection.
> >
> > I tried both with Integrated Security and username/password (which is
> > enabled on the server) without luck. I tried to disable the windows
> > firewall,
> > it didn't help either.

>
>

 
Reply With Quote
 
Sylvain Lafontaine
Guest
Posts: n/a
 
      30th Jul 2008
The first thing to do would be to try adding the prefix np: or tcp: (for
either Named Pipes or TCP/IP) before the name of the server. For tcp/ip,
you can also try adding the port number (,1433) after the name of the
server. If this is not the default instance, you must add the name of the
instance after the name of the server; for example:

sqlcmd -S tcp:NameOfTheServer\sqlexpress,1433

You can also try other names for the server address, like:

..
(local)
localhost
127.0.0.1

Finally, check if you would have created any alias for the sql-server on the
machines which can connect properly. If you are using an alias then you
should recreate this alias on your new Vista machine. Here are some
articles to help you:

http://blogs.msdn.com/sql_protocols/...efused-it.aspx

http://blogs.msdn.com/sqlexpress/arc...05/415084.aspx

http://blogs.msdn.com/sqlexpress/arc...23/192044.aspx

http://msdn2.microsoft.com/en-us/library/ms345318.aspx

http://www.datamasker.com/SSE2005_NetworkCfg.htm

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)


"Francis Moore" <(E-Mail Removed)> wrote in message
news:41258D86-13D9-4E1E-9243-(E-Mail Removed)...
> Thank you for your reply, but where can I find these settings?
>
> "Paul Shapiro" wrote:
>
>> Check that you're ADP connection is using a communication method that is
>> enabled on your SQL Server. I think the default SQL Server install might
>> only enable shared memory connections.
>>
>> "Francis Moore" <(E-Mail Removed)> wrote in message
>> news:9DFC5586-5232-40DF-9331-(E-Mail Removed)...
>> > First off, I'm using Access 2007 SP1, Vista SP1 and SQL Server 2005
>> > Developer
>> > Edition SP2 (Build 3068), all on my local computer.
>> >
>> > It seems that I can connect to my server from any application but from
>> > an
>> > Access adp... I can't figure out why... It's the first time I'm using
>> > an
>> > adp,
>> > when I try to connect to SQL Server I get the error:
>> >
>> > Test connection failed because of an error in initializing provider.
>> > [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
>> > access
>> > denied.
>> >
>> > I'm able to connect to SQL Server from SSMS, from Visual Studio 2008
>> > and I
>> > can create an ODBC datasource pointing to a database on the server and
>> > test
>> > succesfully the connection.
>> >
>> > I tried both with Integrated Security and username/password (which is
>> > enabled on the server) without luck. I tried to disable the windows
>> > firewall,
>> > it didn't help either.

>>
>>



 
Reply With Quote
 
Francis Moore
Guest
Posts: n/a
 
      30th Jul 2008
I accidentaly found the solution while trying suggestions from the first
article! I had to enable remote connections in Surface Area Configuration for
Services and Connection. Under Database Engine/Remote Connections I choose
"Local and remote connection" / "Using TCP/IP only".

I learned that remote connections are not allowed by default for the
Developer Edition.

I don't know why Access needs that remote connections be allowed, but anyway
my problem is solved!

Thanks Paul and Sylvain for your help!

"Sylvain Lafontaine" wrote:

> The first thing to do would be to try adding the prefix np: or tcp: (for
> either Named Pipes or TCP/IP) before the name of the server. For tcp/ip,
> you can also try adding the port number (,1433) after the name of the
> server. If this is not the default instance, you must add the name of the
> instance after the name of the server; for example:
>
> sqlcmd -S tcp:NameOfTheServer\sqlexpress,1433
>
> You can also try other names for the server address, like:
>
> ..
> (local)
> localhost
> 127.0.0.1
>
> Finally, check if you would have created any alias for the sql-server on the
> machines which can connect properly. If you are using an alias then you
> should recreate this alias on your new Vista machine. Here are some
> articles to help you:
>
> http://blogs.msdn.com/sql_protocols/...efused-it.aspx
>
> http://blogs.msdn.com/sqlexpress/arc...05/415084.aspx
>
> http://blogs.msdn.com/sqlexpress/arc...23/192044.aspx
>
> http://msdn2.microsoft.com/en-us/library/ms345318.aspx
>
> http://www.datamasker.com/SSE2005_NetworkCfg.htm
>
> --
> Sylvain Lafontaine, ing.
> MVP - Technologies Virtual-PC
> E-mail: sylvain aei ca (fill the blanks, no spam please)
>
>
> "Francis Moore" <(E-Mail Removed)> wrote in message
> news:41258D86-13D9-4E1E-9243-(E-Mail Removed)...
> > Thank you for your reply, but where can I find these settings?
> >
> > "Paul Shapiro" wrote:
> >
> >> Check that you're ADP connection is using a communication method that is
> >> enabled on your SQL Server. I think the default SQL Server install might
> >> only enable shared memory connections.
> >>
> >> "Francis Moore" <(E-Mail Removed)> wrote in message
> >> news:9DFC5586-5232-40DF-9331-(E-Mail Removed)...
> >> > First off, I'm using Access 2007 SP1, Vista SP1 and SQL Server 2005
> >> > Developer
> >> > Edition SP2 (Build 3068), all on my local computer.
> >> >
> >> > It seems that I can connect to my server from any application but from
> >> > an
> >> > Access adp... I can't figure out why... It's the first time I'm using
> >> > an
> >> > adp,
> >> > when I try to connect to SQL Server I get the error:
> >> >
> >> > Test connection failed because of an error in initializing provider.
> >> > [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
> >> > access
> >> > denied.
> >> >
> >> > I'm able to connect to SQL Server from SSMS, from Visual Studio 2008
> >> > and I
> >> > can create an ODBC datasource pointing to a database on the server and
> >> > test
> >> > succesfully the connection.
> >> >
> >> > I tried both with Integrated Security and username/password (which is
> >> > enabled on the server) without luck. I tried to disable the windows
> >> > firewall,
> >> > it didn't help either.
> >>
> >>

>
>
>

 
Reply With Quote
 
Paul Shapiro
Guest
Posts: n/a
 
      30th Jul 2008
Glad you got it working. One caution is that your SQL Server is now
available to any computer which can connect to yours on TCP port 1433.
That's why SQL 2005 does not enable remote connections by default. So make
sure your db is secured and keep SQL Server patched.

I think you can get Access to connect over the shared memory protocol, which
is what SQL 2005 expects you to do in the default configuration. Try using
(local) as the server name, with the parentheses. I'm not sure I remember
that correctly, so if it doesn't work, see what SQL Books OnLine says about
shared memory connections. If you get that working, you can disable the
remote connections again. The shared memory protocol only works if you're
connecting from the same machine where SQL Server is running, so if you're
using more than one computer don't bother trying.

"Francis Moore" <(E-Mail Removed)> wrote in message
news:62B29D7C-DDAE-48DE-BEE6-(E-Mail Removed)...
>I accidentaly found the solution while trying suggestions from the first
> article! I had to enable remote connections in Surface Area Configuration
> for
> Services and Connection. Under Database Engine/Remote Connections I choose
> "Local and remote connection" / "Using TCP/IP only".
>
> I learned that remote connections are not allowed by default for the
> Developer Edition.
>
> I don't know why Access needs that remote connections be allowed, but
> anyway
> my problem is solved!
>
> Thanks Paul and Sylvain for your help!
>
> "Sylvain Lafontaine" wrote:
>
>> The first thing to do would be to try adding the prefix np: or tcp: (for
>> either Named Pipes or TCP/IP) before the name of the server. For tcp/ip,
>> you can also try adding the port number (,1433) after the name of the
>> server. If this is not the default instance, you must add the name of
>> the
>> instance after the name of the server; for example:
>>
>> sqlcmd -S tcp:NameOfTheServer\sqlexpress,1433
>>
>> You can also try other names for the server address, like:
>>
>> ..
>> (local)
>> localhost
>> 127.0.0.1
>>
>> Finally, check if you would have created any alias for the sql-server on
>> the
>> machines which can connect properly. If you are using an alias then you
>> should recreate this alias on your new Vista machine. Here are some
>> articles to help you:
>>
>> http://blogs.msdn.com/sql_protocols/...efused-it.aspx
>>
>> http://blogs.msdn.com/sqlexpress/arc...05/415084.aspx
>>
>> http://blogs.msdn.com/sqlexpress/arc...23/192044.aspx
>>
>> http://msdn2.microsoft.com/en-us/library/ms345318.aspx
>>
>> http://www.datamasker.com/SSE2005_NetworkCfg.htm
>>
>> --
>> Sylvain Lafontaine, ing.
>> MVP - Technologies Virtual-PC
>> E-mail: sylvain aei ca (fill the blanks, no spam please)
>>
>>
>> "Francis Moore" <(E-Mail Removed)> wrote in message
>> news:41258D86-13D9-4E1E-9243-(E-Mail Removed)...
>> > Thank you for your reply, but where can I find these settings?
>> >
>> > "Paul Shapiro" wrote:
>> >
>> >> Check that you're ADP connection is using a communication method that
>> >> is
>> >> enabled on your SQL Server. I think the default SQL Server install
>> >> might
>> >> only enable shared memory connections.
>> >>
>> >> "Francis Moore" <(E-Mail Removed)> wrote in
>> >> message
>> >> news:9DFC5586-5232-40DF-9331-(E-Mail Removed)...
>> >> > First off, I'm using Access 2007 SP1, Vista SP1 and SQL Server 2005
>> >> > Developer
>> >> > Edition SP2 (Build 3068), all on my local computer.
>> >> >
>> >> > It seems that I can connect to my server from any application but
>> >> > from
>> >> > an
>> >> > Access adp... I can't figure out why... It's the first time I'm
>> >> > using
>> >> > an
>> >> > adp,
>> >> > when I try to connect to SQL Server I get the error:
>> >> >
>> >> > Test connection failed because of an error in initializing provider.
>> >> > [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
>> >> > access
>> >> > denied.
>> >> >
>> >> > I'm able to connect to SQL Server from SSMS, from Visual Studio 2008
>> >> > and I
>> >> > can create an ODBC datasource pointing to a database on the server
>> >> > and
>> >> > test
>> >> > succesfully the connection.
>> >> >
>> >> > I tried both with Integrated Security and username/password (which
>> >> > is
>> >> > enabled on the server) without luck. I tried to disable the windows
>> >> > firewall,
>> >> > it didn't help either.
>> >>
>> >>

>>
>>
>>


 
Reply With Quote
 
a a r o n . k e m p f @ g m a i l . c o m
Guest
Posts: n/a
 
      31st Jul 2008
does shared memory give the best throughput?

so now do typical 'hardcore olap people' put their olap servers on the
same machine as the db server?


On Jul 30, 6:14*am, "Paul Shapiro" <p...@hideme.broadwayData.com>
wrote:
> Check that you're ADP connection is using a communication method that is
> enabled on your SQL Server. I think the default SQL Server install might
> only enable shared memory connections.
>
> "Francis Moore" <FrancisMo...@discussions.microsoft.com> wrote in message
>
> news:9DFC5586-5232-40DF-9331-(E-Mail Removed)...
>
> > First off, I'm using Access 2007 SP1, Vista SP1 and SQL Server 2005
> > Developer
> > Edition SP2 (Build 3068), all on my local computer.

>
> > It seems that I can connect to my server from any application but from an
> > Access adp... I can't figure out why... It's the first time I'm using an
> > adp,
> > when I try to connect to SQL Server I get the error:

>
> > Test connection failed because of an error in initializing provider.
> > [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access
> > denied.

>
> > I'm able to connect to SQL Server from SSMS, from Visual Studio 2008 and I
> > can create an ODBC datasource pointing to a database on the server and
> > test
> > succesfully the connection.

>
> > I tried both with Integrated Security and username/password (which is
> > enabled on the server) without luck. I tried to disable the windows
> > firewall,
> > it didn't help either.


 
Reply With Quote
 
logo
Guest
Posts: n/a
 
      13th Oct 2008
ÊÕµ½
"Paul Shapiro" <(E-Mail Removed)> дÈëÓʼþ
news:(E-Mail Removed)...
> Check that you're ADP connection is using a communication method that is
> enabled on your SQL Server. I think the default SQL Server install might
> only enable shared memory connections.
>
> "Francis Moore" <(E-Mail Removed)> wrote in message
> news:9DFC5586-5232-40DF-9331-(E-Mail Removed)...
> > First off, I'm using Access 2007 SP1, Vista SP1 and SQL Server 2005
> > Developer
> > Edition SP2 (Build 3068), all on my local computer.
> >
> > It seems that I can connect to my server from any application but from

an
> > Access adp... I can't figure out why... It's the first time I'm using an
> > adp,
> > when I try to connect to SQL Server I get the error:
> >
> > Test connection failed because of an error in initializing provider.
> > [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or

access
> > denied.
> >
> > I'm able to connect to SQL Server from SSMS, from Visual Studio 2008 and

I
> > can create an ODBC datasource pointing to a database on the server and
> > test
> > succesfully the connection.
> >
> > I tried both with Integrated Security and username/password (which is
> > enabled on the server) without luck. I tried to disable the windows
> > firewall,
> > it didn't help either.

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Studio .NET 2005 WebParts can't connect to SQL Server 2005 XJ Microsoft ASP .NET 8 7th Jan 2008 08:51 AM
Unable to connect to local SQL 2005 Database =?Utf-8?B?UGhpbA==?= Microsoft Outlook BCM 1 26th Apr 2007 09:08 PM
Connect to SQL 2005 database on local network fails Gary W. Smith Microsoft Dot NET Compact Framework 10 27th Oct 2006 04:32 AM
!!HELP!!! Cannot connect to Exchange Server from a RDP, ICA session or server local machine AllenM Microsoft Outlook 0 11th May 2006 10:14 PM
Cannot connect to Exchange Server from a RDP, ICA session or from server local machine AllenM Microsoft Outlook Discussion 0 10th May 2006 05:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:01 AM.