Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 11:59 AM
2803stan@gmail.com
Guest
 
Posts: n/a
Default SPs in VB6

I asked this last year, but never received a satisfactory answer:

<<Has the promise of stored procedures written in VB6 been fulfilled in
8.2? If there be a special syntax, and where do I find it, and where
are samples?

<<Would it be as efficient as, say, SQL? >>
--------------
That is, can I write a stored procedure in VB6 (**NOT** .NET)?

What is done with such items as "MODE," etc. That is, what is the
syntax? Can I just write it in VB6 as if it were a VB6 script/program
and ignore "MODE" and other special code words in the SQL version of
the same SP?

In any case, would it be as fast?

  #2  
Old November 12th, 2005, 03:55 PM
Rhino
Guest
 
Posts: n/a
Default Re: SPs in VB6


<2803stan@gmail.com> wrote in message
news:1131751758.287921.190340@z14g2000cwz.googlegr oups.com...[color=blue]
> I asked this last year, but never received a satisfactory answer:
>
> <<Has the promise of stored procedures written in VB6 been fulfilled in
> 8.2? If there be a special syntax, and where do I find it, and where
> are samples?
>
> <<Would it be as efficient as, say, SQL? >>
> --------------
> That is, can I write a stored procedure in VB6 (**NOT** .NET)?
>
> What is done with such items as "MODE," etc. That is, what is the
> syntax? Can I just write it in VB6 as if it were a VB6 script/program
> and ignore "MODE" and other special code words in the SQL version of
> the same SP?
>
> In any case, would it be as fast?
>[/color]
What does this question have to do with DB2? It sounds like something that
belongs on a Visual Basic newsgroup.

Rhino


  #3  
Old November 13th, 2005, 12:05 AM
2803stan@gmail.com
Guest
 
Posts: n/a
Default Re: SPs in VB6

<<What does this question have to do with DB2? It sounds like something
that belongs on a Visual Basic newsgroup>>

No.

I know how to write the code for a DB2 SP in any language in which I
can write. The question is not whether I can write it, but whether DB2
will accept it.

Up till now my understanding was that a DB2 SP had to be written in
DB2's version of SQL procedural, or C. Last year, I read that DB2
would be able to accept code written in VB6 (?or VB.NET?).

So I'm asking if DB2 will accept the VB code; whether it has to be
compiled in a special way; etc. Not whether it can be theoretically
written in VB.

  #4  
Old November 13th, 2005, 12:45 AM
Gert van der Kooij
Guest
 
Posts: n/a
Default Re: SPs in VB6

In article <1131838959.591776.199110@z14g2000cwz.googlegroups .com>,
(2803stan@gmail.com) says...[color=blue]
> <<What does this question have to do with DB2? It sounds like something
> that belongs on a Visual Basic newsgroup>>
>
> No.
>
> I know how to write the code for a DB2 SP in any language in which I
> can write. The question is not whether I can write it, but whether DB2
> will accept it.
>
> Up till now my understanding was that a DB2 SP had to be written in
> DB2's version of SQL procedural, or C. Last year, I read that DB2
> would be able to accept code written in VB6 (?or VB.NET?).
>
> So I'm asking if DB2 will accept the VB code; whether it has to be
> compiled in a special way; etc. Not whether it can be theoretically
> written in VB.
>[/color]

Check the docs about CLR modules at http://tinyurl.com/9e5fe
  #5  
Old November 14th, 2005, 11:45 PM
2803stan@gmail.com
Guest
 
Posts: n/a
Default Re: SPs in VB6

Thanks

  #6  
Old November 15th, 2005, 07:45 PM
W Gemini
Guest
 
Posts: n/a
Default Re: SPs in VB6

DB2 has always supported OLE stored procedures, which can be written in
VB. Starting from v8.2, DB2 also supports .NET stored procedures. Check
the SQL reference and Application development guide for details.

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,174 network members.