I'm trying this simple script.
library(RODBC)
channel <- odbcDriverConnect("driver={SQL Server};server=ServerName;database=TestDB;uid=;pwd=")
initdata<- sqlQuery(channel,paste("select * from MyTable;"))
odbcClose(channel)
There is no uid or password on my DB.
I keep getting this error:
Connection failed: SQL State: '01000' SQL Server Error: 53 SQL State: '08001' SQL Server Error: 17 Server does not exist or access denied.
There must be some setting that's off, right? I know my SQL Server is working fine, and I can connect to it using several other technologies (Excel, Access, VB.NET, & C#). I guess there is some configuration in R that's not quite right.
How can I get this working?