Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

[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¡£


Ïà¹ØÎĵµ£º

SQL server µÚÈýƪ ¶à±íÁª½Ó²éѯ

        ¶à±íÁª½Ó²éѯ
Ò»¡¢¶à±íÁª½Ó²éѯµÄ·ÖÀà
¶à±íÁª½Ó²éѯʵ¼ÊÉÏÊÇͨ¹ý¸÷¸ö±íÖ®¼ä¹²Í¬ÁеĹØÁªÐÔÀ´²éѯÊý¾ÝµÄ£¬ËüÊǹØϵÊý¾Ý¿â²éѯ×îÖ÷ÒªµÄÌØÕ÷¡£
Áª½Ó²éѯ¿É·ÖΪÈý´óÀ࣬·ÖÁíΪ£º
1£®  ÄÚÁª½Ó¡£
2£®  ÍâÁª½Ó¡£
3£®  ½»²æÁª½Ó¡£
ÄÇôÎÒÃÇÒ»ÆðÀ´¿´Ò»ÏÂÈçºÎʹÓö ......

1.ʲô½ÐSQL×¢È룿ÈçºÎ·ÀÖ¹£¿Çë¾ÙÀý˵Ã÷

1.ʲô½ÐSQL×¢È룿ÈçºÎ·ÀÖ¹£¿Çë¾ÙÀý˵Ã÷
´ð£ºSQL×¢ÈëÊdz£¼ûµÄÀûÓóÌÐò©¶´½øÐй¥»÷µÄ·½·¨¡£µ¼ÖÂsql×¢Èë¹¥»÷²¢·ÇϵͳÔì³ÉµÄ£¬Ö÷ÒªÊdzÌÐòÖкöÂÔÁË°²È«ÒòËØ£¬ÀûÓÃsqlÓïÑÔ©¶´»ñµÃºÏ·¨Éí·ÝµÇ½ϵͳ 
ÀýÈ磺
"Select * from users where name='"+uName+"' and pwd='"+uPwd+"' " ......

SQL Server 2005ÎÞ·¨Æô¶¯~£¡£¡£¡£¡

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 ²»Í¬Êý¾Ý¿âµÄÊý¾Ý±í¸´ÖÆ

 sql 2005±íµÄ¸´ÖÆÓÐÁ½ÖÖ£ºÒ»ÖÖ¾ÍÊÇ°ÑÕû¸ö±í¸´ÖƹýÈ¥£¬¾ÍºÃÏñ¸´ÖÆÎļþ²¢ÇÒÖØÃüÃû¡£±ðÍâÒ»ÖÖ¾ÍÊǰѱíµÄÄÚÈݸ´Öƹý³ö.
select * into newtable form oldtable;°Ñoldtabel¸´ÖƵ½newtableÇÒnewtable²»´æÔÚ,·ñÔò³ö´í.;
insert into newtable select * from oldtable°ÑoldtableµÄÄÚÈݲåÈëµ½newtable, newtableÒ»¶¨Òª´æÔÚ, ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ