RE: Remote Login, using dbi:ODBC



If you really need to log into Access remotely, check out DBD::Proxy on CPAN.

Ted

> -----Original Message-----
> From: Jeff Urlwin [mailto:jurlwin@xxxxxxxxxxxx]
> Sent: Monday, October 24, 2005 12:22 PM
> To: richard@xxxxxxxxxx; dbi-users@xxxxxxxx
> Subject: RE: Remote Login, using dbi:ODBC
>
>
> This really isn't a perl/dbi issue. If it's an MS access
> database, you
> need to be able to access the MDB file itself. Thus, there is no
> server/port, etc.
>
> Jeff
>
>
> -----Original Message-----
> From: Richard [mailto:rjones@xxxxxxxxxx]
> Sent: Sunday, October 23, 2005 2:33 AM
> To: dbi-users@xxxxxxxx
> Subject: Remote Login, using dbi:ODBC
> Importance: High
>
> I login to my remote mysql databases, using perl, this way:
>
>
>
>
>
>
>
> sub ConnectToDB
>
> {
>
> my $host_name = "01.002.003.04";# Ip Address Here
>
> my $db_name = "DataBaseName"; # Database Name to
> connect to
>
> my $dsn = "DBI:mysql:host=$host_name;database=$db_name";
>
> return (DBI->connect ($dsn, "usernameHere",
> "PasswordHere",
>
>
> {PrintError => 0, RaiseError => 1}));
>
> }
>
>
>
> So, to connect to a Remote Access Database, can I use this:
>
>
>
>
>
> sub ConnectToDB
>
> {
>
> my $host_name = "002.003.004.05";
>
> my $db_name = "DBName";
>
> my $dsn =
> "dbi:ODBC:Clients:host=$host_name;database=$db_name";
>
> return (DBI->connect ($dsn, "UserNameHere",
> "PassWordHere")); #
> Clients being the name I set in the Windows Data Sources (ODBC)
>
> }
>
>
>
>
>
> Is that how I would connect to this database?
>
>
>
> I would appreciate any help you could give me.
>
>
>
> Thanks!
>
> Richard
>
>
>
>
.



Relevant Pages

  • Challenging ADO.NET situation (long)
    ... need to import those records into the local database. ... depending on a "type" column in the master (ie some records ... independantly, but data is always transfered from remote to local, not the ...
    (microsoft.public.dotnet.framework.adonet)
  • RE: Challenging ADO.NET situation (long)
    ... need to import those records into the local database. ... depending on a "type" column in the master (ie some records ... independantly, but data is always transfered from remote to local, not the ...
    (microsoft.public.dotnet.framework.adonet)
  • A Way Forward?
    ... Lets say that the remote databases have an autonumber for the local computer ... reference ID in the Procurement and Purchase Order table AND another column ... but this database design seems to be a very complex problem. ... Setting incremental numbering based on Australian FY set ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Please help with remote access to FM Pro Server 7
    ... But if it is to access a database from a remote location, ... - both local and remote computers are simply connected to internet. ... on the local network. ...
    (comp.databases.filemaker)
  • Re: Help on performance question
    ... from the remote DB in a second dataset. ... database and cannot change any structure. ... I have been told that retriveind requested data in an SQL querry is faster ...
    (microsoft.public.dotnet.framework.adonet)