neg_2006
دوشنبه 24 خرداد 1389, 13:12 عصر
سلام به همه دوستان
1 سئوال دارم ولی نگین سرچ کن چون این کارو کردم ولی جواب درست حسابی گیرم نیومده
تمام پاسخها copy/pase هستن و چند تاشون هم که خوب هستن برای این کار من مناسب نیستن
لطفا اگه کسی میدونه که چه جوری میشه بانک اکسس پسورد دار رو از تو دلفی Compact And Repair کرد یا از تو دلفی پسورد اکسس رو تغییر داد یه کمکی کنه این هم یه توضیح
البته بگم خودم یه کد رو تغییر دادم و بانک (پسورد دار ) رو Compact And Repair میکنه ولی پسورد اونو حذف میکه و بانک بدون پسورد میشه یه تذکر دلفی من 7 نه 5
Opening Microsoft Access .MDB databases with Delphi
If you have Delphi 5 Enterprise or Delphi 5 Professional with ADO Express, then you can use an ADOTable and in the ConnectionString property of the associated ADOConnection you can use the property editor to build the right connection string. For example:
Provider=Microsoft.Jet.OLEDB.4.0;
User ID=Admin;
Password=Password;
Data Source=D:\Path\dbname.mdb;
Mode=ReadWrite;
Extended Properties="";
Persist Security Info=False;
Jet OLEDB:System database="";
Jet OLEDB:Registry Path="";
Jet OLEDB:Database Password="";
Jet OLEDB:Engine Type=5;
Jet OLEDB:Database Locking Mode=1;
Jet OLEDB:Global Partial Bulk Ops=2;
Jet OLEDB:Global Bulk Transactions=1;
Jet OLEDB:New Database Password="";
Jet OLEDB:Create System Database=False;
Jet OLEDB:Encrypt Database=False;
Jet OLEDB:Don't Copy Locale on Compact=False;
Jet OLEDB:Compact Without Replica Repair=True;
Jet OLEDB:SFP=FalseNOTE: It all goes in the same line.
This would open the database D:\Path\dbname.mdb using the ADO driver for Access databases (Microsoft.Jet.OLEDB.4.0). The username would be Admin without password (the default when you create an Access database). If you have set a password for the database, you should provide it in the Jet OLEDB:Database Password property. If you have set up security, then you should indicate your workgroups .MDW or .MDA file in the Jet OLEDB:System database property
مرسی
1 سئوال دارم ولی نگین سرچ کن چون این کارو کردم ولی جواب درست حسابی گیرم نیومده
تمام پاسخها copy/pase هستن و چند تاشون هم که خوب هستن برای این کار من مناسب نیستن
لطفا اگه کسی میدونه که چه جوری میشه بانک اکسس پسورد دار رو از تو دلفی Compact And Repair کرد یا از تو دلفی پسورد اکسس رو تغییر داد یه کمکی کنه این هم یه توضیح
البته بگم خودم یه کد رو تغییر دادم و بانک (پسورد دار ) رو Compact And Repair میکنه ولی پسورد اونو حذف میکه و بانک بدون پسورد میشه یه تذکر دلفی من 7 نه 5
Opening Microsoft Access .MDB databases with Delphi
If you have Delphi 5 Enterprise or Delphi 5 Professional with ADO Express, then you can use an ADOTable and in the ConnectionString property of the associated ADOConnection you can use the property editor to build the right connection string. For example:
Provider=Microsoft.Jet.OLEDB.4.0;
User ID=Admin;
Password=Password;
Data Source=D:\Path\dbname.mdb;
Mode=ReadWrite;
Extended Properties="";
Persist Security Info=False;
Jet OLEDB:System database="";
Jet OLEDB:Registry Path="";
Jet OLEDB:Database Password="";
Jet OLEDB:Engine Type=5;
Jet OLEDB:Database Locking Mode=1;
Jet OLEDB:Global Partial Bulk Ops=2;
Jet OLEDB:Global Bulk Transactions=1;
Jet OLEDB:New Database Password="";
Jet OLEDB:Create System Database=False;
Jet OLEDB:Encrypt Database=False;
Jet OLEDB:Don't Copy Locale on Compact=False;
Jet OLEDB:Compact Without Replica Repair=True;
Jet OLEDB:SFP=FalseNOTE: It all goes in the same line.
This would open the database D:\Path\dbname.mdb using the ADO driver for Access databases (Microsoft.Jet.OLEDB.4.0). The username would be Admin without password (the default when you create an Access database). If you have set a password for the database, you should provide it in the Jet OLEDB:Database Password property. If you have set up security, then you should indicate your workgroups .MDW or .MDA file in the Jet OLEDB:System database property
مرسی