r - Truncation of database name and columns while connecting to SQL database from R
问题描述
I am on macOS Catalina (Version 10.15.1), running R 3.5.0. I am running SQL server on Docker locally. For connecting to the server, I am using odbc
:
con <- dbConnect(odbc(),
Driver = "Simba SQL Server ODBC Driver",
Server = "localhost",
UID = 'SA',
PWD = 'XXXXXXXX',
database = dbname)
I am able to connect to the server, however the names of all the databases therein are getting truncated to just the first letter as shown here:
Subsequently all the character columns are also showing only the first letter.
I had a look at this, but just can't figure out why this is happening. For starters, the names of the databases itself, as shown in the RStudio Connections pane, are getting truncated.
I am able to connect to the databases using Azure Data Studio and see all the columns correctly.
解决方案
我看了看,结果发现这正是我所面临的。按照此处提到的步骤解决问题。
推荐阅读
- php - 隐藏特定页面 WooCommerce 描述和附加信息和评论选项卡使用 Wordpress 自定义字段
- javascript - 获取值为数组的对象数组中的所有键
- python - 如何将我的代码放在 Python 中?
- node.js - .js 被绕过并转到 .ejs Node.js Express 路由器
- mariadb - 是否有一种有效、可靠的方法来确定 mysql 中表集合的最后更新时间?
- swift - 数组洗牌(使用:RandomNumberGenerator)奇怪的行为
- android - 在 Android 应用程序中使用 AsyncTask 在 for 循环期间更新 ProgressBar
- swift - macOS Catalyst configurationForConnecting UISceneSession 委托函数并不总是在应用启动时调用
- javascript - 嵌套承诺 - 地图函数内的地图函数
- javascript - 角度数据同步问题