Hi,
I am trying to export data to SQL server through ODBC connection. I was able to load the data table through ODBC and do some data manipulation. However, it didn't work well when I tried to save the data to SQL server through ODBC. My code below was able to create the data table "SP_GE_cohort" under SP_Data and I could see variable names, but the data cells were all blank, no values. Then I tried to run another same code but replacing -create- with -overwrite- as an option, the program basically froze for hours and didn't run. Could you please help to provide a way to save file into SQL server? Thank you!
odbc insert, table("SP_cohort") dsn("SP_data_server") create
Best,
Wenjun
I am trying to export data to SQL server through ODBC connection. I was able to load the data table through ODBC and do some data manipulation. However, it didn't work well when I tried to save the data to SQL server through ODBC. My code below was able to create the data table "SP_GE_cohort" under SP_Data and I could see variable names, but the data cells were all blank, no values. Then I tried to run another same code but replacing -create- with -overwrite- as an option, the program basically froze for hours and didn't run. Could you please help to provide a way to save file into SQL server? Thank you!
odbc insert, table("SP_cohort") dsn("SP_data_server") create
Best,
Wenjun
Comment