SQL query with actxserver
이전 댓글 표시
I am trying to run a SQL stored procedure that returns a parameter but I can't figure out how to get that value. When I run this psuedo code I get an error saying I need to define the output parameter. I know the DB connection is correct and works because I have other stored procedures that work but none of them have output.
DB = actxserver('ADODB.Connection') DB.Open( serverstuff here) DB.Execute('exec procedurename @inputParam=string')
답변 (1개)
Madhura Suresh
2014년 1월 31일
0 개 추천
Have you tried using fetch?
a= DB.exec(query) data=fetch(a)
댓글 수: 2
Reese
2014년 1월 31일
Madhura Suresh
2014년 2월 5일
What version of MATLAB are you using? SQL queries might work, but there is no workaround for stored procedures using ACTXSERVER.
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!