PC Review


Reply
Thread Tools Rate Thread

Connect to SQL Server from A2k

 
 
Anand
Guest
Posts: n/a
 
      17th Aug 2009
Hi,
I am trying to use an A2k ADP with SQL Server 2005 installed on a remote
machine. I need to know:

Is it possible to connect to SQL Server 2005 through A2k or do I need a
higher version of Access

If it is possible, then why am I getting a 'Server does not exist/access
denied' error message in the Data Link properties. Following configs are made:
In SQL server Windows Authentication is enabled. My win Login account is
added for Server and DB login. Server is configured to accept remote
connections thru TCP/IP and named pipes. I have admin access to the LAN.

The data link page shows only name of the server machine and not the SQL
server. Shows only ABHATTA in the drop down list whereas the server name
appears as ABHATTA\SQLEXPRESS when I login at the Server machine. Server
machine runs Win vista.

Am I missing something here?

TIA

Anand
 
Reply With Quote
 
 
 
 
Sylvain Lafontaine
Guest
Posts: n/a
 
      17th Aug 2009
For connecting to a remote machine, usually you cannot use a windows Login
account to connect; so you should use a sql-server login account instead.
(Technically, it's possible to use a Login account for remote access but
it's more or less difficult to configure this and I won't suggest/recommand
it because it's unstable.).

Using a sql-login account require the SQL-Server Mixed Mode Authentication
mode enabled instead of the exclusive Windows Authentication mode. You must
also create a sql-server login account.

You must use ABHATTA\SQLEXPRESS as the server address.

Also, it's very likely that you'll be blocked by the firewall: make sure
that the port 1433/1434 are opened. As it's a named instance, SQL-Server
will use another port (dynamically allocated) to connect; this will be
permitted by some firewall and not by others; so you might have to
reconfigure the instance to use a fixed port instead and open it through the
firewall.

Finally, I don't suggest to use ADP 2000 as this version is full of bugs.
Use ADP2003 instead as the first choice or ADP 2007 as the second choice.

--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam please)
Independent consultant and remote programming for Access and SQL-Server
(French)


"Anand" <(E-Mail Removed)> wrote in message
news:4531528F-ED8E-46E3-B38C-(E-Mail Removed)...
> Hi,
> I am trying to use an A2k ADP with SQL Server 2005 installed on a remote
> machine. I need to know:
>
> Is it possible to connect to SQL Server 2005 through A2k or do I need a
> higher version of Access
>
> If it is possible, then why am I getting a 'Server does not exist/access
> denied' error message in the Data Link properties. Following configs are
> made:
> In SQL server Windows Authentication is enabled. My win Login account is
> added for Server and DB login. Server is configured to accept remote
> connections thru TCP/IP and named pipes. I have admin access to the LAN.
>
> The data link page shows only name of the server machine and not the SQL
> server. Shows only ABHATTA in the drop down list whereas the server name
> appears as ABHATTA\SQLEXPRESS when I login at the Server machine. Server
> machine runs Win vista.
>
> Am I missing something here?
>
> TIA
>
> Anand



 
Reply With Quote
 
Anand
Guest
Posts: n/a
 
      19th Aug 2009
Hi Sylvain,
Thanks for the inputs. Have tried the following but with no success:
-Have enabled multi mode security in the SQL server.
-Have set SQL Server to listen on fixed port 49172 through the TCP settings
of the Server config manager. The event log on Windows mentions SQL Server is
listening on TCP port 49172. Have punched a hole in the Server Firewall for
the said port.

-User sa configured in SQL Server with a blank pwd.
-Can connect to the Server through Access FE on the server machine. For the
local machine both Win Integrated and SQL security is able to establish the
connection.

-With a remote computer the same settings as in the server machine results
in the Access Denied/Server does not exist error. I also dont see the
Abhatta\SQLExpress name of the server in the Datalink page of the remote
machine - I just see the Abhatta name.

I tried to browse to the location http://192.168.0.221:49172 through
Internet Explorer but get a webpage not found error.
My LAN has a proxy server enabled for Internet access. Could this be causing
the problem. Can a A2k ADP connect at all to SQL Server 2005?

Can you pls help.

TIA
Anand.

"Sylvain Lafontaine" wrote:

> For connecting to a remote machine, usually you cannot use a windows Login
> account to connect; so you should use a sql-server login account instead.
> (Technically, it's possible to use a Login account for remote access but
> it's more or less difficult to configure this and I won't suggest/recommand
> it because it's unstable.).
>
> Using a sql-login account require the SQL-Server Mixed Mode Authentication
> mode enabled instead of the exclusive Windows Authentication mode. You must
> also create a sql-server login account.
>
> You must use ABHATTA\SQLEXPRESS as the server address.
>
> Also, it's very likely that you'll be blocked by the firewall: make sure
> that the port 1433/1434 are opened. As it's a named instance, SQL-Server
> will use another port (dynamically allocated) to connect; this will be
> permitted by some firewall and not by others; so you might have to
> reconfigure the instance to use a fixed port instead and open it through the
> firewall.
>
> Finally, I don't suggest to use ADP 2000 as this version is full of bugs.
> Use ADP2003 instead as the first choice or ADP 2007 as the second choice.
>
> --
> Sylvain Lafontaine, ing.
> MVP - Windows Live Platform
> Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam please)
> Independent consultant and remote programming for Access and SQL-Server
> (French)
>
>
> "Anand" <(E-Mail Removed)> wrote in message
> news:4531528F-ED8E-46E3-B38C-(E-Mail Removed)...
> > Hi,
> > I am trying to use an A2k ADP with SQL Server 2005 installed on a remote
> > machine. I need to know:
> >
> > Is it possible to connect to SQL Server 2005 through A2k or do I need a
> > higher version of Access
> >
> > If it is possible, then why am I getting a 'Server does not exist/access
> > denied' error message in the Data Link properties. Following configs are
> > made:
> > In SQL server Windows Authentication is enabled. My win Login account is
> > added for Server and DB login. Server is configured to accept remote
> > connections thru TCP/IP and named pipes. I have admin access to the LAN.
> >
> > The data link page shows only name of the server machine and not the SQL
> > server. Shows only ABHATTA in the drop down list whereas the server name
> > appears as ABHATTA\SQLEXPRESS when I login at the Server machine. Server
> > machine runs Win vista.
> >
> > Am I missing something here?
> >
> > TIA
> >
> > Anand

>
>
>

 
Reply With Quote
 
Anand
Guest
Posts: n/a
 
      19th Aug 2009
Update on my following post:
I can establish the connection remotely if I turn Off (temporarily) the
Firewall on the server machine.

Anand

"Anand" wrote:

> Hi Sylvain,
> Thanks for the inputs. Have tried the following but with no success:
> -Have enabled multi mode security in the SQL server.
> -Have set SQL Server to listen on fixed port 49172 through the TCP settings
> of the Server config manager. The event log on Windows mentions SQL Server is
> listening on TCP port 49172. Have punched a hole in the Server Firewall for
> the said port.
>
> -User sa configured in SQL Server with a blank pwd.
> -Can connect to the Server through Access FE on the server machine. For the
> local machine both Win Integrated and SQL security is able to establish the
> connection.
>
> -With a remote computer the same settings as in the server machine results
> in the Access Denied/Server does not exist error. I also dont see the
> Abhatta\SQLExpress name of the server in the Datalink page of the remote
> machine - I just see the Abhatta name.
>
> I tried to browse to the location http://192.168.0.221:49172 through
> Internet Explorer but get a webpage not found error.
> My LAN has a proxy server enabled for Internet access. Could this be causing
> the problem. Can a A2k ADP connect at all to SQL Server 2005?
>
> Can you pls help.
>
> TIA
> Anand.
>
> "Sylvain Lafontaine" wrote:
>
> > For connecting to a remote machine, usually you cannot use a windows Login
> > account to connect; so you should use a sql-server login account instead.
> > (Technically, it's possible to use a Login account for remote access but
> > it's more or less difficult to configure this and I won't suggest/recommand
> > it because it's unstable.).
> >
> > Using a sql-login account require the SQL-Server Mixed Mode Authentication
> > mode enabled instead of the exclusive Windows Authentication mode. You must
> > also create a sql-server login account.
> >
> > You must use ABHATTA\SQLEXPRESS as the server address.
> >
> > Also, it's very likely that you'll be blocked by the firewall: make sure
> > that the port 1433/1434 are opened. As it's a named instance, SQL-Server
> > will use another port (dynamically allocated) to connect; this will be
> > permitted by some firewall and not by others; so you might have to
> > reconfigure the instance to use a fixed port instead and open it through the
> > firewall.
> >
> > Finally, I don't suggest to use ADP 2000 as this version is full of bugs.
> > Use ADP2003 instead as the first choice or ADP 2007 as the second choice.
> >
> > --
> > Sylvain Lafontaine, ing.
> > MVP - Windows Live Platform
> > Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam please)
> > Independent consultant and remote programming for Access and SQL-Server
> > (French)
> >
> >
> > "Anand" <(E-Mail Removed)> wrote in message
> > news:4531528F-ED8E-46E3-B38C-(E-Mail Removed)...
> > > Hi,
> > > I am trying to use an A2k ADP with SQL Server 2005 installed on a remote
> > > machine. I need to know:
> > >
> > > Is it possible to connect to SQL Server 2005 through A2k or do I need a
> > > higher version of Access
> > >
> > > If it is possible, then why am I getting a 'Server does not exist/access
> > > denied' error message in the Data Link properties. Following configs are
> > > made:
> > > In SQL server Windows Authentication is enabled. My win Login account is
> > > added for Server and DB login. Server is configured to accept remote
> > > connections thru TCP/IP and named pipes. I have admin access to the LAN.
> > >
> > > The data link page shows only name of the server machine and not the SQL
> > > server. Shows only ABHATTA in the drop down list whereas the server name
> > > appears as ABHATTA\SQLEXPRESS when I login at the Server machine. Server
> > > machine runs Win vista.
> > >
> > > Am I missing something here?
> > >
> > > TIA
> > >
> > > Anand

> >
> >
> >

 
Reply With Quote
 
Sylvain Lafontaine
Guest
Posts: n/a
 
      19th Aug 2009
Well, if you can connect by turning Off the Firewall, then there is it;
although I'm not sure what you mean with "temporarily". You should add the
port address after the server address (without the instance name?),
separated by a comma (",") and not by two points (":"). You can also add
the prefix tcp: before the address.

A good idea would be to define an alias for the SQL-Server (SQL Server
Configuration Manager | SQL Native Client Configuration | Aliases) and use
it instead.

Also, I don't understand why you try to use the address 192.168.0.221; as
this is not a remote address. Are you on a VPN?

--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam please)
Independent consultant and remote programming for Access and SQL-Server
(French)


"Anand" <(E-Mail Removed)> wrote in message
news:5E748B93-4744-4BE4-B690-(E-Mail Removed)...
> Update on my following post:
> I can establish the connection remotely if I turn Off (temporarily) the
> Firewall on the server machine.
>
> Anand
>
> "Anand" wrote:
>
>> Hi Sylvain,
>> Thanks for the inputs. Have tried the following but with no success:
>> -Have enabled multi mode security in the SQL server.
>> -Have set SQL Server to listen on fixed port 49172 through the TCP
>> settings
>> of the Server config manager. The event log on Windows mentions SQL
>> Server is
>> listening on TCP port 49172. Have punched a hole in the Server Firewall
>> for
>> the said port.
>>
>> -User sa configured in SQL Server with a blank pwd.
>> -Can connect to the Server through Access FE on the server machine. For
>> the
>> local machine both Win Integrated and SQL security is able to establish
>> the
>> connection.
>>
>> -With a remote computer the same settings as in the server machine
>> results
>> in the Access Denied/Server does not exist error. I also dont see the
>> Abhatta\SQLExpress name of the server in the Datalink page of the remote
>> machine - I just see the Abhatta name.
>>
>> I tried to browse to the location http://192.168.0.221:49172 through
>> Internet Explorer but get a webpage not found error.
>> My LAN has a proxy server enabled for Internet access. Could this be
>> causing
>> the problem. Can a A2k ADP connect at all to SQL Server 2005?
>>
>> Can you pls help.
>>
>> TIA
>> Anand.
>>
>> "Sylvain Lafontaine" wrote:
>>
>> > For connecting to a remote machine, usually you cannot use a windows
>> > Login
>> > account to connect; so you should use a sql-server login account
>> > instead.
>> > (Technically, it's possible to use a Login account for remote access
>> > but
>> > it's more or less difficult to configure this and I won't
>> > suggest/recommand
>> > it because it's unstable.).
>> >
>> > Using a sql-login account require the SQL-Server Mixed Mode
>> > Authentication
>> > mode enabled instead of the exclusive Windows Authentication mode. You
>> > must
>> > also create a sql-server login account.
>> >
>> > You must use ABHATTA\SQLEXPRESS as the server address.
>> >
>> > Also, it's very likely that you'll be blocked by the firewall: make
>> > sure
>> > that the port 1433/1434 are opened. As it's a named instance,
>> > SQL-Server
>> > will use another port (dynamically allocated) to connect; this will be
>> > permitted by some firewall and not by others; so you might have to
>> > reconfigure the instance to use a fixed port instead and open it
>> > through the
>> > firewall.
>> >
>> > Finally, I don't suggest to use ADP 2000 as this version is full of
>> > bugs.
>> > Use ADP2003 instead as the first choice or ADP 2007 as the second
>> > choice.
>> >
>> > --
>> > Sylvain Lafontaine, ing.
>> > MVP - Windows Live Platform
>> > Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam
>> > please)
>> > Independent consultant and remote programming for Access and SQL-Server
>> > (French)
>> >
>> >
>> > "Anand" <(E-Mail Removed)> wrote in message
>> > news:4531528F-ED8E-46E3-B38C-(E-Mail Removed)...
>> > > Hi,
>> > > I am trying to use an A2k ADP with SQL Server 2005 installed on a
>> > > remote
>> > > machine. I need to know:
>> > >
>> > > Is it possible to connect to SQL Server 2005 through A2k or do I need
>> > > a
>> > > higher version of Access
>> > >
>> > > If it is possible, then why am I getting a 'Server does not
>> > > exist/access
>> > > denied' error message in the Data Link properties. Following configs
>> > > are
>> > > made:
>> > > In SQL server Windows Authentication is enabled. My win Login account
>> > > is
>> > > added for Server and DB login. Server is configured to accept remote
>> > > connections thru TCP/IP and named pipes. I have admin access to the
>> > > LAN.
>> > >
>> > > The data link page shows only name of the server machine and not the
>> > > SQL
>> > > server. Shows only ABHATTA in the drop down list whereas the server
>> > > name
>> > > appears as ABHATTA\SQLEXPRESS when I login at the Server machine.
>> > > Server
>> > > machine runs Win vista.
>> > >
>> > > Am I missing something here?
>> > >
>> > > TIA
>> > >
>> > > Anand
>> >
>> >
>> >



 
Reply With Quote
 
 
 
Reply

« c | Re: »
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
IMAP server cannot connect to IMAP server, Connect error 10061 BobW Windows Vista Mail 2 7th Jan 2009 12:56 AM
Connect SQL server via USB give "Server does not exist or access denied" after few succeful connect. but always work wireless Vincent Microsoft Dot NET Compact Framework 4 5th Sep 2006 01:51 AM
How do i change this connect string to support a SQL Server 2000 running on port 8832 User ID=car;Password=rat;Server=abc.def.hij;Initial Catalog=foobar i tried Server=abc.def.hij:8823 and Server=abc.def.hij;port=8823 neither of these work Daniel Microsoft Dot NET Framework 1 16th Dec 2004 09:55 PM
Can connect to Internet - can't connect to server Kristian Wentzel Windows XP Internet Explorer 2 23rd Sep 2004 01:54 PM
Can't connect to Internet thru router - can't connect to DHCP server. Madison Lapierre Windows XP General 0 14th Mar 2004 10:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:07 AM.