dbhandle< - odbcDriverConnect(connection="Driver={SQL Server};server=xx.xxx.xx.xxx;database=Data;trusted_connection = false;uid = 1234; pwd = 1234")
我使用上面的字符串从R连接到SQL,但我收到以下错误 -
警告讯息: 1:
在odbcDriverConnect中(connection =“Driver = {SQL Server}; serverserver = xx.xxx.xx.xxx; database = Data; trusted_connection = 假; uid = 1234; pwd = 1234“):[RODBC]错误:状态28000,代码 18452,消息[Microsoft] [ODBC SQL Server驱动程序] [SQL Server]登录 失败。登录来自不受信任的域,不能与Windows身份验证一起使用。
2:odbcDriverConnect(connection = "Driver={SQL Server};server=server=xx.xxx.xx.xxx;database=Data;trusted_connection = false;uid = 1234; pwd = 1234")
:
[RODBC]错误:状态01S00,代码0,消息[Microsoft] [ODBC SQL 服务器驱动程序]无效的连接字符串属性
3:odbcDriverConnect(connection = "Driver={SQL Server};server=server=xx.xxx.xx.xxx;database=Data;trusted_connection = false;uid = 1234; pwd = 1234")
:
ODBC连接失败
答案 0 :(得分:0)
也许这个?
服务器=服务器=
重复“server =”
只是一个猜测