Skip to Content.
Sympa Menu

freetds - RE: [freetds] tsql database name

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Bort, Paul" <pbort AT tmwsystems.com>
  • To: 'FreeTDS Development Group' <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] tsql database name
  • Date: Fri, 23 Jul 2004 11:40:12 -0400

After you connect you can issue the command

use foo;

To connect to the database 'foo'. I do this with Perl and DBD::Sybase so
that my users don't have to know about configuration files.

Hope this helps.

Paul

> -----Original Message-----
> From: Fabrizio Taretto [mailto:fabrizio.taretto AT sinedita.it]
> Sent: Friday, July 23, 2004 11:33 AM
> To: FreeTDS Development Group
> Subject: [freetds] tsql database name
>
>
> Hi All,
>
> anyone can tell me if ther is a command to select a database
> usig tsql
> example.
> I do the connection with command
>
> ./tsql "Hostname", port, "username", "password"
>
> but i can't choose the database name and I'm always connected to the
> first alphabetical database of the server.
>
> I don't use an odbc.ini file.
>
> Regards
> Fabrizio
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>




Archive powered by MHonArc 2.6.24.

Top of Page