Microsoft SQL Server 2005 JDBC Driver 1.1
Microsoft SQL Server 2005 JDBC Driver
1.1
¿ìËÙÃèÊö
ÏÂÔØ Microsoft SQL Server
2005 JDBC Driver 1.1£¬ÕâÊÇÒ»ÖÖ Type 4 JDBC Çý¶¯³ÌÐò£¬¿Éͨ¹ý J2EE£¨Java2 ÆóÒµ°æ£©Öеıê×¼ JDBC
Ó¦ÓóÌÐò±à³Ì½Ó¿Ú (API) ÌṩÊý¾Ý¿âÁ´½Ó¡£
±¾Ò³ÄÚÈÝ
¿ì
ËÙÏêϸÐÅÏ¢
¸Å
Êö
ϵ
ͳҪÇó
˵
Ã÷
Ïà
¹Ø×ÊÔ´
Æä
ËûÓû§ÕýÔÚÏÂÔصÄÄÚÈÝ
¸ÅÊö
Microsoft
Ò»Ö±ÖÂÁ¦ÓڸĽø»¥²Ù×÷ÐÔ£¬ÌṩÁË Java Database Connectivity (JDBC) Çý¶¯³ÌÐò£¬¿ÉÓë SQL Server
2005 Ò»ÆðʹÓá£SQL Server 2005 JDBC Driver ¿ÉÃâ·ÑÌṩ¸øËùÓÐµÄ SQL Server Óû§£¬Óû§¿É´ÓÈκÎ
Java Ó¦ÓóÌÐò¡¢Ó¦ÓóÌÐò·þÎñÆ÷»òÖ§³Ö Java µÄ Applet ÖзÃÎÊ SQL Server 2000 ºÍ SQL Server 2005
¡£ ÕâÊÇÒ»¿î Type 4 JDBC Çý¶¯³ÌÐò£¬Í¨¹ý J2EE£¨Java2 ÆóÒµ°æ£©Öеıê×¼ JDBC Ó¦ÓóÌÐò±à³Ì½Ó¿Ú (API)
ÌṩÊý¾Ý¿âÁ¬½Ó¡£
SQL Server 2005 JDBC Driver 1.1 Óë JDBC 3.0 ¼æÈÝ£¬ÔÚ Java Runtime Environment
(JRE) °æ±¾ 1.4 ºÍ¸ü¸ß°æ±¾ÉÏÔËÐС£ ÒÑÕë¶ÔËùÓÐÖ÷ÒªÓ¦ÓóÌÐò·þÎñÆ÷¶ÔÆä½øÐвâÊÔ£¬°üÀ¨ BEA WebLogic¡¢IBM
WebSphere¡¢JBoss ºÍ Sun¡£
×¢Òâ
JDBC Çý¶¯³ÌÐò¿ÉÔÚÈκÎÖ§³ÖʹÓà Java ÐéÄâ»ú
(JVM) µÄ²Ù×÷ϵͳÉϹ¤×÷¡£ µ«ÊÇ£¬Ö»ÓÐ Sun Solaris¡¢Red Hat Linux ºÍ Windows 2000
»ò¸ü¸ß°æ±¾µÄ²Ù×÷ϵͳÕýʽ֧³Ö JDBC Çý¶¯³ÌÐò¡£
·µ»ØÒ³Ê×
ϵͳҪÇó
Ö§³ÖµÄ²Ù×÷ϵͳ£º
Linux; Solaris;
Windows 2000 Service Pack 4; Windows Server 2003 R2 (32-Bit x86);
Windows Server 2003 x64 editions; Windows XP Service Pack 2
Java
Runtime Environment (JRE) 1.4 »ò¸ü¸ß°æ±¾
SQL Server 2005 »ò SQL
Server 2000
·µ»ØÒ³Ê×
˵Ã÷
×¢Ò⣺
ÒªÏÂÔØ SQL Server 2005 JDBC Driver
1.1£¬Äú±ØÐëͬÒâ Microsoft Èí¼þÐí¿ÉÌõ¿î¡£ ÇëÏȵ¥»÷´ËÒ³ÉϵēÏÂÔØ”°´Å¥£¬±ã»áÏÔʾÐí¿ÉÌõ¿î¡£
ÔĶÁÕâЩÌõ¿î£¬È»ºóµ¥»÷“½ÓÊÜ”Á´½Ó£¬ÒÔÏÂÔش˳ÌÐò°ü¡£ Çë´òÓ¡Ò»·ÝÐí¿ÉÌõ¿îµÄ¸±±¾£¬ÒԱ㱸°¸¡£
JDBC Driver µÄ Microsoft Windows °æ±¾°²×°ËµÃ÷
½«
sqljdbc_<version>_<language>.exe ÏÂÔص½ÁÙʱĿ¼¡£
ÔËÐÐ
sqljdbc_<version>_<language>.exe¡£
³öÏÖÌáʾºó£¬ÊäÈ밲װĿ¼¡£
½¨ÒéÄúʹÓÃĬÈÏĿ¼½«´Ë zip Îļþ½â°üµ½ %ProgramFiles% ÖУº “Microsoft SQL Server 2005 JDBC
Driver”¡£
½â°üÖ®ºó£¬Çë´ò¿ª JDBC
Ïà¹ØÎĵµ£º
¸ù¾ÝÉúÈÕµÄxxÔÂxxÈÕ²éÕÒÔÚ$checkDate¼ÆË㣬$beforeÈÕºóÉúÈյĿͻ§£º
$checkDateΪYYYY-MM-DD
WHERE substring(ADDDATE( '$checkDate', $before ),6,10)=substring(DATE_FORMAT(birthday,'%Y-%m-%d'),6,10)
$dates ÌìÄÚÉúÈյĿͻ§Î´¿¼Âǵ½Æ½Äê¡¢ÈòÄ꣺£º
$sql.=" (dayofyear( birthday )-dayofyear( ......
´ø´æÔÚÁ¿´ÊNOT EXISTSµÄSQLÓï¾äÎÊÌâ
ѧÉú±ístudent (snoѧºÅ snameÐÕÃû sdeptËùÔÚϵ)
¿Î³Ì±ícourse (cno¿Î³ÌºÅ cname¿Î³ÌÃû cpnoÑ¡Ð޿κŠccreditѧ·Ö)
ѧÉúÑ¡¿Î±ísc (sn0ѧºÅ cno¿Î³ÌºÅ grade³É¼¨)
¶ÔÒÔÉϱí½øÐвéÑ°Ñ¡ÐÞÁËÈ«²¿¿Î³ÌµÄѧÉúÐÕÃû
ÓÉÓÚ²»£¬Ã»ÓÐÈ«³ÆÁ¿´Ê£¬¿É½«ÌâÄ¿µÄÒâ˼ת»»ÎªµÈ¼ÛµÄ´æÔÚÁ¿´ÊÐÎʽ£º²éÑ ......
Ò»°ãµÄÔ¶³Ì·ÃÎʵÄд³ÉÕâÑù£º
Data Source=IP;Initial Catalog=Êý¾Ý¿âÃû;UserID=Óû§Ãû;Password=ÃÜÂë
±¾µØ·ÃÎʵÄд³ÉÕâÑù£º
Data Source=(local);Initial Catalog=Êý¾Ý¿âÃû;UserID=Óû§Ãû;Password=ÃÜÂë
Èç¹ûÊDZ¾µØµÄ£¬Í¨¹ýwindows×é¼þÑéÖ¤µÄ£¨Ò²¾ÍÊÇûÓÐÓû§Ãû£¬ÃÜÂëµÄ£©Ð´³ÉÕâÑù£º
Data Source=(local);Initial Cata ......
²éѯËÙ¶ÈÂýµÄÔÒòºÜ¶à£¬³£¼ûÈçϼ¸ÖÖ£º
¡¡¡¡1¡¢Ã»ÓÐË÷Òý»òÕßûÓÐÓõ½Ë÷Òý(ÕâÊDzéѯÂý×î³£¼ûµÄÎÊÌ⣬ÊdzÌÐòÉè¼ÆµÄȱÏÝ)
¡¡¡¡2¡¢I/OÍÌÍÂÁ¿Ð¡£¬ÐγÉÁËÆ¿¾±Ð§Ó¦¡£
¡¡¡¡3¡¢Ã»Óд´½¨¼ÆËãÁе¼Ö²éѯ²»ÓÅ»¯¡£
¡¡¡¡4¡¢ÄÚ´æ²»×ã
¡¡¡¡5¡¢ÍøÂçËÙ¶ÈÂý
¡¡¡¡6¡¢²éѯ³öµÄÊý¾ÝÁ¿¹ý´ó(¿ÉÒÔ²ÉÓöà´Î²éѯ£¬ÆäËûµÄ·½·¨½µµÍÊý¾ÝÁ¿)
¡¡¡¡7¡¢ ......