PC Review


Reply
Thread Tools Rate Thread

Connection string problems

 
 
J E Jensen
Guest
Posts: n/a
 
      8th Jan 2010
Hello NG

In a rather old database we have made a function to create a link between
the database and a database stored on a SQL server.

The the function hangs if i am using a server with multiple instances of sql
servers.

ODBC;DRIVER={SQL
Server};SERVER=SqlServerName;DATABASE=MyDatabase;UID=sa;PWD=wrong;APP=The
Application (Jet Link)

The SqlServerName can't use the format SERVER\INSTANCE the connection is
made by using:
Dim dbSrc As Database
Set dbSrc = OpenDatabase("", dbDriverCompleteRequired, False, Cn)

Can anyone give me a hint to solve this?

Kind regards

J Jensen


 
Reply With Quote
 
 
 
 
Sylvain Lafontaine
Guest
Posts: n/a
 
      8th Jan 2010
Strange that something like SERVER=SqlServerName\Instance doesn't work. One
possibility would be that SqlServerName is an Alias; if not, then creating
an Alias should solve the problem. Look under the various configuration
tools of SQL-Server to create such an Alias on the client side. You don't
say what version of SQL-Server you are using, so I cannot be more specific.

Using an ODBC Provider more recent than the current one that you are using -
such as the Native ODBC Provider for SQL-Server - might also help. Search
the web for "Connection String" to know how to change the provided.

You might also be hit by a firewall problem as using an instance will change
the used port for the TCP/IP connection.

--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Blog/web site: http://coding-paparazzi.sylvainlafontaine.com
Independent consultant and remote programming for Access and SQL-Server
(French)


"J E Jensen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello NG
>
> In a rather old database we have made a function to create a link between
> the database and a database stored on a SQL server.
>
> The the function hangs if i am using a server with multiple instances of
> sql servers.
>
> ODBC;DRIVER={SQL
> Server};SERVER=SqlServerName;DATABASE=MyDatabase;UID=sa;PWD=wrong;APP=The
> Application (Jet Link)
>
> The SqlServerName can't use the format SERVER\INSTANCE the connection is
> made by using:
> Dim dbSrc As Database
> Set dbSrc = OpenDatabase("", dbDriverCompleteRequired, False, Cn)
>
> Can anyone give me a hint to solve this?
>
> Kind regards
>
> J Jensen
>



 
Reply With Quote
 
J E Jensen
Guest
Posts: n/a
 
      11th Jan 2010
Hello Sylvain

Thanks for the reply.

The server is SQL Server 2005.
If i use the Data Link Properties dialog an fill out the informations every
thing works ok. So my Client can see the SQL server just fine.

Kind regards

J Jensen

"Sylvain Lafontaine" <(E-Mail Removed)> wrote in message
news:eYAa$(E-Mail Removed)...
> Strange that something like SERVER=SqlServerName\Instance doesn't work.
> One possibility would be that SqlServerName is an Alias; if not, then
> creating an Alias should solve the problem. Look under the various
> configuration tools of SQL-Server to create such an Alias on the client
> side. You don't say what version of SQL-Server you are using, so I cannot
> be more specific.
>
> Using an ODBC Provider more recent than the current one that you are
> using - such as the Native ODBC Provider for SQL-Server - might also help.
> Search the web for "Connection String" to know how to change the provided.
>
> You might also be hit by a firewall problem as using an instance will
> change the used port for the TCP/IP connection.
>
> --
> Sylvain Lafontaine, ing.
> MVP - Windows Live Platform
> Blog/web site: http://coding-paparazzi.sylvainlafontaine.com
> Independent consultant and remote programming for Access and SQL-Server
> (French)
>
>
> "J E Jensen" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hello NG
>>
>> In a rather old database we have made a function to create a link between
>> the database and a database stored on a SQL server.
>>
>> The the function hangs if i am using a server with multiple instances of
>> sql servers.
>>
>> ODBC;DRIVER={SQL
>> Server};SERVER=SqlServerName;DATABASE=MyDatabase;UID=sa;PWD=wrong;APP=The
>> Application (Jet Link)
>>
>> The SqlServerName can't use the format SERVER\INSTANCE the connection is
>> made by using:
>> Dim dbSrc As Database
>> Set dbSrc = OpenDatabase("", dbDriverCompleteRequired, False, Cn)
>>
>> Can anyone give me a hint to solve this?
>>
>> Kind regards
>>
>> J Jensen
>>

>
>



 
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
Re: Connection string problems using hexadecimal characters Rad [Visual C# MVP] Microsoft ADO .NET 2 29th Dec 2006 12:45 AM
Problems with my SQL Server connection string =?Utf-8?B?U0FM?= Microsoft C# .NET 2 18th Sep 2006 03:35 PM
VS 2005 Connection String Problems =?Utf-8?B?RHVhbmU=?= Microsoft ADO .NET 4 12th Jun 2006 09:02 AM
connection string problems with connectionString property of web.config Brian Henry Microsoft ASP .NET 1 4th May 2006 04:47 AM
Connection string causes "identity" problems =?Utf-8?B?TWF1cnkgTWFya293aXR6?= Microsoft Access 0 20th May 2005 03:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:44 AM.