BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
elmoreoocyte
Fluorite | Level 6

I'm trying to insert and drop rows over an ODBC connection.  My Insert block works fine, and I'd hoped the drop would work the same, but I get the following error in my SAS log when trying to drop the row I just inserted:

ERROR: Updating or deleting data cannot be supported by this engine when a WHERE clause and the DBCOMMIT option are used together

 

proc sql;
insert into sql_meta.dash_meta_dates
SELECT *
FROM WORK.test;


proc sql;
delete from sql_meta.dash_meta_dates
where GROUP_AE_REGISTRY = "Test";
1 ACCEPTED SOLUTION

Accepted Solutions
elmoreoocyte
Fluorite | Level 6

Solved my own problem.

 

I had to comment out the DBCOMMIT portion of my ODBC conneciton:

 

*Libname for the meta dashboard dates table;
LIBNAME SQL_META ODBC DSN="Dash" DATABASE="QA" SCHEMA=dbo
READBUFF=4000 INSERTBUFF=4000 /*DBCOMMIT=4000*/
;

View solution in original post

3 REPLIES 3
elmoreoocyte
Fluorite | Level 6

Solved my own problem.

 

I had to comment out the DBCOMMIT portion of my ODBC conneciton:

 

*Libname for the meta dashboard dates table;
LIBNAME SQL_META ODBC DSN="Dash" DATABASE="QA" SCHEMA=dbo
READBUFF=4000 INSERTBUFF=4000 /*DBCOMMIT=4000*/
;

SASKiwi
PROC Star

Please update your post as answered in that case to avoid us checking it to see if you still need help or not.

elmoreoocyte
Fluorite | Level 6

This was my first post, so I didn't know to do that.  Thanks.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1376 views
  • 1 like
  • 2 in conversation