How to use dplyr tbl on a SQL Server non-standard schema table

前端 未结 1 691
旧巷少年郎
旧巷少年郎 2020-12-31 20:34

My question is how can I use dplyr functions, such as tbl, on SQL Server tables that do not use the default \"dbo\" schema?

For more contex

1条回答
  •  再見小時候
    2020-12-31 21:15

    You can use dbplyr::in_schema.

    In your case:

    dplyr::tbl(con, dbplyr::in_schema("abc", "mytable1"))
    

    0 讨论(0)
提交回复
热议问题