ÅúÁ¿Æô¶¯¹Ø±ÕMS SQL 2005·þÎñBAT
µ±×°ÉÏÁËMSSQL2005ºó£¬ÄÚ´æµÄÕ¼Óûá±äµÃºÜ´ó¡£ËùÒÔÈç¹ûÓÃÒ»¸öÅúÁ¿´¦ÀíÀ´¿ªÆô»ò¹Ø±ÕMSSQL2005ËùÓеķþÎñ£¬Äǽ«»áÈÃÎÒÃǵĵçÄÔ¸üºÃʹÓ᣸ù¾Ý×Ô¼ºµÄ¾Ñ飬×ö³öÁËÏÂÃæÁ½¸öÅú´¦Àí£º
1¡¢¿ªÆô·þÎñ£º£¨¸´ÖƺáÏßµÄÄÚÈÝ£¬×¢Ò⣬·þÎñÆ÷ÕæÕýµÄÃû³ÆÄã¿ÉÒÔͨ¹ý“¿ªÊ¼--¡·¿Ø¼þÃæ°æ--¡·¹ÜÀí¹¤¾ß--¡··þÎñ--¡·ÕÒµ½ÏàÓ¦µÄ·þÎñÆ÷ÏÔʾÃû³ÆÈ»ºóµã»÷ÓÒ¼ü£¬¿ÉÒÔ¿´µ½³£¹æÀïÓÐÒ»¸ö‘·þÎñÆ÷Ãû³Æ’£¬ÄǸö²ÅÊÇ·þÎñµÄÕæÕýÃû³Æ”£©
---------------------------------------------------------------------------------------------------
@ECHO OFF
ECHO ÕýÔÚÆô¶¯MS Server 2005Ïà¹Ø·þÎñ£¬ÇëµÈ´ý ... ...
net start MSSQL$MSSQL
net start SQLAgent$MSSQL
net start MSOLAP$MSSQL
net start SQLBrowser
net start msftesql$MSSQL
net start ReportServer$MSSQL
net start MsDtsServer
echo MS Server 2005Òѳɹ¦Æô¶¯£¬Çë°´ÈÎÒâ¼üÍ˳ö... ...
echo. & pause
--------------------------------------------------------------------------------------------------
2¡¢¹Ø±Õ·þÎñ£º
--------------------------------------------------------------------------------------------------
@ECHO OFF
ECHO ÕýÔڹرÕMS Server 2005Ïà¹Ø·þÎñ£¬ÇëµÈ´ý ... ...
net stop MSSQL$MSSQL /y
net stop SQLAgent$MSSQL
net stop MSOLAP$MSSQL
net stop SQLBrowser
net stop msftesql$MSSQL
net stop ReportServer$MSSQL
net stop MsDtsServer
echo MS Server 2005Òѳɹ¦¹Ø±Õ£¬Çë°´ÈÎÒâ¼üÍ˳ö... ...
echo. & pause
--------------------------------------------------------------------------------------------------
ÎÒÕâÀïÊÇÓÃNET START ºÍNET STOPÀ´¿ª¹Ø·þÎñ£¬ÓÃSC START ºÍSC STOPÀ´ºÃÏñÔڹرշþÎñÆ÷ʱ²»ÄÜÈ«¹Ø¡£
Áíһƪ
2°²×°Íê±ÏSQL SERVER 2005ºó£¬»áĬÈÏ×Ô¶¯Æô¶¯SQL ServerµÈ¼¸¸ö·þÎñ£¬Õ⼸¸ö·þÎñ±È½ÏÕ¼ÓÃϵͳ×ÊÔ´¡£µ±²»ÔËÐÐSQL Serverʱ£¬×îºÃÍ£Ö¹ÕâЩ·þÎñ¡£Èç¹ûÒ»¸ö¸öµã»÷ÕâЩ·þÎñ£¬¹ýÓÚÂé·³ÁË£¬¿ÉÒÔÓÃÅú´¦ÀíÎļþÀ´Æô¶¯ºÍÍ£Ö¹¸ÃÀà·þÎñ¡£
Ê×ÏȽ«“¿ØÖÆÃæ°å->¹ÜÀí¹¤¾ß->·þÎñ”ÀïÃæµÄSQL SERVER 2005Ïà¹ØµÄ·þÎñÆô¶¯ÀàÐÍÉèÖÃΪÊÖ¶¯£¨SQL Server¿ªÍ·µÄ·þÎñ£©£¬È»ºóн¨Á¢Ò
Ïà¹ØÎĵµ£º
select * from books
where 1=1
and categoryid=29
and title like('%ASP.NET%')
and unitprice>10
order by id
Select top 20 * from books order by id
--m:ÿҳÏÔʾÐÐÊý n£ºµ±Ç°Ò³Êý
select Top m * from books
where id not in
(Select top m(n-1) id from books order by id)
order by id
select * fro ......
ÎÒÃÇÔÚ¿ª·¢¹ý³ÌÖУ¬¾³£Óöµ½ÕâÑùÎÊÌ⣬¾ÍÊÇÒªÇó¶¨ÆÚ½øÐÐÊý¾Ý¿âµÄ¼ì²é£¬Èç¹û·¢ÏÖÌض¨Êý¾Ý£¬ÄÇô¾ÍÒª½øÐÐijÏî²Ù×÷£¬Õâ¸öÐèÇóÄØ£¬¿ÉÒÔÀûÓÃWindowsµÄ¼Æ»®ÈÎÎñ£¬¶¨ÆÚÖ´ÐÐijһ¸öÓ¦ÓóÌÐò£¬È¥¼ìË÷Êý¾Ý£»Ò²¿ÉÒÔÈóÌÐò×Ô¼º¿ØÖÆ¡£ÆäʵSQL Server×Ô¼ºÒ²¿ÉÒÔ´´½¨¼Æ»®ÈÎÎñ£¬¶¨ÆÚ½øÐÐÖ´ÐС£Èç¹ûÊý¾Ý¿â·þÎñÆ÷ÔÊÐí£¬¿ÉÒÔ¿¼ÂDzÉÓÃÕâÖÖ·½Ê½¡£
......
×î¼òµ¥µÄSQL ServerÊý¾Ý¿â´æ´¢¹ý³Ì·ÖÒ³
·¢²¼Ê±¼ä£º2008.07.02 05:11 À´Ô´£ºÈüµÏÍø ×÷ÕߣºAlizze
¡¾ÈüµÏÍø£IT¼¼Êõ±¨µÀ¡¿×î¼òµ¥µÄSQL ServerÊý¾Ý¿â´æ´¢¹ý³Ì·ÖÒ³:
1.Ö»ÐèÒªÌṩSqlÓï¾äºÍÿҳµÄ¼Ç¼Êý,Ò³Êý¾Í¿ÉÒÔÁË
2,Ëٶȳ¬¿ìÓ´,100W¼Ç¼1~3Ãë¾Í·Ö³öÀ´ÁË
......
(1)¶þ½øÖÆÊý¾ÝÀàÐÍ
¡¡¡¡¶þ½øÖÆÊý¾Ý°üÀ¨ Binary¡¢Varbinary ºÍ Image
¡¡¡¡Binary
Êý¾ÝÀàÐͼȿÉÒÔÊǹ̶¨³¤¶ÈµÄ(Binary),Ò²¿ÉÒÔÊDZ䳤¶ÈµÄ¡£
¡¡¡¡Binary[(n)] ÊÇ n λ¹Ì¶¨µÄ¶þ½øÖÆÊý¾Ý¡£ÆäÖУ¬n
µÄÈ¡Öµ·¶Î§ÊÇ´Ó 1 µ½ 8000¡£Æä´æ´¢ñ¿µÄ´óСÊÇ n + 4 ¸ö×Ö½Ú¡£
¡¡¡¡Varbinary[(n)] ÊÇ n
λ±ä³¤¶ÈµÄ¶þ½øÖÆÊý¾Ý¡£ÆäÖУ ......