SQL Server 2005Éý¼¶µÄ10¸öÀíÓÉ
SQL Server 2005Éý¼¶µÄ10¸öÀíÓÉ
¡¡ºÜ¶àÈ˹ØÐĵĺ͵£ÐĵĶ¼ÊÇ SQL Server 2005 Ïà¶ÔËüµÄÇ°°æ±¾SQL Server 2000Ëù×öµÄÖØ´ó¸Ä½ø»òÐÂÔö¹¦ÄÜ¡£ÔÚÎÒÉý¼¶µ½SQL2005Ö®ºó£¬²»µÃ²»ËµµÄ£ºÄãÒ²ÖµµÃÓµÓС£(Ì×ÓÃÒ»¾ä¹ã¸æÓºÇºÇ)
¡¡¡¡ÎÒ×ܽáÁËһϸöÈËÈÏΪSQL Server 2005 ÖÐ×îÖµµÃÄãΪ֮Éý¼¶µÄ10 ¸öÀíÓÉ¡£ÎÞÂÛÄãÊÇÏëÁ˽â»òѧϰSQL Server 2005£¬»¹ÊÇÕýÔÚÆÀ¹À»ò¿¼ÂÇÉý¼¶µ½SQL Server 2005£¬ÎÒÏàÐŵ±Ê±Äã¿´ÍêÕâƪÌû×ÓÒ»¶¨»á¶ÔÄãµÄ¾ö¶¨Æ𵽲ο¼×÷Óá£
¡¡¡¡Éý¼¶ÀíÓÉÒ»£ºÊý¾Ý·ÖÇø
¡¡¡¡Ö»Óе½ÁË2005 °æ±¾SQL Server²ÅÓµÓÐÁËÕæÕýµÄ±íºÍË÷ÒýÊý¾Ý·ÖÇø¼¼Êõ¡£Õâ¸ö¼¼ÊõÒ»ÏÂ×ÓʹSQL ServerÊý¾Ý¿â´Ó“Çà׳Äꔳɳ¤Îª³ÉÊìµÄÆóÒµ¼¶Êý¾Ý¿â²úÆ·£¬ÊÇÒ»¸öÀï³Ì±®ÐÔÖʵıêÖ¾¡£Êý¾Ý·ÖÇø¼¼Êõ¼«´ó¼ÓÇ¿Á˱íµÄ¿ÉÉìËõÐԺͿɹÜÀíÐÔ£¬Ê¹µÃSQLServer ´¦Àíº£Á¿Êý¾ÝµÄÄÜÁ¦ÓÐÁËÖʵķÉÔ¾£¬ÊÇÎÒÈÏΪ×îÖµµÃÉý¼¶µÄÒ»¸öÀíÓÉ¡£
¡¡¡¡Éý¼¶ÀíÓɶþ£º¿É±à³ÌÐÔ
¡¡¡¡CLR ¼¯³É
¡¡¡¡SQL Server 2005µÄ¿É±à³ÌÐÔÊÇÖµµÃÉý¼¶µÄµÚ¶þ¸öÖØÒªÀíÓÉ¡£´ÓÀ´Ã»ÓÐÄÄÒ»¸ö°æ±¾ÄÜÏñSQL Server 2005 ÕâÑù´øÀ´Õâô¶à±à³Ì·½ÃæµÄ±ä¸ï¡£ËµÀÏʵ»°£¬ÔÚÎÒÖªµÀµÄ˲¼äÎÒÊǾª´ôÁË¡£ÓÐЩ±ä»¯ÊǸïÃüÐԵġ£ÈçCLR(Common Language Runtime,¹«¹²ÓïÑÔÔËÐÐʱ)¼¯³É¡£Äã¿ÉÒÔÇáËÉÀûÓÃ.NETÓïÑÔµÄÓÅÊÆÈçÆäÃæÏò¶ÔÏóµÄ·â×°¡¢¼Ì³ÐºÍ¶à̬ÌØÐÔ£¬±àд³öÄÇЩÐèÒª¶ÔÊý¾Ý½øÐи´ÔÓÊýÖµ¼ÆËã»òÂß¼µÄ´úÂ룬Èç×Ö·û´®´¦Àí£¬Êý¾Ý¼ÓÃÜËã·¨£¬XMLÊý¾Ý²Ù×÷µÈµÈ¡£ÄãÏÖÔÚÐèÒªµÄ½ö½öÊÇ¿¼ÂÇʲôʱºòʹÓÃT-SQL ÓïÑÔ£¬Ê²Ã´Ê±ºòʹÓÃCLR¡£ÎҲ²âÄÇЩSQL ServerÈí¼þ¿ª·¢É̼¸ºõ»áÁ¢¼´Éý¼¶µ½SQLServer 2005 ÏíÊÜÊý¾Ý¿â±à³ÌµÄ±ã½Ý¡£
¡¡¡¡T-SQL ÓïÑÔÔöÇ¿
¡¡¡¡SQL Server 2005 ÖеÄT-SQLÓïÑÔÓÐÁ˷dz£´óµÄ¸Ä½ø¡£ÆäÖбÊÕß×îΪ³ÆµÀµÄÊÇÏÖÔÚ¿ÉÒÔʹÓúÍC++»òC#ÀàËƵÄTRYCATCH½á¹¹¶ÔT-SQL ½øÐдíÎó´¦ÀíÁË£¬´ó´ó¼ò»¯ÁËT-SQL´íÎó´¦Àí±à³Ì¡£¹À¼ÆºÜ¶àT-SQLÓïÑÔʹÓÃÕß¿ÉÄܾÍΪÁËÕâ¸öTRY-CATCH ½á¹¹¶øÆȲ»¼°´ýµØÉý¼¶µ½SQL Server 2005¡£
¡¡¡¡Éý¼¶ÀíÓÉÈý£º°²È«
¡¡¡¡SQL Server 2005 µÄ°²È«¹¦ÄÜÊÇÎÒÈÏΪֵµÃÉý¼¶µÄµÚÈý¸öÀíÓÉ¡£SQL Server 2005 µÄ°²È«´ïµ½ÁËÇ°ËùδÓеÄÇ¿´óˮƽ£¬ÓÐ×űÈÒÔÇ°°æ±¾¸üÇåÎúµÄ°²È«Ä£Ðͼ´Ö÷Ì壬°²È«¶ÔÏóºÍȨÏÞ¡£
¡¡¡¡Èç¹ûÄãÐèÒª±£»¤Êý¾Ý¿âÖеÄÃô¸ÐÊý¾Ý£¬ÄÇôSQL Server2005 ÖеÄÊý¾Ý¼ÓÃܹ¦Äܾø¶ÔÖµµÃ¿¼ÂÇ¡£ÒÔÇ°²»Ö¹Ò»´ÎÓпͻ§ÎÊÎÒÈçºÎ¼ÓÃÜÊý¾Ý¿âÖеÄijЩÊý¾Ý£¬ÊÇ·ñ¿ÉÒÔʹÓÃһЩÄÚ²¿²»¹«¿ªµÄº¯ÊýÈçPWDENCRYPT¼ÓÃÜÊý¾Ý¡£ÎҵĻشðÊÇʹÓÃWindowsµÄEFS(¼ÓÃ
Ïà¹ØÎĵµ£º
select * from tableName where datediff(week,dateField,getdate())=0
ÕâÑù²é³öÀ´µÄ½á¹ûÊÇ´ÓÐÇÆÚÌìµ½ÐÇÆÚÁù(ÀÏÍâĬÈÏÐÇÆÚÌìÊÇÒ»ÖܵĵÚÒ»Ìì).
Èç¹ûÏëÒÔÐÇÆÚÒ»×÷ΪµÚÒ»ÌìµÄ»°,Á½¸öʱ¼ä¶¼ÐèÒª¼õÒ»,ÈçÏÂ:
select * from tableName where datediff(week,dateField-1,getdate()-1)=0 ......
MSSQL»¹ÔÊý¾Ý¿âʧ°Ü£¬ÌáʾÈçÏ£º »¹Ô¶ÔÓë·þÎñÆ÷ ʧ°Ü¡£(Microsoft.SqlServer.Smo) ÆäËüÐÅÏ¢£º ©§ ©»¡úÖ´ÐÐTransact-SQLÓï¾ä»òÅú´¦Àíʱ·¢ÉúÒì³£¡££¨Microsoft.SqlServer.ConnectionsInfo£© ©§ ©»¡ú²»ÄÜÑ¡ÔñÎļþ»òÎļþ×é¡°¡¡¡±ÓÃÓڴ˲Ù×÷¡£ RESTORE DATABASE ÕýÔÚÒì³£ÖÕÖ¹¡££¨Microsoft SQL Server, ´íÎó£º3219£© ³öÏÖ´Ë ......
Ò»¡¢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. ¼ì²éÁ˺þà ·¢ÏÖ½«check model È¥µô¾Í¿ÉÒÔÁË£¡ÆäÖУ¬ o ......
Ò»°ãʹÓÃSQL ServerµÄ¼¯³ÉÈÏ֤ʱ£¬¶¼ÐèÒªµÇ½½øÓò£¬ÏÂÃæ½éÉÜÒ»ÖÖ²»ÐèÒªµÇ½Óò¾Í¿ÉÒÔʹÓÃÓòÓû§µÇ½SQL ServerµÄ·½·¨¡£
SQL Server Management Studio 2005ºÍ2008µÄ¿ì½Ý·½Ê½ÈçÏÂͼ£º
SQL Server 2008 x64: "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe"
SQL ......