sqlserver°²×°ºÍ¿ò¼Ü
ÎÒÃÇ×ÜÊÇ°ÑSQL Server Õâ¸öµ¥´Ê¹ÒÔÚ×ì±ß£¬Ò²ÐíºÜÉÙÓÐÈË˼¿¼¹ý SQL Server µ½µ×ÊÇʲô¶«Î÷¡£Õâ¸öÎÊÌâºÜÄÑÓü¸¾ä»°½²Çå³þ¡£ÎÒÃÇÖ®ËùÒÔÒªÓÃÁ¬Ôصķ½Ê½ÌÖÂÛ SQL Server£¬¾ÍÊÇÒª´Ó²»Í¬µÄ½Ç¶È²ûÊöÕâ¸öÎÊÌâ¡£
¡¡¡¡Ò»¡¢·þÎñÆ÷×é¼þ
¡¡¡¡SQL Server 2000ÓÉÁ½¸ö²¿·Ö×é³É£º·þÎñÆ÷×é¼þºÍ¿Í»§¶Ë¹¤¾ß¡£
¡¡¡¡1.ÄÚÈÝ
¡¡¡¡SQL ServerµÄ·þÎñÆ÷×é¼þÊÇÒÔ Windows ·þÎñ£¨Windows Services£©·½Ê½ÔËÐеġ£Ò»°ãÈÏΪSQL Server°üº¬ËÄÖÖWindows·þÎñ£¨ÕâÀïÎÒÃǹØ×¢OLTP¡¢ÔÝʱ²»¿¼ÂÇ OLAP£©£¬·Ö±ðÊÇ£ºMSSqlServer¡¢DTCDistributed Transaction Coordinator¡¢SQLServerAgent¡¢Search Service¡£
¡¡¡¡MSSqlServer ÊÇ×î³£ÓõķþÎñ£¬Ò»°ãµÄÊý¾Ý¿â¹¦Äܶ¼ÊÇÓÉËüÌṩµÄ£¬ÀýÈçÎļþ¹ÜÀí¡¢²éѯ´¦Àí¡¢Êý¾Ý´æ´¢µÈ£»DTCÊÇ·Ö²¼Ê½ÊÂÎñе÷Æ÷£¬Ö§³Ö¿çÔ½Á½¸ö»ò¶à¸ö·þÎñÆ÷µÄ¸üвÙ×÷À´±£Ö¤ÊÂÎñµÄÍêÕûÐÔ£»SQLServerAgent¸ºÔðSQL Server ×Ô¶¯»¯¹¤×÷£¬Èç¹ûÐèÒªSQL Server ÔÚÖ¸¶¨Ê±¼äÖ´ÐÐijһ¸ö´æ´¢¹ý³Ì£¬¾ÍÐèÒªÓõ½Õâ¸ö·þÎñÁË£»Search ServiceÊÇÈ«ÎIJéѯ·þÎñ£¬¸ºÔðÈ«ÎļìË÷·½ÃæµÄ¹¤×÷¡£
¡¡¡¡2.Ò»·ÖΪËĵÄÀíÓÉ
¡¡¡¡ÏÖÔÚÎÒÃÇÖªµÀÁË SQL Server µÄºËÐÄÊÇËĸö·þÎñÆ÷×é¼þ£¬ËüÃÇÊÇÒÔ Windows ·þÎñµÄÐÎʽÔËÐеġ£´ÏÃ÷µÄ¶ÁÕßÒ²Ðí»á˼¿¼ÕâÑùµÄÎÊÌ⣺Ϊʲô·þÎñÆ÷×é¼þÒÔ Windows ·þÎñ·½Ê½ÔËÐÐ?ΪʲôÐèÒª°ÑÍêÕûµÄϵͳ·Ö¸î³ÉËĸö·þÎñÆ÷×é¼þ?
¡¡¡¡¡ñÖ®ËùÒÔ°ÑSQL Server·þÎñÆ÷×é¼þ×÷ΪWindows·þÎñ³ÌÐò£¬Ö÷ÒªÊÇÒòΪWindows ·þÎñ³ÌÐòÄܹ»ÔÚÓû§Ã»ÓеǼµÄÇé¿öÏÂʹÓá£
¡¡¡¡¡ñÖ®ËùÒÔ°ÑSQL ServerµÄºËÐŦÄÜ·ÖΪËĸöWindows ·þÎñ³ÌÐò£¬Ö÷ÒªÊÇ¿¼ÂÇÁËÒÔÏÂÒòËØ£ºÕâЩWindows ·þÎñ³ÌÐò¸÷×Ô¸ºµ£µÄÈÎÎñ¹¦ÄÜÉÏÊÇ¿É·Ö¸îµÄ£¬ÕâÊÇÇ°ÌáÌõ¼þ£»²»ÊÇÿ¸öÓ¦Óö¼ÐèҪʹÓÃËĸö·þÎñËùÌṩµÄËùÓй¦ÄÜ£¬ÈÃÓû§ÓÐÑ¡ÔñµÄ¹Ø±ÕһЩ·þÎñ£¬ÎÞÒÉ¿ÉÒÔ½ÚʡϵͳµÄ×ÊÔ´£¬Ò²¿ÉÒÔ½ÚÊ¡Óû§»¨ÔÚ¹ÜÀíÉϵľ«Á¦£»×îºó£¬·Ö¿ª³ÉΪ¶à¸ö·þÎñ³ÌÐò£¬¾Í¿ÉÒÔΪÿһ¸ö·þÎñÉ趨²Ù×÷ϵͳ¼¶µÄ°²È«²ßÂÔ¡£
¡¡¡¡¶þ¡¢¿Í»§¶Ë¹¤¾ß
¡¡¡¡SQL Server 2000 µÄºËÐÄÊÇÉÏÎÄÌÖÂÛµÄÄÇЩ·þÎñÆ÷×é¼þ£¬µ«Óû§Ö±½Ó½Ó´¥µÄÈ´²»ÊÇËüÃÇ£¨ËäÈ»ÕæÕý¸É»îµÄÊÇËüÃÇ£©£¬¶øÊÇ¿Í»§¶Ë¹¤¾ß¡£·þÎñÆ÷×é¼þÊÇÒýÇ棬¿Í»§¶Ë¹¤¾ßÊÇÓû§½çÃ棬Á½ÕßÊÇÏศÏà³ÉµÄ¡£
¡¡¡¡ÈÃÎÒÃÇ¿´¿´SQL Server 2000 µÄ¿Í»§¶Ë¹¤¾ßµ½µ×ÓÐÄÄЩ——ÆóÒµ¹ÜÀíÆ÷¡¢²éѯ·ÖÎöÆ÷¡¢Ê¼þ̽²éÆ÷¡¢·þÎñ¹ÜÀíÆ÷¡¢¿Í»§¶ËÍøÂçʵÓù¤¾ß¡¢·þÎñÆ÷ÍøÂçʵÓù¤¾ß¡¢µ¼ÈëºÍµ¼³öÊý¾Ý£¨DTS£©µÈµÈ¡£
¡¡¡¡·þÎñÆ÷×é¼þÓë¿Í»§¶Ë¹¤¾ß¹¦Ä
Ïà¹ØÎĵµ£º
ÒÔÇ°¾³£Óöµ½Êý¾Ý¿âÈÕÖ¾ÎļþËð»µ,»òÕ߶ªÊ§µÄÇé¿ö,½ñÌ콫½â¾ö·½°¸Ð´ÏÂÀ´,ÒÔºó±ðÈËÔÙÎÊÆð¾Í¸øËû¸öÁ´½Ó,¶à·½±ã°¡.
ºÇºÇ:
1.н¨Ò»¸öͬÃûµÄÊý¾Ý¿â
2.ÔÙÍ£µôsql server(×¢Òâ²»Òª·ÖÀëÊý¾Ý¿â)
3.ÓÃÒª¸½¼ÓµÄÊý¾ÝÎļþ¸²¸ÇµôÕâ¸öн¨µÄÊý¾Ý¿â
4.ÔÙÖØÆôsql server
5.´Ëʱ´ò¿ªÆóÒµ¹ÜÀíÆ÷ʱ»á³öÏÖÖÃÒÉ£¬ÏȲ»¹Ü£¬Ö´ÐÐÏÂÃæµÄÓï¾ä£¨×¢ ......
ÒÔ³¬¼¶¹ÜÀíÔ±µÇ¼ϵͳ£¬È»ºóÖ´ÐÐÒÔϽű¾¾Í¿ÉÒÔÅúÁ¿Ð޸ĶÔÏóËùÓÐÕß¡£
sp_configure 'allow updates','1'
go
reconfigure with override
go
update sysobjects set uid=1 where uid<>1
go
sp_configure 'allow updates','0'
go
reconfigure with override ......
±íA
tmpA:
id name
00 Ãû×ÖA
01 Ãû×ÖB
02 Ãû×ÖC
03 Ãû×ÖD
04 Ãû×ÖE
tmpB:
id class
02 °à¼¶A
06 & ......
mysql ´ó¶ÔÏó´æÈ¡:
ÀàÐÍÒ»°ãÓ¦¸ÃÓÃmediumblod,
blobÖ»ÄÜ´æ2µÄ16´Î·½¸öbyte,
mediumblodÊÇ24´Î·½,
Ò»°ãÀ´Ëµ¹»ÓÃÁË.longblobÊÇ32´Î·½ÓÐЩ´ó.
MYSQLĬÈÏÅäÖÃÖ»ÄÜ´æ1M´óСµÄÎļþ,ÒªÐÞ¸ÄÅäÖÃ,WIN°æ±¾µÄÔÚmysql.iniÎļþÖÐ
ÐÞ¸Ämax_allowed_packet,net_buffer_lengthµÈ¼¸¸ö²ÎÊý,»òÖ±½ÓSET GLOBAL varName=value.
linux°æ± ......
Êý¾ÝÀï(sqlserver) µÄ²Ù×÷ £º
eg £º2008-3-31 10:34 --> 2008-3-31
Ò».½ØÈ¡×Ö·û´®·½Ê½
select substring('2008-3-31 10:34',0,charindex(' ','2008-3-31 10:34'))
¶þ.
Select
CONVERT(varchar, getdate(), 1),--mm/dd/yy
CONVERT(varchar, getdate(), 2),--yy.mm.dd
CONVERT(varchar, getdate() ......