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

 

When i try to update a table in MSSQL through SAS like this 

proc sql;
update sandtab.opret_sqltabel_fra_sas
set Simon = 1
where Simon = 0;
quit;
run;

 

It errors out with 

ERROR: Open cursor error: ICommand::Execute failed. : The requested properties cannot be supported.

 

its only seems to be updating that fails, following statement works fine on the same table 

 

proc sql;
insert into sandtab.opret_sqltabel_fra_sas ( col1,col2, col3, col4,Simon)
values (99, "Simons kontoform", "N", '2019-05-13 09:48:05.033'dt,11);
quit;
run;

The datatype for column Simon in my SQL table is float. 

 

 

1 ACCEPTED SOLUTION
6 REPLIES 6
ChrisNZ
Tourmaline | Level 20

What happens if you run

proc sql;
  connect using SANDTAB;
  execute by SANDTAB (
    update opret_sqltabel_fra_sas
    set Simon = 1
    where Simon = 0
  );
quit;

 

havmaage
Obsidian | Level 7

Thanks for your reply, 

I dont work unfortunately. 

 

 

 

16 proc sql;
17 connect using sandtab;
ERROR: SERVER= option, required for connection, not found.
18 execute by sandtab (
19 update opret_sqltabel_fra_sas
20 set Simon = 1
21 where Simon = 0
22 );

ERROR: The SANDTAB engine cannot be found.
ERROR: A Connection to the sandtab DBMS is not currently supported, or is not installed at your site.
23 quit;
havmaage
Obsidian | Level 7

Actually ít just got to works this moment, haven't 

assigned my libname through the server and not directly 

like this 

libname Sandtab slibref=Sandtab server=saspi;

 

And then it worked ok. 

 

Thanks for your input. 

 

 

ChrisNZ
Tourmaline | Level 20
That's a remote libnane. You never mentioned you were using a server. Glad it works anyway.
havmaage
Obsidian | Level 7
Sorry about that, i am a not that familiar with the SAS Environment but my learning curve is
steep. Have good day

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
  • 6 replies
  • 1811 views
  • 0 likes
  • 2 in conversation