RODBC sqlSave table creation problems

前端 未结 6 2043

I\'m having trouble creating a table using RODBC\'s sqlSave (or, more accurately, writing data to the created table).

This is different than the existing sqlSave qu

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-15 12:16

    We have had this same problem, which after a bit of testing we solved simply by not using square brackets in the schema and table name reference.

    i.e. rather than writing

    table = "[Jason].[dbo].[df]"
    

    instead write

    table = "Jason.dbo.df"
    

    Appreciate this is now long past the original question, but just for anyone else who subsequently trips up on this problem, this is how we solved it. For reference, we found this out by writing a simple 1 item dataframe to a new table, which when inspected in SQL contained the square brackets in the table name.

提交回复
热议问题