Dear SAS community, I would like to add a SAS dataset to an existing SQL Server table. I would like to add the SAS dateset "adding" to the sql table "have." I have been using the below code. proc append base=SQLSERVER.have data=WORK.adding; run; However, when I run the code, I receive this error. NOTE: Appending WORK.adding to SQLSERVER.have. WARNING: Variable X1 was not found on DATA file. WARNING: Variable X2 was not found on DATA file. WARNING: Variable X3 was not found on DATA file. NOTE: There were 1 observations read from the data set WORK.adding. NOTE: 0 observations added. NOTE: The data set SQLSERVER.have has . observations and 44 variables. ERROR: CLI execute error: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert explicit value for identity column in table 'have' when IDENTITY_INSERT is set to OFF. NOTE: Statements not processed because of errors oted above. I believe the errors are a result of two reasons. 1) I have variables (i.e. variables X1, X2, X3) in the SQL table that are not in the SAS dataset 2) I have one variable (i.e. variable X4) in the SQL table that is in a different format as that same variable in the SAS dataset Is there a way to force the append without adding variables to the SAS dataset? And without changing the format of the variable shared by both sources? Thanks!
... View more