[SQL Server 2008]SQL Server 2008 °²×°Ê¾ÀýÊý¾Ý¿â
ÏÂÔصØÖ·£ºhttp://msftdbprodsamples.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=19353
ÎÒÏÂÔصÄÊÇSQL2008.AdventureWorks_All_Databases.x86.msi£¬±¾²»ÏëÏÂÔØÕâÖÖ°²×°Îļþ£¬µ«½Å±¾Îļþ×ÜÊÇÖ´Ðгö´í£¬ÔÒòû¾ßÌåÉ¡£ÕâÖÖ°²×°Îļþ°²×°ºó»á´´½¨Áù¸ö¿âAdventureWorks¡¢AdventureWorks2008¡¢AdventureWorksDW¡¢AdventureWorksDW2008¡¢AdventureWorksLT¡¢AdventureWorksLT2008¡£¿ÉÒÔ°ÑÕâЩ°²×°ºóµÄÊý¾Ý¿âÎļþ¶¼±¸·ÝÏÂÀ´ÁË£¬ÒÔ±ãÒÔºóÖØװϵͳʣµÄÔÙÓÃÄǸö°²×°Îļþ£¬Ö±½Ó¸½¼ÓÉϾͺÃÁË¡£
Ìáʾ£ºÔÚÓð²×°Îļþ°²×°µÄʱºò¿ÉÄÜ»á³öÏÖ£º "PrepInstance() failed for MSSQLSERVER. The following features are missing: Full Text Search. Fix the problems and re-run setup."ÕâÑùµÄÌáʾ£¬´ò¿ªWindows·þÎñ£¬ÕÒµ½SQL Full-text Filter Daemon Launcher (MSSQLSERVER)Õâ¸ö·þÎñ£¬ÉèΪÊÖ¶¯²¢Æô¶¯Ëü¡£Ôٴΰ²×°Ê¾ÀýÊý¾Ý¿âOK¡£
ÒÔÏÂתÔØ£º
AdventureWorks2008ÖÐʹÓÃÁËSQL2008µÄÐÂÌØÐÔFILESTREAM£¬ËùÒÔ±ØÐëÒªÆôÓøÃÌØÐÔ²ÅÄܹ»»¹ÔÊý¾Ý¿â³É¹¦¡£¾ßÌåÆô¶¯FILESTREAMµÄ²Ù×÷ÈçÏ£º
£¨1£©ÔÚSSMSÖУ¬´ò¿ªÊý¾Ý¿âʵÀýµÄÊôÐÔ´°¿Ú£¬Ôڸ߼¶Ñ¡ÏÖн«“ÎļþÁ÷·ÃÎʼ¶±ð”ÉèÖÃΪÒÑÆôÓÃÍêÈ«·ÃÎÊ»òÕßÒÑÆôÓÃT-SQL·ÃÎÊ¡£È»ºóµ¥»÷“È·¶¨”°´Å¥¡£
£¨2£©ÔÚÅäÖùÜÀíÆ÷Öн«SQL Server·þÎñµÄFILESTREAM´ò¿ª£¬Èçͼ£º
£¨3£©ÖØÆôSQL Server·þÎñ£¬È»ºóÔÙ»¹ÔAdventureWorks2008Êý¾Ý¿â¼´¿É¡£
ÁíÍâÁ½¸öʾÀýÊý¾Ý¿âÒ²½Ó×Å»¹Ô¼´¿É¡£
AdventureWorks2008ÓëSQL2005µÄAdventureWorksÊý¾Ý¿âÓÐÒÔÏÂÌØÐÔÉϵIJ»Í¬£º
1.ΪÁËʹÓÃEntity Framework£¬ËùÒÔÌí¼ÓÁËPerson.BusinessEntityAddressÕâÑùµÄ±í¡£
2.ÔÚ±íHumanResources.EmployeeÖÐʹÓÃÁËhierarchyid µÄÊý¾ÝÀàÐÍ¡£
3.ÔÚ±íHumanResources.EmployeeÖÐʹÓÃÁËdateÀàÐÍ£¬ÔÚHumanResources.Shift±íÖÐʹÓÃÁËtimeÊý¾ÝÀàÐÍ¡£
4.ÔÚ±íPerson.AddressÖÐʹÓÃÁ˵ØÀí¿Õ¼äÊý¾ÝÀàÐÍgeography¡£
Ïà¹ØÎĵµ£º
¶à±íÁª½Ó²éѯ
Ò»¡¢¶à±íÁª½Ó²éѯµÄ·ÖÀà
¶à±íÁª½Ó²éѯʵ¼ÊÉÏÊÇͨ¹ý¸÷¸ö±íÖ®¼ä¹²Í¬ÁеĹØÁªÐÔÀ´²éѯÊý¾ÝµÄ£¬ËüÊǹØϵÊý¾Ý¿â²éѯ×îÖ÷ÒªµÄÌØÕ÷¡£
Áª½Ó²éѯ¿É·ÖΪÈý´óÀ࣬·ÖÁíΪ£º
1£® ÄÚÁª½Ó¡£
2£® ÍâÁª½Ó¡£
3£® ½»²æÁª½Ó¡£
ÄÇôÎÒÃÇÒ»ÆðÀ´¿´Ò»ÏÂÈçºÎʹÓö ......
1.ʲô½ÐSQL×¢È룿ÈçºÎ·ÀÖ¹£¿Çë¾ÙÀý˵Ã÷
´ð£ºSQL×¢ÈëÊdz£¼ûµÄÀûÓóÌÐò©¶´½øÐй¥»÷µÄ·½·¨¡£µ¼ÖÂsql×¢Èë¹¥»÷²¢·ÇϵͳÔì³ÉµÄ£¬Ö÷ÒªÊdzÌÐòÖкöÂÔÁË°²È«ÒòËØ£¬ÀûÓÃsqlÓïÑÔ©¶´»ñµÃºÏ·¨Éí·ÝµÇ½ϵͳ
ÀýÈ磺
"Select * from users where name='"+uName+"' and pwd='"+uPwd+"' " ......
2010-05-05 13:35:52.06 Server Microsoft SQL Server 2005 - 9.00.1399.06 (Intel X86)
Oct 14 2005 00:33:37
Copyright (c) 1988-2005 Microsoft Corporation
Developer Edition on Windows NT 5.1 (Build 2600: Service Pack 3)
2010-05-05 13:35:52.06 Server (c) 2005 Microsoft Corporation.
201 ......
sql 2005±íµÄ¸´ÖÆÓÐÁ½ÖÖ£ºÒ»ÖÖ¾ÍÊÇ°ÑÕû¸ö±í¸´ÖƹýÈ¥£¬¾ÍºÃÏñ¸´ÖÆÎļþ²¢ÇÒÖØÃüÃû¡£±ðÍâÒ»ÖÖ¾ÍÊǰѱíµÄÄÚÈݸ´Öƹý³ö.
select * into newtable form oldtable;°Ñoldtabel¸´ÖƵ½newtableÇÒnewtable²»´æÔÚ,·ñÔò³ö´í.;
insert into newtable select * from oldtable°ÑoldtableµÄÄÚÈݲåÈëµ½newtable, newtableÒ»¶¨Òª´æÔÚ, ......