delphi中请分别使用ADOConnection控件连接SQLServer。ACCESS,EXCEL3中类型数据库,并把各自的连接字符串

这是我们将要考试的题目高手帮各忙
2025-04-03 22:19:27
推荐回答(1个)
回答1:

SQL:
Provider=SQLOLEDB.1;Password=123;Persist Security Info=True;User ID=as;Initial Catalog=aaa;Data Source=127.0.0.1

Access:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=test.mdb;Mode=ReadWrite;Persist Security Info=False

Excel:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=test.xls;Mode=ReadWrite;Extended Properties=Excel 8.0;Persist Security Info=False