Solved

Can you INSERT a stored procedure into sql server from vb6?

Posted on 2008-10-28
1
180 Views
Last Modified: 2012-05-05
Hello,

Is it possible to put a stored procedure into sql server from vb6 code?
if so, does somebody have example code?

Regards,
Dennis
0
Comment
Question by:Schuttend
1 Comment
 
LVL 60

Accepted Solution

by:
chapmandew earned 250 total points
ID: 22825761
sure...if you can connect to the db and have permission to create a proc, you can do it.


dim strsql as string
strsql = "create procedure myproc as select getdate()"
oconn.execute strsql
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

730 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