Solved

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

Posted on 2008-10-28
1
176 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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Syntax using Declare 4 38
Query Peformance + mulitple query plans 9 48
SQL Server Question 5 29
Changing the datatype of a column from nvarchar to date 47 15
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

863 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

27 Experts available now in Live!

Get 1:1 Help Now