Solved

Executing SP through DMO

Posted on 1998-12-31
1
298 Views
Last Modified: 2012-05-04
How would I execute a stored procedure using VB-DMO?
What syntax would I use?

Regards
0
Comment
Question by:ossentoo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
alvaroB earned 50 total points
ID: 1092437
SQL-DMO is aimed at providing the user with objects to manage SQL Server from a VB application. In other words, you could do administrative tasks(backups, configurations,...) or look at the internal structure of a database(Tables,views,...) , using DMO. If you want to process data through a SP, the way to go could be ADO, RDO, or other technologies.

If you still want to execute a SP using SQL-DMO, you could try using the following methods of the SQLServer object:

ExecuteImmediate
ExecuteWithResults
(Check SQL documentation for details)

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question