Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¶ÔÓÚDelphi 5 Êý¾Ý¿âÓ¦ÓÃÖÐODBCÊý¾ÝÔ´µÄ×Ô¶¯¹ÜÀí

ÕªÒªÕªÒª£º±¾ÎÄ·ÖÎöÁËODBCÊý¾ÝÔ´ÉèÖõÄÔ­ÀíÒÔ¼°ODBCÊý¾ÝÔ´ºÍDelphiÊý¾Ý¿â±ðÃûµÄ¹Øϵ¡£²¢ÔÚ´Ë»ù´¡ÉÏ£¬½éÉÜÁËÔÚDelphi5Êý¾Ý¿âÓ¦ÓóÌÐò°²×°¡¢ÔËÐÐÖУ¬ÈçºÎ±à³ÌʵÏÖODBCÊý¾ÝÔ´ºÍDelphiÊý¾Ý¿â±ðÃûµÄÉèÖá£
¹Ø¼ü×ÖÕªÒª£ºDelphi¡¢Êý¾Ý¿â¡¢ODBC
Ò»¡¢Ç°ÑÔ
DelphiµÄÌØÉ«Ö®Ò»¾ÍÊÇ·½±ã¶øÇ¿´óµÄ¿ª·¢Êý¾Ý¿âµÄÄÜÁ¦£¬Ö»ÒªÇá»÷¼¸ÏÂÊó±ê£¬Ìîд¼«Éٵļ¸ÐдúÂ룬¾ÍÄÜ¿ìËٵؿª·¢³öºÜÓзç¸ñµÄÊý¾Ý¿âÓ¦ÓóÌÐò¡£±àдһ¸öÊý¾ÝÓ¦ÓÿÉÒԺܼòµ¥£¬µ«ÒªÔÚ±ðÈ˵ļÆËã»úÉÏÔËÐÐ×Ô¼ºµÄÓ¦ÓÃÈ´Òª·ÑһЩÖÜÕÛ¡£
Ê×ÏÈ£¬¼ÙÈç¶Ô·½µÄ¼ÆËã»úÉÏ»¹Ã»Óа²×°¹ýInprise¹«Ë¾µÄBDEÊý¾Ý¿âÒýÇæµÄ»°£¬ÄÇô¾Í±ØÐë°ÑBDEºÍÓ¦ÓóÌÐòÒ»Æð°²×°µ½¶Ô·½µÄ¼ÆËã»úÖС£Æä´Î£¬Ó¦ÓóÌÐòÖÐÓõ½µÄÊý¾Ý¿â±ðÃû£¨Alias£©£¬·Ç·²ÊÇʹÓÃÁËODBCÊý¾ÝÔ´Á¬½ÓµÄÊý¾Ý¿â±ðÃû±ØÐëºÍBDEÒ»ÆðÉèÖá£×îºó£¬¼ÙÈçÓ¦ÓóÌÐòʹÓõÄÊý¾Ý¿â£¬Æä´æ·Å·¾¶²¢²»Êǹ̶¨µÄ£¬ÄÇô±ØÐë¸ù¾Ýʵ¼ÊÇé¿ö½øÐÐODBCºÍAliasµÄµ÷Õû¡£ÕâЩ£¬µ±È»¿ÉÒÔÔÚÓ¦ÓóÌÐò°²×°ºó£¬ÀûÓÿØÖÆÃæ°åÖÐODBCÊý¾ÝÔ´¹ÜÀíºÍBDEËæ´øµÄBDE Administratorͨ¹ýÊÖ¹¤ÉèÖᣵ«Èç´ËÒ»À´£¬Ò»·½Ãæ»áʹӦÓóÌÐò´ó´òÕÛ¿Û£¬ÁíÒ»·½Ãæ²»±ãÓÚÆÕͨÓû§×Ô¼ºµÄ°²×°ºÍ½ñºó¹¤×÷·¾¶µÄ¸Ä¶¯¡£
ºÍDelphiÒ»Æð·¢²¼µÄInstall Shield Express¿ÉÒÔ´ó´ó¼ò»¯°²×°³ÌÐòµÄÖÆ×÷£¬°ïÖúÎÒÃÇÍê³ÉÐí¶à¹¤×÷¡£±¾ÎĽ«Òª½éÉܵģ¬±ãÊÇÈçºÎͨ¹ýInstall ShieldºÍÓ¦ÓóÌÐòÅäºÏ£¬Íê³É°²×°ºÍÔËÐÐʱµÄODBCÊý¾ÝÔ´µÄ×Ô¶¯ÉèÖá£
¶þ¡¢Ô­Àí
1¡¢ODBCÊý¾ÝÔ´
ODBC£¨Open DataBase Conectivity£©ÊÇ΢Èí¹«Ë¾Öƶ¨µÄ±ê×¼±à³Ì½Ó¿Ú£¬Ö»ÒªÓÐÏàÓ¦µÄODBCÇý¶¯³ÌÐò£¬¾Í¿ÉÒÔͨ¹ýODBCÁ¬½á²Ù×÷¸÷ÖÖ²»Í¬µÄÊý¾Ý¿â¡£Í¨³£Í¨¹ý¿ØÖÆÃæ°åÖеÄODBC Data SourceÀ´ÅäÖÃODBCµÄÊý¾ÝÔ´¡£ËùνODBCÊý¾ÝÔ´¾ÍÊÇÃüÃûµÄÒ»×éÐÅÏ¢£¬°üÀ¨ÐèÒªÁ¬½áµÄÊý¾Ý¿âËùÔÚλÖ㨿ÉÒÔÊÇ´ÅÅÌĿ¼/Îļþ£¬Ò²¿ÉÒÔÊÇÍøÂç·þÎñÆ÷£©¡¢¶ÔÓ¦µÄODBCÇý¶¯³ÌÐòÒÔ¼°·ÃÎÊÊý¾Ý¿âËùÐèµÄÆäËûÏà¹ØÐÅÏ¢£¬Óû§¿ÉÒÔͨ¹ýÊý¾ÝÔ´µÄÃû³Æ(DSNs£¬Data Source Names)À´Ö¸¶¨ËùÐèµÄODBCÁ¬½Ó¡£
DSNs°´ÕÕÆä±£´æ·½Ê½ºÍ¹¦ÄÜ·¶Î§·ÖΪÈýÖÖÕªÒª£ºÓû§DSN¡¢ÏµÍ³DSNºÍÎļþDSN¡£Ã¿¸öÎļþDSN±£´æÔÚµ¥¶ÀµÄÒ»¸öÎļþÖУ¬Îļþ¿ÉÒÔÔÚÍøÂ緶ΧÄÚ¹²Ïí£»Óû§DSN±£´æÔÚ×¢²á±íÖУ¬Ö»¶Ôµ±Ç°Óû§¿É¼û£»ÏµÍ³DSNÒ³±£´æÔÚ×¢²á±íÖУ¬µ«¶ÔϵͳÖеÄËùÓÐÓû§¿É¼û¡£Óû§DSNºÍϵͳDSNµÄÇø±ðÔÚÓÚ£¬Óû§DSN±£´æÔÚ×¢²á±íµÄHKEY_CURRENT_USERÏ£¬¶øϵͳDSN±£´æÔÚHKEY_LOCAL_MACHINEÏ¡£
ÏÂÃ棬ÒÔϵͳDSNΪÀý˵Ã÷ÈçºÎͨ¹ýÐÞ¸Ä×¢²á±íÖ±½ÓÉèÖÃODBCÊý¾ÝÔ´¡£¼Ù¶¨ÎÒÃÇÒªÁ¬½ÓµÄÊý¾


Ïà¹ØÎĵµ£º

DelphiµÄTThreadÀà

 DelphiµÄTThreadÀà
http://bigpower.blog.51cto.com/209892/89525
ÎÒÃdz£Óй¤×÷Ï̺߳ÍÖ÷Ïß³ÌÖ®·Ö£¬¹¤×÷Ï̸߳ºÔð×÷һЩºǫ́²Ù×÷£¬±ÈÈç½ÓÊÕÓʼþ£»Ö÷Ï̸߳ºÔð½çÃæÉϵÄһЩÏÔʾ¡£¹¤×÷Ï̵߳ĺô¦ÔÚijЩʱºòÊDz»ÑÔ¶øÓ÷µÄ£¬ÄãµÄÖ÷½çÃæ¿ÉÒÔÏìÓ¦ÈκβÙ×÷£¬¶ø±³ºóµÄÏß³ÌÈ´ÔÚĬĬµØ¹¤×÷¡£
VCLÖУ¬¹¤×÷Ïß³ÌÖ´ÐÐÔÚExecute·½·¨ÖÐ ......

Îò͸delphi µÚ¶þÕ DELPHIÓëWIN32ʱ¿Õ

µÚÒ»Õ  DELPHIµÄÔ­×ÓÊÀ½ç
µÚ¶þÕ  DELPHIÓëWIN32ʱ¿Õ
µÚÈýÕ  ¶àÏß³Ì
µÚËÄÕ  ½Ó¿Ú
µÚÎåÕ  °ü
µÚÁùÕ  ʼþÓëÏûÏ¢
µÚÆßÕ  ×éÖ¯ÄãµÄÄ£¿é
µÚ°ËÕ  ̽Ë÷Êý¾Ý¿â
µÚ¾ÅÕ  ¶à²ãÌåϵ½á¹¹
µÚʮՠ ²Ù×÷½çÃæÓë²Ù×÷Âß¼­
µÚʮһÕ  ÃæÏò¶ÔÏóÊý¾Ý¿â»ù´¡
µÚ¶þÕÂ&n ......

Îò͸delphi µÚËÄÕ ½Ó¿Ú

µÚÒ»Õ  DELPHIµÄÔ­×ÓÊÀ½ç
µÚ¶þÕ  DELPHIÓëWIN32ʱ¿Õ
µÚÈýÕ  ¶àÏß³Ì
µÚËÄÕ  ½Ó¿Ú
µÚÎåÕ  °ü
µÚÁùÕ  ʼþÓëÏûÏ¢
µÚÆßÕ  ×éÖ¯ÄãµÄÄ£¿é
µÚ°ËÕ  ̽Ë÷Êý¾Ý¿â
µÚ¾ÅÕ  ¶à²ãÌåϵ½á¹¹
µÚʮՠ ²Ù×÷½çÃæÓë²Ù×÷Âß¼­
µÚʮһÕ  ÃæÏò¶ÔÏóÊý¾Ý¿â»ù´¡
µÚËÄÕÂ&n ......

Îò͸delphi µÚÆßÕ ×éÖ¯ÄãµÄÄ£¿é

µÚÒ»Õ  DELPHIµÄÔ­×ÓÊÀ½ç
µÚ¶þÕ  DELPHIÓëWIN32ʱ¿Õ
µÚÈýÕ  ¶àÏß³Ì
µÚËÄÕ  ½Ó¿Ú
µÚÎåÕ  °ü
µÚÁùÕ  ʼþÓëÏûÏ¢
µÚÆßÕ  ×éÖ¯ÄãµÄÄ£¿é
µÚ°ËÕ  ̽Ë÷Êý¾Ý¿â
µÚ¾ÅÕ  ¶à²ãÌåϵ½á¹¹
µÚʮՠ ²Ù×÷½çÃæÓë²Ù×÷Âß¼­
µÚʮһÕ  ÃæÏò¶ÔÏóÊý¾Ý¿â»ù´¡
 ¿Õ ......

Îò͸delphi µÚ°ËÕ ̽Ë÷Êý¾Ý¿â

µÚÒ»Õ  DELPHIµÄÔ­×ÓÊÀ½ç
µÚ¶þÕ  DELPHIÓëWIN32ʱ¿Õ
µÚÈýÕ  ¶àÏß³Ì
µÚËÄÕ  ½Ó¿Ú
µÚÎåÕ  °ü
µÚÁùÕ  ʼþÓëÏûÏ¢
µÚÆßÕ  ×éÖ¯ÄãµÄÄ£¿é
µÚ°ËÕ  ̽Ë÷Êý¾Ý¿â
µÚ¾ÅÕ  ¶à²ãÌåϵ½á¹¹
µÚʮՠ ²Ù×÷½çÃæÓë²Ù×÷Âß¼­
µÚʮһÕ  ÃæÏò¶ÔÏóÊý¾Ý¿â»ù´¡
 ¿Õ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ