Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

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

Posted on 2008-10-28
1
Medium Priority
?
190 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 1000 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

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

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

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

571 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