SQL query with actxserver
Mostrar comentarios más antiguos
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')
Respuestas (1)
Madhura Suresh
el 31 de En. de 2014
0 votos
Have you tried using fetch?
a= DB.exec(query) data=fetch(a)
2 comentarios
Reese
el 31 de En. de 2014
Madhura Suresh
el 5 de Feb. de 2014
What version of MATLAB are you using? SQL queries might work, but there is no workaround for stored procedures using ACTXSERVER.
Categorías
Más información sobre Spreadsheets en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!