| Bila menggunakan database Msql, saya belum pernah mencoba. Kalau di database MySql (mungkin sebagai perbandingan dan bahan uji coba), script penggunaan store prosedure melalui vba sbb: Private Sub Command5_Click() Dim aa As Variant Dim rsp As ADODB.Recordset KONEKSI If conn.State <> 0 Then aa = "" Set rsp = conn.Execute("call P1('" & text1 & "');") If Not rsp.EOF Then Do While Not rsp.EOF aa = aa & rsp.Fields(0) & vbCrLf rsp.MoveNext Loop End If End If conn.Close Set conn = Nothing MsgBox aa End Sub Di dalam database MySql, sebelumnya sudah dibuat SP. Contohnya: CREATE PROCEDURE `P1`(in name char(255)) begin SELECT Nama_Masalah FROM BU_MASALAH where asosiasi=name; end; Semoga bermanfaat.. Hariyanto (Surabaya) --- On Fri, 6/1/12, Cecep W <cepwahyu@gmail.com> wrote:
|
__._,_.___
SPAM IS PROHIBITED
MARKETPLACE
Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.
.
__,_._,___
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
No comments:
Post a Comment