delphi連線資料來源

2021-04-19 22:38:02 字數 783 閱讀 6752

adoconn.connectionstring := 'provider=sqloledb.1;persist security info=true;use procedure for prepare=1;auto translate=true;packet size=4096;use encryption for data=false;tag with column collation when possible=false;'+ 'password=' + myinifile.readstring('adoconn', 'password', 'infogate;')+ 'user id=' + myinifile.readstring('adoconn', 'userid', 'sa;') + 'initial catalog=' + myinifile.readstring('adoconn', 'database', 'song') + ';'+ 'data source=' + myinifile.readstring('adoconn', 'datasource', '.');

以上是sql service

adoconn.connectionstring :='provider=microsoft.jet.oledb.4.0;' +'data source=' + myinifile.readstring('adoconn','path','d:/dh2000/')+myinifile.readstring('adoconn','database','song.mdb')+';'+'persist security info=false;';

///以上是access

iReport 連線資料來源

ireport 也是開源組織sf.net 中的一款免費軟體,其主要作用是用來以視覺化的方式設計 生成jasperreport 所使用的報 式檔案,因為jasperreport 本身並未提供很好的視覺化報 表設計工具,ireport 的出現正好彌補了這個缺陷。報表連線資料來源,必須先設定好classp...

struts連線資料來源問題

連線struts資料來源,出現問題,原因可能有以下幾種情況 1,選用了struts1.2或以上版本,此時會出現乙個bug就是有兩個包沒匯入,乙個是struts legacy.jar,乙個是commons collections.jar。因為datasource在struts legacy.jar中,...

用LInq連線資料庫做資料來源

1,在專案中新增linq to sql類 在.dbml檔案中拖入要連線資料庫中的表,這樣就會自動生成乙個實體類,對應一張表,還有乙個datacontext類,一般以 databasenamedatacontext 命名,它繼承了datacontext類,這樣我就沒就可以用這個類連線資料庫了。2,假如...