I sqlSave to add my matrix B , which looks like this:
Noinscr 88877799 45645687 23523521 45454545
into the SQL table.
so I run the following command:
sqlSave(channel, b, "[testsFelix].[dbo].[TREB]", append = TRUE, rownames = FALSE, colnames = FALSE, safer = TRUE, fast = FALSE)
and I get the following error:
Erreur dans sqlSave(channel, b, "[testsFelix].[dbo].[TREB]", append = TRUE, : 42S01 2714 [Microsoft][SQL Server Native Client 10.0][SQL Server] There is already an object named 'TREB' in the database. [RODBC] ERROR: Could not SQLExecDirect 'CREATE TABLE [testsFelix].[dbo].[TREB] ("Noinscr" int)'
Seeing that he does not want to erase the table, even if append=TRUE is, I tried to erase the SQL table and run the same code again.
I get the following error:
Erreur dans sqlColumns(channel, tablename) : '[testsFelix].[dbo].[TREB]': table not found on channel
So, I am confused when I want to add R, says that it is impossible because there is a table, and when there is no table, R says that it cannot put information in it because the table is not there. I went to SQL to make sure nothing happened, but I saw that R created a table with the correct column name (Noinscr), but the table is empty.
Please tell me what I'm doing wrong. thank you