Re: VB AND MS SQL 2000 REMOTE CONNECTIVITY

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I use ADO.
With ADO, I use ADO COnnection Strings (no need for ODBC
configuration).

Example of an ado connecion string to a remote server:
Provider=SQLOLEDB.1;Data Source=82.84.25.67;
In this case, the user would be asked for an SQL username and
password, but you can also provide it in the connection string.

The server has to have TCP/IP protocol enabled (using SQL Server
Network Utility). The above string assumes you are using the default
TCP/IP port for SQL Server, but you can also configure it for another
port. For example, port 3456:
Provider=SQLOLEDB.1;Data Source=82.84.25.67,3456;

Your firewall would have to open that port (1433 is the default one).

All the best,
JOEL

On Feb 12, 7:46 am, psi...@xxxxxxxxxxxxxxxx wrote:
hi,

i have a vb 6 application running on LAN using ODBC. Now i want to
deploy it to a remote machine.

Now my problem is.
what is the best connectivity to use.
should i use odbc or which?. does any one have a solution for this?

Thanks

Pius


.



Relevant Pages

  • Re: SQL Membership Provider - should this be encrypted in web.config
    ... Connection strings which contain passwords? ... Server is really local, as they will try to hack there. ... If I saw ZeusConnectionString for an app named MotorcycleSales, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Named instance, no default instance -> connection problems?
    ... > I have the following problem with deployment of MSDE. ... for the server name. ... Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" ...
    (microsoft.public.sqlserver.msde)
  • Re: MFC with SQL?
    ... This version of MFC have two database classes CDatabase and CDaoDatabase. ... He also have an article "ADO Connection Strings" that shows how the ...
    (microsoft.public.vc.mfc)
  • Re: connect to named instance w/ non-default port
    ... An error has occurred while establishing a connection to the server. ... under the default settings SQL Server does not allow remote connections. ... the following connection strings do not work. ...
    (microsoft.public.sqlserver.connect)
  • Re: MSDE 2000 with VB6 is slow unless logged on as Administrator
    ... It was apparently because I'm using as the server ... I will also be fixing up my connection strings as well. ... > Have a look at the SQL Server strings at ... > connection strings with SQL Security Authentification versus NT ...
    (microsoft.public.data.ado)