SQL Server CE·þÎñÆ÷¶ËºÍ¿Í»§¶Ë°²×°ÅäÖÃѧϰ±Ê¼Ç
SQL Server 2005 CE¿ª·¢»·¾³½éÉÜ£º
×î½üѧϰʹÓÃSQL Server 2005 Compact Edition½øÐÐÊý¾Ý´æ´¢£¬ÔÚѧϰµÄ¹ý³ÌÖз¢ÏÖ£¬Ê¹ÓÃSQL Server2005 management Studio´´½¨Êý¾Ý¿âʱ£¬ÔÚ“·þÎñÆ÷ÀàÐÍ”ÏÂÀÁбíÖÐûÓГSQL Server Compact Edition”Ñ¡Ïî¡£ÒòΪÎÄÕÂÖÐÓÐÌáʾ±ØÐë°²×°SQL Server 2005 SP2 ²ÅÄÜʹÓÃÕâ¸ö¹¦ÄÜ£¬Òò´ËÌØÈ¥ÏÂÔØÁËÒ»¸öSP2£¬µ«ÊÇ°²×°ºó·¢ÏÖ»¹ÊÇûÓС£°Ù¶ÈÁËһϣ¬¿´µ½½éÉÜSQL Server CE °²×°µÄÎÄÕÂÓÖ˵Ҫ°²×°Ê²Ã´SDK£¬»¹ÓзþÎñÆ÷ÅäÖÃʲôµÄ£¬ÂÒÆß°ËÔãµÄ×°Á˲»ÉÙ¶«Î÷£¬½á¹û»¹ÊÇûÓÐÈκθı䣬һÆø֮ϣ¬¸É´àÈ¥¿ØÖÆÃæ°åÀï°ÑËùÓкÍSQL Server CEÏà¹ØµÄ°²×°È«²¿Ð¶ÔØÁË¡£ÕâôһÀ´£¬³öÏÖÁËÒ»¸öеÄÎÊÌ⣬²»¹ýÒ²¾ÍÊÇÕ⣬ʹµÃÎÒ¶ÔSQL Server CEµÄ°²×°¹¹ÔìÓÐÁ˽øÒ»²½µÄÈÏʶ¡£
µ½µ×³öÏÖʲôÎÊÌâÄØ£¿µ±ÎÒ°ÑÈ«²¿SQL Server CEÏà¹ØµÄ°²×°¶¼Ð¶Ôغ󣬷¢ÏÖÔ±¾¿ÉÒÔÖ±½ÓÔÚVisual Studio 2005Öд´½¨SQL Server CEÊý¾Ý¿âµÄ²Ù×÷²»ÄÜÖ´ÐÐÁË£¬¶øÇÒÔÚ“Êý¾Ý”—“Ìí¼ÓеÄÊý¾ÝÔ´”—“Êý¾Ý¿â”---“Êý¾ÝÔ´”ÖÐûÓÐÁËSQL Server 2005 Compact EditionÑ¡Ïî¡£²éÕÒ·¢ÏÖ£¬ÔÀ´ÎÒÔÚ¸Õ¿ªÊ¼É¾³ý³ÌÐòµÄʱºò£¬°ÑVisual Studio2005ÖÐ×Ô´øµÄSQL Server2005 Mobile Edition¸øɾµôÁË£¬½â¾ö·½·¨Ö»ÐèÒª½«Visual Studio2005°²×°¹âÅÌ·ÅÈë¹âÇýÖØа²×°SQL Server2005 Mobile Edition×é¼þ¼´¿É¡£´ÓÕâµã¿ÉÒÔÖªµÀ£¬ÒªÔÚ.NetÖÐʹÓÃSQL Server CE±ØÐë°²×°SQL Server2005 Mobile Edition×é¼þ¡£
×î³õµÄÄǸöÎÊÌ⣬¼´“·þÎñÆ÷ÀàÐÍ”ÏÂÀÁбíÖÐûÓДSQL Server Compact Edition”Ñ¡ÏҲ˳ÀûµÃµ½½â¾ö¡£Æð³õÎÒÒÔΪ»úÆ÷ÉÏ°²×°µÄSQL Server 2005°æ±¾ÊÇExpress°æ±¾£¬¿ÉÄܹ¦Äܲ»È«£¬µ«ÊǺóÀ´¿´ÊéÉϽéÉܵēϵͳҪÇó”ÀïÌáµ½¿ÉÒÔÊÇExpress°æ±¾£¬Òò´Ë¾Í¿ªÊ¼»³ÒÉÊDz»ÊÇSP2²¹¶¡´ò´íÁË£¬×îºóÏÂÔØÁËhttp://www.microsoft.com/downloads/details.aspx?familyid=4C6BA9FD-319A-4887-BC75-3B02B5E48A40&displaylang=zh-cnÕâ¸ö°æ±¾£¨¾ßÓи߼¶·þÎñµÄMicrosoft SQL Server 2005 Express Edition SP2£©¾Í¿ÉÒÔÁË¡£
ËùÓеÄWindows Mobile6É豸ÒѾ¸½´ø.NET Compact Framework 2.0 SP1ºÍSQL Server CE£¬Õâ¾ÍÒâζ×ÅÔÚ¿ª·¢ÍйܴúÂë³ÌÐòÊ
Ïà¹ØÎĵµ£º
PowerDesignerÉú³ÉsqlºÍ·´Ïò¹¤³ÌÉú³ÉERͼµÄÎÊÌâ
Ò»¡¢PowerDesignerÉú³ÉsqlÎÊÌâ
Éú³ÉsqlµÄ·½·¨ÊÇ Database -->Generate Database (Ctrl + G ) µ«ÊÇÌáʾ
Could not load VBScript engine.
Check VBScript installation.
Generation aborted due to errors detected during the verification of the model.
¼ì²éÁ˺à ......
ÓÒ»÷ÒªÇå³ýÈÕÖ¾µÄÊý¾Ý¿â Ñ¡ÔñÊôÐÔ
ÔÚÊý¾Ý¿âÊôÐÔÖÐ Ñ¡ÔñÑ¡Ïî ÔÚÓұ߻ָ´Ä£Ê½ÏÂÀÁбí¿òÖÐ Ñ¡Ôñ¼òµ¥ µ¥»÷È·¶¨ ·µ»Ø
ÓÒ»÷ÒªÇå³ýÈÕÖ¾µÄÊý¾Ý¿â Ñ¡ÔñÈÎÎñ-ÊÕËõ-Êý¾Ý¿â µ¥»÷È·¶¨
Íê³ÉÊÕËõ ÈÕÖ¾Îļþ´óС±äΪ0 ......
http://zhanglei1286.blog.163.com/blog/static/1895797120091112113019600/
ÔÚºǫ́´úÂëÀ
SQL 2000:
static string StrConn = "server=.;uid=sa;pwd=sa;database=MyCUDS";
SQL2005:
con = new SqlConnection(@"Server=.\SQLExpress;Database=db_CMS;Persist Security Info=True;User ID=sa;Password=Masslong");
......
×î½üÔÚѧϰoracleµÄʱºòÓöµ½Ò»¸öÎÊÌ⣬ÀÏÊÇŪ²»Çå³þwhere ºÍhavingµÄÇø±ð£¬ÔÚÍøÉϲéÒ»²é£¬¸Ð¾õ»¹¿ÉÒÔ£¬°ÑÒÔÏÂÎÒ²éµÄ×ÊÁÏÍƼö¸ø´ó¼Ò¡£
ÔÚselect Óï¾äÖпÉÒÔʹÓÃgroup by ×Ӿ佫Ðл®·Ö³É½ÏСµÄ×飬Ȼºó£¬Ê¹ÓþÛ×麯Êý·µ»Øÿһ¸ö×éµÄ»ã×ÜÐÅÏ¢£¬ÁíÍ⣬¿ÉÒÔʹÓÃhaving×Ó¾äÏÞÖÆ·µ»ØµÄ½á¹û¼¯¡£group&n ......
ÓÃTSQL°ÑAccessµÄ±íµ¼Èëµ½Ô¶³ÌSql Server£º
°Ñaccess µÄ.mdbÀït_itemList ±íµÄÊý¾Ý²åÈëµ½Ô¶³ÌSqlServerµÄt_itemL1111111±íÀï¡£
SELECT top 10 * INTO t_itemL1111111 IN [ODBC]
[ODBC;Driver=SQL Server; UID=jyb;PWD=jyb;Server=10.1.18.49;DataBase=ËùÓкϲ¢;]
&nb ......