Hai.... Nah,untuk login ke sql server usernya itu bkn??? Kl bukan y emang salah....Tp kl mo lebih jelas seh, mending pake adodc aj, trs disetting properti dulu aj, abis itu dicopy deh yg udah jd, tgl paste ke coding deh....Itu aja seh yg kira2 bs saya ksh tau... Thanx...
Hasan MM2100 --- sulis tianto <[EMAIL PROTECTED]> wrote: > Salam kenal, > > Hi teman2 ada yang bisa bantu memecahkan > permasalahan ini gak? > Aku lagi belajar VB yang pake Database SQL Server, > aku pake Microsoft ActiveX Data Objects 2.5 > Library, > dan SQL Server 2000 yang telah diaktifkan. > Setelah aku coba pada source berikut : > > ----------------------------------------------------------------------- > Public Sub koneksi() > Dim rstPegawai As ADODB.Recordset > > Dim strCnn As String > > strCnn = "Provider=SQLOLEDB.1;" & _ > "Persist Security Info=False;" & _ > "User ID=sa; Initial Catalog=pubs; Data > Source=(local)" > > Set rstPegawai = New ADODB.Recordset > > rstPegawai.CursorLocation = adUseClient > > rstPegawai.Open "employee", strCnn, , , > adCmdTable > End Sub > > Private Sub Form_Load() > koneksi > End Sub > > ---------------------------------------------------------------------- > > maka muncul error dengan pesan : > > Login failed for user 'sa'. Reason: Not > associated with a trusted SQL > Server connection. > > Yang ingin saya tanyakan; > - Apa penyebab error tersebut dan bagaimana > solusinya? > - Mengapa user yang digunakan oleh VB untuk SQL > Server adalah 'sa' ? > - Apakah bila saya mengganti user tersebut berarti > harus mengganti user pada > SQL Servernya juga? > - Apa maksud dari dua baris source berikut ? > rstPegawai.CursorLocation = adUseClient > rstPegawai.Open "employee", strCnn, , , adCmdTable > > > Terima kasih pada teman2 atas kesediaannya membaca > dan memecahkan permasalahan ini. Saya tunggu > solusinya. :-) > > __________________________________________________ > Apakah Anda Yahoo!? > Lelah menerima spam? Surat Yahoo! memiliki > perlindungan terbaik terhadap spam > http://id.mail.yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/k7folB/TM --------------------------------------------------------------------~-> Untuk keluar dari millis ini, kirim email kosong ke: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Programmer-VB/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
