【文章內(nèi)容簡介】
U N D E F U N D E F U N D E F U N D E F U N D E F 成成成成成成成 成 _ I DP r j _ I DT a s k _ I D成成成成成成成成成成成成成 U N D E F U N D E F U N D E F U N D E F U N D E F U N D E F C o n c e p t u a l D a t a M o d e lM o d e l : P MP a c k a g e : D i a g r a m : P MA u t h o r : A d m i n i s t r a t o r D a t e : 2 0 0 4 1 6 V e r s i o n : ER圖實(shí)例 2021/11/10 ERP十萬個(gè)為什么 17 編程接口 API ? ADO, OLE DB, ODBC ( JDBC), Embedded SQL, URL, XML (Inter) 使用數(shù)據(jù)庫 1. 打開到數(shù)據(jù)庫的連接。 2. 設(shè)置控制某些行為的選項(xiàng) 3. 執(zhí)行 TransactSQL 語句 4. 將返回代碼的數(shù)據(jù)值、輸出參數(shù)和結(jié)果集移入程序變量中,并通過程序變量由應(yīng)用程序邏輯使用。 5. 在完成數(shù)據(jù)庫中的工作后斷開連接。 2021/11/10 ERP十萬個(gè)為什么 18 連接數(shù)據(jù)庫 PB Transaction SQLCA // 事務(wù)對(duì)象 = ProfileString (gs_inifile, DATABASE, dbms, MSS) = ProfileString (gs_inifile, DATABASE, DATABASE, KF) = ProfileString (gs_inifile, DATABASE, userid, dbo) = ProfileString (gs_inifile, DATABASE, dbpass, ) = ProfileString (gs_inifile, DATABASE, logid, sa) = ProfileString (gs_inifile, DATABASE, LogPassWord, ) = ProfileString (gs_inifile, DATABASE, ServerName, (local)) = ProfileString (gs_inifile, DATABASE, Dbparm, ) = FALSE connect Using SQLCA。 // 打開連接 Disconnect Using SQLCA 。 // 切斷連接 // Profile sss = ODBC = False = ConnectString=39。DSN=Excel Files。UID=。PWD=39。 連接 Access // Profile Access = ODBC = False = ConnectString=39。DSN=MS Access Database。UID=。PWD=39?!?// VB1 Driver={SQL Server}。Server=Server1。Uid=SA。Pwd=。Database=northwind // VB –2 = sqloledb“ ProvStr = Server=MyServer。Database= northwind。 Trusted_Connection=yes provStr 2021/11/10 ERP十萬個(gè)為什么 19 獲取數(shù)據(jù) SQL語句 String ls_empl_name // 變量定義 Select