s-news
[Top] [All Lists]

conecting to a SQL Server 2005 using ODBC drivers

To: s-news@lists.biostat.wustl.edu
Subject: conecting to a SQL Server 2005 using ODBC drivers
From: Matthew Rodriguez DSD staff <MKRodriguez@lbl.gov>
Date: Fri, 08 Sep 2006 13:55:06 -0700
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050715)
Greetings,

I am using
version: S-plus version 7.06
client machine: Windows XP
DBMS and Server OS: SQL Server 2005, Windows Server 2003

I've been trying to connect to a database using a ODBC driver I have been
unable to do this through the GUI. Has anyone else had success Importing Data through the GUI? The funny thing is when I'm going through the creating a Data Source, and building an ODBC connection, I am able to connect to SQL Server, but in the end after configuring the Data Source
it is not created. I suspect there is a bug in the GUI code.


Here are the arguments to the importData call, the call is successful it returns the contents of a datumtype
table.

importData(file="data.txt", type="ODBC", server="pod.lbl.gov", database="ORNL", table="datumtype", odbcConnection="Driver={SQL Native Client}; Server=pod.lbl.gov;Database=ORNL;UID=mkr;PWD=mypwd")


This is not quite ideal because I want to be able to do this without putting my password in the script. I'd like it to
prompt for my password, but I don't know if this is possible.

If anybody has had any experience with this, please let me know.


Thanks,
Matt Rodriguez

--
---------------------------------------------------------- Matt Rodriguez email: MKRodriguez@lbl.gov
phone: (510) 486-4183
URL: http://dsd.lbl.gov/~mateo

Distributed Systems Department
Lawrence Berkeley National Laboratory


<Prev in Thread] Current Thread [Next in Thread>
  • conecting to a SQL Server 2005 using ODBC drivers, Matthew Rodriguez DSD staff <=