Berhasil..mas Aksan, Mas Haer, mas Sofyan dll...
Bener.. rupanya kesalahan ada di string:
"Security Info=True"
Setelah string itu dihilangkan.. aplikasi sederhana saya itu 
berjalan dgn baik.. 
Jadi dalam access runtime, saya bisa mengganti-ganti database
dengan form custom Data Link Properties itu..

Dan string:"PERSIST SECURITY INFO =TRUE" itu memang
bwt mensave password login ke SQL Server dalam aplikasi..

Skrg sedang saya coba-coba dengan berbagai kemungkinan...

Thx

Salam

Bobby

--- In [email protected], "Bobby" <[EMAIL PROTECTED]> wrote:
>
> Hmmmm... gitu ya....
> OK saya teruskan lg eksperimentnya...
> Iya.. emang tdk secure..masih coba-coba
> O iya kalau memang pakai password dan ingin di save 
> (seperti pilihan save password di Data Link Properties)
> apa string/code nya ? "PERSIST SECURITY INFO =TRUE" bukan ?
> 
> Thx
> 
> Salam
> 
> Bobby
> --- In [email protected], "M. Aksan Kurdin" <aksan@> 
> wrote:
> >
> > Tidak, tidak ada tambahan. Tidak ada seting Integrated Security = 
> False.
> > Kalau anda lihat potongan programnya :
> > 
> > If strUN <> "" Then
> >     strConnect = strConnect & ";user id=" & strUN
> >     If strPW <> "" Then
> >         strConnect = strConnect & ";password=" & strPW
> >     End If
> > Else  'Try to use integrated security if no username is supplied.
> >     strConnect = strConnect & ";integrated security=SSPI"
> > End If
> > 
> > strUN adalah optional parameter untuk user id, jika tidak 
disupply, 
> berarti
> > dianggap koneksi dibentuk dengan model windows user name / 
> password. Maka
> > connection stringnya mengandung integrated security = SSPI. 
> Sebaliknya jika
> > strUN ternyata diberikan, maka koneksi dibentuk dengan model sql 
> server user
> > name / password. Maka connection stringnya harus mengandung user 
id 
> =
> > <username>; password = <password>, jika usernya sa dan 
passwordnya 
> kosong,
> > maka cukup user id = sa; saja. Kedua seting ini tidak bisa dipakai
> > bersamaan. Seperti halnya dari enterprise manager, anda tidak 
bisa 
> memilih
> > kedua model authentication-nya aktif sekaligus, tetapi harus 
salah 
> satu.
> > 
> > Pertimbangkan pula, jika anda masukkan semua user dengan sa, 
> berarti adp
> > anda sebenarnya tidak secure. User yang ceroboh bisa melakukan 
> pengrusakan
> > dalam database.
> > 
> > Aksan Kurdin
> > 
> >  
> > 
> > From: [email protected] [mailto:belajar-
> [EMAIL PROTECTED]
> > On Behalf Of Bobby
> > Sent: Thursday, August 02, 2007 7:35 PM
> > To: [email protected]
> > Subject: [belajar-access] Re: Access Runtime
> > 
> >  
> > 
> > > On 8/2/07, M. Aksan Kurdin <aksan@> wrote:
> > 
> > > > Kalau server sql anda pasang autentikasi *SQL Server user 
> > password*, maka
> > > > yang anda gunakan adalah seting:
> > > > User ID = [nama user / sa ]
> > > > Password = [password]
> > 
> > Mungkin ditambah 
> > 
> > "Integrated Security = False" bukan "SSPI", ya mas?
> > 
> > Sebenarnya saya jg baru experiment pake Access Runtime sekarang
> > krn aplikasi yg saya buat utk didistribusikan ke beberapa client 
> > dengan versi msaccess yg berbeda-beda (2002-2007).
> > 
> > User login yg saya pake adalah "sa" tanpa password, jd gak prlu 
> bikin 
> > user baru kan ?
> > Hanya perubahan di Properties->Security SQL Server (dari 
Enterprise 
> > Manager)
> > 
> > Bener kata mas Haer, saya lebih baik selesaikan dulu eksperimennya
> > biar tidak pusing sendiri... nanti kalau sudah ada titik terang
> > saya sharing lagi.
> > Thx atas segala bantuannya... jangan kapok
> > 
> > Salam 
> > 
> > Bobby
> > --- In [email protected]
> > <mailto:belajar-access%40yahoogroups.com> , "Haer Talib" 
> <haertalib@> 
> > wrote:
> > >
> > > Yoi, masalahnya mungkin itu bang, user dan login di SQL Server 
> kudu 
> > ada dulu
> > > dan dikasih permission.
> > > 
> > > Haer
> > > 
> > > 
> > > On 8/2/07, M. Aksan Kurdin <aksan@> wrote:
> > > >
> > > > Saya tidak pernah menggunakan access run time, jadi tidak 
bisa 
> > kasih
> > > > pengalaman mengenai user login dengan kondisi seperti itu, 
saya 
> > hanya mo
> > > > jawab pertanyaan selanjutnya:
> > > >
> > > > Untuk konek ke sql server sebenarnya hanya dibutuhkan 
informasi:
> > > > Provider="sqloledeb" (atau "sqloledb.1")
> > > > Datasource = [nama server]
> > > > Initial Catalog = [nama database]
> > > >
> > > > Kalau server sql anda pasang autentikasi menggunakan *windows 
> user
> > > > password, *maka yang anda gunakan adalah seting:
> > > > Integrated Security = SSPI
> > > >
> > > > Kalau server sql anda pasang autentikasi *SQL Server user 
> > password*, maka
> > > > yang anda gunakan adalah seting:
> > > > User ID = [nama user / sa ]
> > > > Password = [password]
> > > >
> > > > User id harus sudah dibuatkan di sql servernya.
> > > >
> > > > Aksan Kurdin
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > *From:* [email protected]
> > <mailto:belajar-access%40yahoogroups.com>  [mailto:
> > > > [email protected] <mailto:belajar-access%
> 40yahoogroups.com>
> > ] *On Behalf Of *Bobby
> > > > *Sent:* Thursday, August 02, 2007 4:38 PM
> > > > *To:* [email protected]
> > <mailto:belajar-access%40yahoogroups.com> 
> > > > *Subject:* [belajar-access] Re: Access Runtime
> > > >
> > > >
> > > >
> > > > Setelah sya buka link :
> > > > > How to programmatically change the connection of a 
Microsoft 
> > Access
> > > > project
> > > > > (http://support.microsoft.com/kb/306881/en-us)
> > > >
> > > > berikut juga code dari Mas Sofyan,
> > > > koneksi seperti itu memang sudah biasa saya lakukan dalam
> > > > project, tetapi selama ini saya coba dengan login ke SQL 
Server
> > > > dengan windows authentication, dan tidak ada masalah.
> > > >
> > > > Masalah muncul ketika login ke SQL Server harus pakai User 
Name 
> > (SQL
> > > > Server Authentication). Dengan form/code yang saya buat 
koneksi
> > > > memang bisa dibuka, table bisa muncul di database windows.
> > > >
> > > > Hanya ketika dibuka table nya muncul pesan "Data Provider 
could 
> > not
> > > > be initialize", dan table tdk bisa dibuka.
> > > > Ada yang tau ga perbedaan dua string ini :
> > > >
> > > > "PROVIDER=SQLOLEDB.1;INTEGRATED SECURITY=SSPI;PERSIST SECURITY
> > > > INFO=FALSE;INITIAL CATALOG=master;DATA SOURCE=NETSHARE"
> > > > Ini saya dapat dari perintah
> > > > MsgBox CurrentProject.BaseConnectionString
> > > >
> > > > satu lagi:
> > > >
> > > > "Provider=Microsoft.Access.OLEDB.10.0;Persist Security
> > > > Info=False;Data Source=NETSHARE;Integrated 
Security=SSPI;Initial
> > > > Catalog=master;Data Provider=SQLOLEDB.1"
> > > >
> > > > dapet dari perintah
> > > > MsgBox CurrentProject.Connection.ConnectionString
> > > >
> > > > sepertinya yang jadi masalah adalah string yang kedua..
> > > >
> > > > Eh ngomong-ngomong.. pada ngerti nggak ya permasalahan yg saya
> > > > maksud.. jangan-jangan pada lieur
> > > >
> > > > Salam
> > > >
> > > > Bobby
> > > >
> > > > --- In [email protected]
> > <mailto:belajar-access%40yahoogroups.com>  <belajar-access%
> > 40yahoogroups.com>,
> > > > "M. Aksan Kurdin" <aksan@>
> > > > wrote:
> > > > >
> > > > > How to programmatically change the connection of a 
Microsoft 
> > Access
> > > > project
> > > > > (http://support.microsoft.com/kb/306881/en-us)
> > > > >
> > > > >
> > > > >
> > > > > Aksan Kurdin
> > > > >
> > > > >
> > > > >
> > > > > From: [email protected]
> > <mailto:belajar-access%40yahoogroups.com>  <belajar-access%
> > 40yahoogroups.com>[mailto:
> > > > belajar-
> > > > [EMAIL PROTECTED] <mailto:access%40yahoogroups.com>
> > <access%40yahoogroups.com>]
> > > > > On Behalf Of Bobby
> > > > > Sent: Wednesday, August 01, 2007 7:35 PM
> > > > > To: [email protected]
> > <mailto:belajar-access%40yahoogroups.com>  <belajar-access%
> > 40yahoogroups.com>
> > > > > Subject: [belajar-access] Re: Access Runtime
> > > > >
> > > > >
> > > > >
> > > > > Kalau msaccess kita full version perubahan password
> > > > > di SQL Server akan membuat aplikasi kita "disconnected",
> > > > > sampai kita buka "Data Link Properties" dan merubah 
properties
> > > > > koneksi project kita (itu bisa dibikin di stratup, jadi 
> setiap 
> > ada
> > > > > perubahan koneksi dgn SQL Server, pada saat kita buka 
project,
> > > > > langsung masuk ke data link properties).
> > > > >
> > > > > Nah justru inilah yang sedang saya coba buat, masalahnya 
kalau
> > > > pakai
> > > > > access runtime (dalam hal ini yang sedang saya pakai 2003), 
> data
> > > > > link properties tidak dapat muncul, bahkan menu built in-nya
> > > > > saja tidak ada walaupun sudah saya kopi menu tsb ke custom 
> menu 
> > bar
> > > > > buatan sendiri.
> > > > >
> > > > > Yang sedang saya buat ialah form dengan beberapa text box 
> (untuk
> > > > nama
> > > > > server,nama user, password dan nama dbase), option button, 
> check
> > > > box
> > > > > dll, mirip dgn built in data link properties-nya msaccess. 
> Jadi
> > > > > koneksi project dibuat lewat form itu...sampai skrg belum 
> > selesai
> > > > > jadi belum bisa saya sampaikan lebih jauh
> > > > >
> > > > > O iya.. mas Haer, revisi GIPustaka (GIPustaka2) yang saya 
baca
> > > > ialah
> > > > > perubahan dlm hal ini.. tapi revisi tsb tidak bisa saya 
> buka.. 
> > bisa
> > > > > tolong sampaikan lebih jelas ttg hal itu, dan kalau bisa 
> source
> > > > code
> > > > > yg dipakenya (he he)
> > > > >
> > > > > Salam
> > > > >
> > > > > Bobby
> > > > >
> > > > > --- In [email protected]
> > <mailto:belajar-access%40yahoogroups.com>  <belajar-access%
> > 40yahoogroups.com>
> > > > > <mailto:belajar-access%40yahoogroups.com> , "Sofyan Efendi"
> > > > <sofyan@>
> > > > > wrote:
> > > > > >
> > > > > > Kalo pake conection ADP standard bisa otomatis berubah 
> nggak 
> > mas
> > > > > kalo password sa di sql server nya berubah?
> > > > > >
> > > > > > Wassalaamu'alaikum Warahmatullahi Wabarakatuh,
> > > > > > Sofyan Efendi.
> > > > > > Ingin belajar Excel? Pls send blank mail to:
> > > > > > [EMAIL PROTECTED]
> > <mailto:belajar-excel-subscribe%40yahoogroups.com> <belajar-excel-
> > subscribe%40yahoogroups.com>
> > > > > <mailto:belajar-excel-subscribe%40yahoogroups.com>
> > > > > > ----- Original Message -----
> > > > > > From: Bobby
> > > > > > To: [email protected]
> > <mailto:belajar-access%40yahoogroups.com>  <belajar-access%
> > 40yahoogroups.com>
> > > > > <mailto:belajar-access%40yahoogroups.com>
> > > > > > Sent: Tuesday, July 31, 2007 7:34 PM
> > > > > > Subject: [belajar-access] Re: Access Runtime
> > > > > >
> > > > > >
> > > > > > Thx mas Sofyan
> > > > > >
> > > > > > Saya sudah buat seperti itu code-nya
> > > > > > saya dapet tambahan juga dari code sample-nya SQL Server 
> 2000
> > > > > > (adomain.vbp), dan tambahan juga dari Module-"StartUp"nya 
> mas
> > > > > Haer di
> > > > > > GIPustaka, dan Smaple Database Northwind.
> > > > > >
> > > > > > Code yang mas Sofyan tulis :
> > > > > >
> > > > >
> > > > 
> > 
> 
Application.CurrentProject.OpenConnection "PROVIDER=SQLOLEDB.1;PERSIST
> > > > > > SECURITY INFO=FALSE;INITIAL CATALOG=Northwind;DATA
> > > > > > SOURCE=MIS\SQLEXPRESS;Use Procedure for Prepare=1;Auto
> > > > > > Translate=True;Workstation ID=MIS", "sa", "mysapassword"
> > > > > >
> > > > > > berarti user dan password ke SQL Servernya dibuat di VBA 
> Code-
> > nya
> > > > > > ya ? ga bisa otomatis rubah dong kalau di SQL Server
> > > > > > Enterprise Manager (atau dari tempat lain) dirubah. Juga 
kan
> > > > > > "PERSIST SECURITY INFO=FALSE" berarti Password tidak 
> disave, 
> > krn
> > > > > > kalau password di save nilainya adalah TRUE ??
> > > > > >
> > > > > > But, anyway saya coba dulu.. nanti hasilnya kita 
diskusikan 
> > lagi
> > > > > >
> > > > > > Thx
> > > > > >
> > > > > > Salam
> > > > > > Bobby
> > > > > >
> > > > > > --- In [email protected]
> > <mailto:belajar-access%40yahoogroups.com> <belajar-access%
> > 40yahoogroups.com>
> > > > > <mailto:belajar-access%40yahoogroups.com> , "Sofyan Efendi"
> > > > <sofyan@>
> > > > > > wrote:
> > > > > > >
> > > > > > > Setuju mas Bobby, emang sih file access 2000 kalo mo di 
> mde-
> > in
> > > > > > harus pake access 2000, 2002 sama 2002 dan 2003 sama 
2003. 
> > Kalo
> > > > > rumus
> > > > > > data link properties ADP, bisa buat sendiri lho...
> > > > > > >
> > > > > > > - Untuk mengetahui suatu connection di ADP, 
procedurenya 
> > adalah:
> > > > > > >
> > > > > > > Public Function LiatKoneksiADP()
> > > > > > > Dim objCurrent As Object
> > > > > > > Set objCurrent = Application.CurrentProject
> > > > > > > MsgBox "Koneksi ADP ini pake " & 
> > objCurrent.BaseConnectionString
> > > > > > > End Function
> > > > > > >
> > > > > > > - Untuk membuka suatu connection di ADP, procedurenya 
> > adalah:
> > > > > > >
> > > > > > > Public Function BukaKoneksiADP()
> > > > > > > 'Harap diganti INITIAL CATALOG, DATA SOURCE, dan 
password 
> SA
> > > > > nya
> > > > > > sesuai pada PC nya
> > > > > > >
> > > > > >
> > > > >
> > > > 
> > 
> 
Application.CurrentProject.OpenConnection "PROVIDER=SQLOLEDB.1;PERSIST
> > > > > > SECURITY INFO=FALSE;INITIAL CATALOG=Northwind;DATA
> > > > > > SOURCE=MIS\SQLEXPRESS;Use Procedure for Prepare=1;Auto
> > > > > > Translate=True;Workstation ID=MIS", "sa", "mysapassword"
> > > > > > > End Function
> > > > > > >
> > > > > > > - Untuk menutup suatu connection di ADP, procedurenya 
> > adalah:
> > > > > > >
> > > > > > > Public Function CloseADPConnection()
> > > > > > > Application.CurrentProject.CloseConnection
> > > > > > > End Function
> > > > > > >
> > > > > > > bisa nggak nya send balik, ok?
> > > > > > >
> > > > > > > Wassalaamu'alaikum Warahmatullahi Wabarakatuh,
> > > > > > > Sofyan Efendi.
> > > > > > > Ingin belajar Excel? Pls send blank mail to:
> > > > > > > [EMAIL PROTECTED]
> > <mailto:belajar-excel-subscribe%40yahoogroups.com> <belajar-excel-
> > subscribe%40yahoogroups.com>
> > > > > <mailto:belajar-excel-subscribe%40yahoogroups.com>
> > > > > > > ----- Original Message -----
> > > > > > > From: Bobby
> > > > > > > To: [email protected]
> > <mailto:belajar-access%40yahoogroups.com> <belajar-access%
> > 40yahoogroups.com>
> > > > > <mailto:belajar-access%40yahoogroups.com>
> > > > > > > Sent: Tuesday, July 31, 2007 3:13 PM
> > > > > > > Subject: [belajar-access] Re: Access Runtime
> > > > > > >
> > > > > > >
> > > > > > > Mas Sofyan
> > > > > > >
> > > > > > > Kalau formatnya pake Access 2000 nanti ga bisa
> > > > > > > dibuat mde/ade dong....
> > > > > > >
> > > > > > > Saya juga sedang coba-coba access 2003 runtime..
> > > > > > > salah satu masalah yang muncul ialah
> > > > > > > tidak munculnya data link properties (saya pake adp)..
> > > > > > >
> > > > > > > Sekarang sedang mencoba bikin form data link properties 
> > sendiri
> > > > > > > tapi sedang kesulitan untuk membuat code utk
> > > > > > > save password utk login ke SQL Server (loginnya pake
> > > > > > > password).
> > > > > > > Gitu....
> > > > > > >
> > > > > > > Mungkin ada yang bisa bantu.....
> > > > > > >
> > > > > > > Salam
> > > > > > > Bobby
> > > > > > > --- In [email protected]
> > <mailto:belajar-access%40yahoogroups.com> <belajar-access%
> > 40yahoogroups.com>
> > > > > <mailto:belajar-access%40yahoogroups.com> , G4ND4 
> <putra.ganda@>
> > > > > wrote:
> > > > > > > >
> > > > > > > > Hello Sofyan,
> > > > > > > >
> > > > > > > > Monday, July 30, 2007, 10:22:07 AM, you wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > >
> > > > > > > > > Sedikit nambahin : Format filenya kudu pake Access 
> 2000 
> > ya.
> > > > > > Juga
> > > > > > > > > kalo pake tambahan activeX yg bukan bawaan access, 
> kudu 
> > di
> > > > > > copy
> > > > > > > > > juga ke masing-masing PC yang menggunakan program 
> > tsb ...
> > > > > > > >
> > > > > > > > Terima kasih atas petuahnya, Mas sofyan dan Mas 
Erwin. 
> > Akan
> > > > > > saya coba
> > > > > > > dulu.
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > > > 
> > > >
> > >
> >
>


Kirim email ke