s-news
[Top] [All Lists]

Re: [S] OdbcConnection parameter in import.data function.

To: "S-List" <s-news@wubios.wustl.edu>, <frank@ssabsa.sa.gov.au>
Subject: Re: [S] OdbcConnection parameter in import.data function.
From: "Norm Olsen" <normo@ratfish.pbs.dfo.ca>
Date: Wed, 22 Jul 1998 09:40:56 -0700
Cc: "Renaud LANCELOT" <lancelot@telecomplus.sn>
Sender: owner-s-news@wubios.wustl.edu
Thanks to Frank Biedermann for providing an answer to my question about the
OdbcConnection parameter of the import.data function.  His connect string
works nicely except that, when I connect to Microsoft SQL Server, I must
also supply the data source name in the connect string.  I don't know if
this is also true for other types of ODBC connections.  Anyway, here is an
example of a complete "import.data" call that works using an ODBC connection
to Microsoft SQL Server:

import.data(FileName="Observer",
    FileType="ODBC",
    DataFrame="SlopeRockfish",

OdbcConnection="ODBC;DATABASE=Observer;UID=olsenn;PWD=secret;DSN=Observer",
    OdbcSqlQuery="Select * from slope_rockfish_1998")

As Frank points out, it would be nice to know how to provide the encrypted
string in order to conceal user ids and passwords.

Regards,
Norm

-----Original Message-----
From: Frank Biedermann <frank@ssabsa.sa.gov.au>
To: 's-news' <s-news@wubios.wustl.edu>
Date: Tuesday, July 21, 1998 10:17 PM
Subject: RE: [S] OdbcConnection parameter in import.data function.


>On Wednesday, July 22, 1998 3:27 AM, Norm Olsen
>[SMTP:olsenn@ratfish.pbs.dfo.ca] wrote:
>> Hi all,
>>
>> Does anyone know how to use the "OdbcConnection" parameter of the
>> "import.data" function when connecting to ODBC data sources?  The S-PLUS
>> Programmer's Guide states that this is an encrypted character string
>> (presumably specifying the server, user id, password, etc.) but no clue
is
>> offered as to how to obtain this encryption.
>>
>
>Norm,
>
>I had the same question a few months ago, however I did not get any
answers.
>The password string does not need to be encrypted - I've tried it and it
>doesn't
>seem to mind, however, it would be nice if someone who knows how to
>encrypt it would share the secret.
>
>BTW, in case you didn't know, the connect string should be of the form:
>
>"ODBC;DATABASE=dbname;UID=username;PWD=password;"
>
>Regards,
>
>Frank Biedermann
>Research Officer (Statistics)
>Senior Secondary Assessment Board of South Australia
>ph: (+61) 8 8372 7439
>fax: (+61) 8 8372 7438
>e-mail: frank@ssabsa.sa.gov.au


-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>