Solved

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

Posted on 2008-10-28
1
175 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

763 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

6 Experts available now in Live!

Get 1:1 Help Now