Skip to main content
deleted 38 characters in body
Source Link
M--
  • 33.6k
  • 12
  • 74
  • 115

From R Studio's ODBC database documentationODBC database documentation I can see a simple example of how to read a SQL table into an R data frame:

nest tablenested table

The BGBUref data frame will come up in R Studio if I click on the little spreadsheet icon. I just can't figure out how to get it into a defined data frame, in my case df.


Here's the output when I run these commands:

df <- dbReadTable(con, "QnRStore") #> Error: <SQL> 'SELECT * FROM "QnRStore"' #> nanodbc/nanodbc.cpp:1587: 42S02: [Microsoft][ODBC Driver 17 for SQL #> Server][SQL Server]Invalid object name 'QnRStore'. 

and:

dbListTables(con) #> [1] "spt_fallback_db" #> [2] "spt_fallback_dev" #> [3] "spt_fallback_usg" #> [4] "spt_monitor" #> [5] "trace_xe_action_map" #> [6] "trace_xe_event_map" #> [7] "spt_values" #> [8] "CHECK_CONSTRAINTS" #> [9] "COLUMN_DOMAIN_USAGE" #> [10] "COLUMN_PRIVILEGES" #> ... #> [650] "xml_schema_types" #> [651] "xml_schema_wildcard_namespaces" #> [652] "xml_schema_wildcards" 

From R Studio's ODBC database documentation I can see a simple example of how to read a SQL table into an R data frame:

nest table

The BGBUref data frame will come up in R Studio if I click on the little spreadsheet icon. I just can't figure out how to get it into a defined data frame, in my case df.

From R Studio's ODBC database documentation I can see a simple example of how to read a SQL table into an R data frame:

nested table

The BGBUref data frame will come up in R Studio if I click on the little spreadsheet icon. I just can't figure out how to get it into a defined data frame, in my case df.


Here's the output when I run these commands:

df <- dbReadTable(con, "QnRStore") #> Error: <SQL> 'SELECT * FROM "QnRStore"' #> nanodbc/nanodbc.cpp:1587: 42S02: [Microsoft][ODBC Driver 17 for SQL #> Server][SQL Server]Invalid object name 'QnRStore'. 

and:

dbListTables(con) #> [1] "spt_fallback_db" #> [2] "spt_fallback_dev" #> [3] "spt_fallback_usg" #> [4] "spt_monitor" #> [5] "trace_xe_action_map" #> [6] "trace_xe_event_map" #> [7] "spt_values" #> [8] "CHECK_CONSTRAINTS" #> [9] "COLUMN_DOMAIN_USAGE" #> [10] "COLUMN_PRIVILEGES" #> ... #> [650] "xml_schema_types" #> [651] "xml_schema_wildcard_namespaces" #> [652] "xml_schema_wildcards" 
deleted 1318 characters in body
Source Link
Display name
  • 4.6k
  • 6
  • 44
  • 91

From R Studio's ODBC database documentationODBC database documentation I can see a simple example of how to read a SQL table into an R data frame:

nested tablenest table


Edit: Not sure if this is helpful but here's the output when I run these commands:

df <- dbReadTable(con, "QnRStore") #> Error: <SQL> 'SELECT * FROM "QnRStore"' #> nanodbc/nanodbc.cpp:1587: 42S02: [Microsoft][ODBC Driver 17 for SQL #> Server][SQL Server]Invalid object name 'QnRStore'. 

and:

dbListTables(con) #> [1] "spt_fallback_db" #> [2] "spt_fallback_dev" #> [3] "spt_fallback_usg" #> [4] "spt_monitor" #> [5] "trace_xe_action_map" #> [6] "trace_xe_event_map" #> [7] "spt_values" #> [8] "CHECK_CONSTRAINTS" #> [9] "COLUMN_DOMAIN_USAGE" #> [10] "COLUMN_PRIVILEGES" #> ... #> [650] "xml_schema_types" #> [651] "xml_schema_wildcard_namespaces" #> [652] "xml_schema_wildcards" 

From R Studio's ODBC database documentation I can see a simple example of how to read a SQL table into an R data frame:

nested table


Edit: Not sure if this is helpful but here's the output when I run these commands:

df <- dbReadTable(con, "QnRStore") #> Error: <SQL> 'SELECT * FROM "QnRStore"' #> nanodbc/nanodbc.cpp:1587: 42S02: [Microsoft][ODBC Driver 17 for SQL #> Server][SQL Server]Invalid object name 'QnRStore'. 

and:

dbListTables(con) #> [1] "spt_fallback_db" #> [2] "spt_fallback_dev" #> [3] "spt_fallback_usg" #> [4] "spt_monitor" #> [5] "trace_xe_action_map" #> [6] "trace_xe_event_map" #> [7] "spt_values" #> [8] "CHECK_CONSTRAINTS" #> [9] "COLUMN_DOMAIN_USAGE" #> [10] "COLUMN_PRIVILEGES" #> ... #> [650] "xml_schema_types" #> [651] "xml_schema_wildcard_namespaces" #> [652] "xml_schema_wildcards" 

From R Studio's ODBC database documentation I can see a simple example of how to read a SQL table into an R data frame:

nest table

added 914 characters in body
Source Link
Display name
  • 4.6k
  • 6
  • 44
  • 91

Edit: Not sure if this is helpful but here's the output when I run this commandthese commands:

df <- dbReadTable(con, "QnRStore") #> Error: <SQL> 'SELECT * FROM "QnRStore"' #> nanodbc/nanodbc.cpp:1587: 42S02: [Microsoft][ODBC Driver 17 for SQL #> Server][SQL Server]Invalid object name 'QnRStore'. 

and:

dbListTables(con) #> [1] "spt_fallback_db" #> [2] "spt_fallback_dev" #> [3] "spt_fallback_usg" #> [4] "spt_monitor" #> [5] "trace_xe_action_map" #> [6] "trace_xe_event_map" #> [7] "spt_values" #> [8] "CHECK_CONSTRAINTS" #> [9] "COLUMN_DOMAIN_USAGE" #> [10] "COLUMN_PRIVILEGES" #> ... #> [650] "xml_schema_types"   #> [651] "xml_schema_wildcard_namespaces" #> [652] "xml_schema_wildcards" 

Edit: Not sure if this is helpful but here's the output when I run this command:

df <- dbReadTable(con, "QnRStore") #> Error: <SQL> 'SELECT * FROM "QnRStore"' #> nanodbc/nanodbc.cpp:1587: 42S02: [Microsoft][ODBC Driver 17 for SQL #> Server][SQL Server]Invalid object name 'QnRStore'. 

Edit: Not sure if this is helpful but here's the output when I run these commands:

df <- dbReadTable(con, "QnRStore") #> Error: <SQL> 'SELECT * FROM "QnRStore"' #> nanodbc/nanodbc.cpp:1587: 42S02: [Microsoft][ODBC Driver 17 for SQL #> Server][SQL Server]Invalid object name 'QnRStore'. 

and:

dbListTables(con) #> [1] "spt_fallback_db" #> [2] "spt_fallback_dev" #> [3] "spt_fallback_usg" #> [4] "spt_monitor" #> [5] "trace_xe_action_map" #> [6] "trace_xe_event_map" #> [7] "spt_values" #> [8] "CHECK_CONSTRAINTS" #> [9] "COLUMN_DOMAIN_USAGE" #> [10] "COLUMN_PRIVILEGES" #> ... #> [650] "xml_schema_types"   #> [651] "xml_schema_wildcard_namespaces" #> [652] "xml_schema_wildcards" 
added 107 characters in body
Source Link
Display name
  • 4.6k
  • 6
  • 44
  • 91
Loading
added 204 characters in body
Source Link
Display name
  • 4.6k
  • 6
  • 44
  • 91
Loading
Source Link
Display name
  • 4.6k
  • 6
  • 44
  • 91
Loading