Solved

Vb and SQl Server

Posted on 2000-03-30
1
154 Views
Last Modified: 2010-05-02
Hi
I want to call a stored procedure from Vb.I want to invoke the stored procedure with an input parameter (integer) with out using the command object.How is it done.
Sample code is what i am looking for

I am using vb6 and sql 7
Thanks
0
Comment
Question by:sramkris
1 Comment
 
LVL 1

Accepted Solution

by:
mr_krishna earned 50 total points
ID: 2671234
You can excute a stored proceudure using connection object. Sample code is as follows.

Dim cnn As New ADODB.Connection
'Your stored procedure name and any parameters.

cnn.sp_yourStoredProcedureName "param1"

0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

815 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now