Solved

Executing SP through DMO

Posted on 1998-12-31
1
295 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
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

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…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to shrink a transaction log file down to a reasonable size.

791 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