sql sever 2005 saĬÈÏÃÜÂëÊǶàÉÙ
Ê×ÏÈ£¬ÓÃwindows Éí·ÝÑéÖ¤ µÇ½ sql server 2005
ÒÀ´ÎÕ¹¿ª
°²È«ÐÔ->µÇ¼Ãû
Ñ¡ÖÐ sa ÓÒ¼üµ¥»÷
Ñ¡ÖÐ ÊôÐÔ
µ¯³ö sa µÄÊôÐÔ¶Ô»°¿ò
¾ÍÔÚÃÜÂë´¦ ¸Ä ÃÜÂë ÐÐÁË
¸ÄÁËÃÜÂëºó Óà sa ºÍ Äã¸ÄµÄÃÜÂëµÇ½
Èç¹û»¹µÇ½²»ÉÏ
¾ÍÊÇÄãû´ò¿ª sql serverºÍ windowsÉí·ÝÑéÖ¤
ºÍûÊÚÓè sa µÇ½ȨÏÞ
½â¾ö°ì·¨ÈçÏÂ
£º£º£º£º£º£º£º£º£º£º£º£º£º£º£º£º£º£º£º£º£º
³öÏÖ´ËÇé¿öÒ»°ãµÄ½â¾ö·½·¨ÊÇ£º
ÓÃ windows Éí·ÝÑéÖ¤
½øÈëÊý¾Ý¿âÒÔºó ´ò¿ª °²È«ÐÔ-->µÇ¼Ãû
Èçͼ£º
ÔÚsa ÉÏÓÒ¼üµã»÷ È»ºóÑ¡Ôñ×ÓÏî ÊôÐÔ
½øÈ¥ºó£¬ÏÈÑ¡Ôñ ״̬£¬°Ñ µÇ½ Ñ¡ÉÏ ÆôÓà £º£º ÊÇ·ñÔÊÐíÁ¬½Óµ½Êý¾Ý¿âÒýÇæ Ñ¡ÉÏ ÊÚÓè
Èçͼ
ÏȲ»×ż±È·¶¨
ÔÙÑ¡Ôñ ³£¹æ
ÔÚ ÃÜÂë ºÍ È·ÈÏÃÜÂë´¦ ÌîдÄúҪΪ sa Õ˺ÅÉèÖõÄÃÜÂë ÀýÈç 123456
Èçͼ
µã»÷ È·¶¨
OK
Õ˺ŠÉèÖúÃÁË
ÏÂÒ»²½ £º
ÔÚÄúµÄ·þÎñÆ÷ʵÀýÉϵ¥»÷ÓÒ¼ü Ñ¡Ôñ ÊôÐÔ
Èçͼ
Ñ¡Ôñ °²È«ÐÔ
Èç¹ûÄú·¢ÏÖ ÓÒ±ßµÄ ·þÎñÆ÷Éí·ÝÑéÖ¤ ÒѾѡÉÏÁË SQL Server ºÍ Winodws Éí·ÝÑé֤ģʽ
ÄǾͲ»ÓùÜËüÁË
Èç¹ûûѡÉÏ ¾ÍҪѡÉÏ
Èçͼ
ºÃÁË µ¥»÷ È·¶¨
ÌáʾҪÖØÐÂÆô¶¯SQL Server ijЩÅäÖøü¸Ä²Å»áÉúЧ
µã È·¶¨
ÔÙÔÚÄúµÄ·þÎñÆ÷ʵÀýÉϵ¥»÷ÓÒ¼ü Ñ¡ÉÏ ÖØÐÂÆô¶¯
OK
ÉèÖÃÍêÁË
ÍêÉÆ´ð°¸
Ïà¹ØÎĵµ£º
Join²Ù×÷·û
ÊÊÓó¡¾°£ºÔÚÎÒÃDZí¹ØϵÖÐÓÐÒ»¶ÔÒ»¹Øϵ£¬Ò»¶Ô¶à¹Øϵ£¬¶à¶Ô¶à¹ØϵµÈ¡£¶Ô¸÷¸ö±íÖ®¼äµÄ¹Øϵ£¬¾ÍÓÃÕâЩʵÏÖ¶Ô¶à¸ö±íµÄ²Ù×÷¡£
˵Ã÷£ºÔÚJoin²Ù×÷ÖУ¬·Ö±ðΪJoin(Join²éѯ), SelectMany(SelectÒ»¶Ô¶àÑ¡Ôñ)ºÍGroupJoin(·Ö×éJoin²éѯ)¡£
¸ÃÀ©Õ¹·½·¨¶ÔÁ½¸öÐòÁÐÖмüÆ¥ÅäµÄÔªËؽøÐÐinner join²Ù×÷
SelectMany
˵Ã÷£ºÎÒà ......
ʾÀý
A. ʹÓôøÓи´ÔÓ SELECT Óï¾äµÄ¼òµ¥¹ý³Ì
ÏÂÃæµÄ´æ´¢¹ý³Ì´ÓËĸö±íµÄÁª½ÓÖзµ»ØËùÓÐ×÷Õߣ¨ÌṩÁËÐÕÃû£©¡¢³ö°æµÄÊé¼®ÒÔ¼°³ö°æÉç¡£¸Ã´æ´¢¹ý³Ì²»Ê¹ÓÃÈκβÎÊý¡£
USE pubs
IF EXISTS (SELECT name from sysobjects
WHERE name = 'au_info_all' AND type = 'P')
&nb ......
# MySQL-Front 5.1 (Build 4.2)
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE */;
/*!40101 SET SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES */;
/*!40103 SET SQL_NOTES='ON' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS */ ......
½ñÌì³é³öÒ»µãʱ¼ä½âÊͼ¸¸ö¹ØÓÚSQLÈÕÖ¾µÄ¸ÅÄËûÃÇÒ²¾³£Ê¹³õѧÕßÍû¶øÖ¹²½£¬·´Õý¼ÆËã»úµÄÊõÓﶼÊǺܳéÏóµÄ£¬ËùÒÔµÚÒ»¸Ð¾õ¾ÍÊÇÍ·ÌÛ£¬È»ºóÈ»ºó¼¸´Îºó¾Íû¸Ð¾õÁË.ÒÔÏÂÓÐЩÊÇ´ÓÊéÉÏÕª³µÄ,ÓеÄÊÇ´ÓÍøÉÏÕÒµÄËãÊǽ軨Ï×·ð°É!!
¡¡¡¡ÎïÀíÈÕÖ¾Îļþ£º
Õâ¸ö±È½ÏºÃÀí½â£¬ÊµÊµÔÚÔڵĶ«Î÷£¬Êý¾Ý¿âĿ¼ÏÂÃæµÄ.ldfÎļþ ......
°¥£¬»¹ÊÇÉÏÖܵÄÊÂÇéÁË£¬csdnµÄ²©¿Í×î½üÕ¦ÀÏÊÇ´ò²»¿ªÄØ£¡
»ù±¾Óï¾ä£ºAlter table ±íÃû drop Column ×Ö¶ÎÃû
Áíµ¥µ¥ÊÇÕâÑùÊDz»ÐеΣ¬»¹ÒªÉ¾³ý¶ÔÓ¦µÄ¹ØϵµÎ¡£ÏÂÃæ¾Í°Ñ²éÕÒµ½µÄÄÇƪÎÄÕÂÒýÓÃÏ°ɣ¡
ÔÎĵØÖ·£ºhttp://hi.baidu.com/lisky119/blog/item/3c348c082573949c0a7b82d1.html
SET ANSI_NULLS ON
GO
SET QUOTED_IDENT ......