sql server ÈÕÖ¾ÎļþµÄÊÕËõ
ÍêÈ«±¸·Ý»òÈÕÖ¾±¸·ÝËä˵¶¼ÓнضÏÈÕÖ¾µÄ¹¦ÄÜ,µ«ÊDz»»áÊÕËõÈÕÖ¾ÎļþµÄ¿Õ¼ä·µ»Ø¸ø²Ù×÷ϵͳ.
Èç¹ûÄãÏ뽫ÈÕÖ¾ÎļþµÄ¿Õ¼ä·µ»Ø¸ø²Ù×÷ϵͳµÄ»°,Ö»ÓÐÒ»ÖÖ·½·¨,¾ÍÊÇÊÕËõÊý¾Ý¿â(Ñ¡ÔñÈÕÖ¾Îļþ)
ZTÒ»¸öÏà¹ØÌû×Ó,¹©²Î¿¼!
ÎïÀíÈÕÖ¾Îļþ£º
Õâ¸ö±È½ÏºÃÀí½â£¬ÊµÊµÔÚÔڵĶ«Î÷£¬Êý¾Ý¿âĿ¼ÏÂÃæµÄ.ldfÎļþ¾ÍÊÇ£¬ÓÐЩÈËϲ»¶¸Äºó׺£¬¸Ð¾õ²»´óºÃ£¬Êý¾Ý¿âµÄÊÂÎñÈÕÖ¾¼Ç¼¾ÍÔÚÕâÀïÃæ
ÐéÄâÈÕÖ¾£º
ÏàÐŶàÊýÈËÓÐÕâ¸ö¸Ð¾õ£¬ÐéÄâÕâ¸ö×ÖÑÛ×ÜÊÇÉñÃصĴúÃû´Ê£¬ÐéÄâ¸ö·¹µº°®ÎÒϲ»¶£¬µ«ÐéÄâÈÕÖ¾£¬ÐéÄâÄڴ棬ÐéÄâ¡£¡£¡£¡££¬¿´Á˾ÍÌÖÑá¡£½âÊÍÓ¦¸ÃÊÇÕâÑùµÄ£¬¶ÔÓÚÒ»¸ö»ò¶à¸öÁ¬ÐøµÄÎïÀíÈÕÖ¾Îļþ£¬SQL SERVERÔÚÕâЩÎļþµÄÄÚ²¿ÓÖ»®·Ö³ÉÁ˶à¸öСµÄÎļþ£¬³ÆΪÐéÄâÈÕÖ¾Îļþ£¬ËûÊÇÈÕÖ¾ÎļþÊÕËõºÍÈÕÖ¾½Ø¶ÏµÄ×îСµ¥Î»£¬±ÈÈçÎïÀíÈÕÖ¾ÎļþÊÇ400M£¬ÄÚ²¿»®·ÖÁË4¸ö100MµÄÐéÄâÎļþ£¬ÊÕËõʱÄãµÃµ½µÄÊÇ300M£¬200M£¬²»¿ÉÄܵõ½239M£¬¶ÔÓÚÒ»¸öÎïÀíÎļþ£¬»á»®·Ö³É¶àÉÙ¸öÐéÄâÎļþ£¬Õâ¸öÓÉSQL×Ô¼ºÎ¬»¤£¬Î¨Ò»¿ÉÒÔÈ˹¤¸ÉÔ¤µÄÊÇÖ¸¶¨½Ï´óµÄÎïÀíÈÕÖ¾Îļþ£¬²¢Ö¸¶¨½Ï´óµÄÔö³¤±ÈÀý£¬ÕâÑù¿ÉÄÜÐéÄâÎļþµÄ¿éÍ·»á´óµã£¬ÊýÁ¿»áÉٵ㣬ϵͳµÄά»¤¿ªÏú»áµÍÒ»µã
Âß¼ÈÕÖ¾£º
²»ÒªÍ·ÔΣ¬Ó²×ÅͷƤ¿´°É£¡£¡£¡¸Ð¾õÕâ¸öÓ¦¸ÃÊÇÊý¾Ý¿âÊÂÎñÈÕÖ¾µÄÕæʵдÕÕ£¬ÎïÀíÈÕÖ¾ÎļþºÃ±ÈÊÇÒ»¸öÈÝÆ÷£¬ÀïÃæÈÝÄɵÄÊÇÈÕÖ¾¼Ç¼£¬ÕâЩ¼Ç¼¾Í³ÆΪÂß¼ÈÕÖ¾£¬´ÓÎïÀíÈÕÖ¾ÎļþµÄÆðµã¿ªÊ¼£¬Âß¼ÈÕ־˳ÐòµÄÉú³É£¬¼Ç¼ÏÂÊý¾Ý¿âÀï·¢ÉúµÄÿ¸öÊÂÎñ£¬ÕâЩÊÂÎñ±»´òÉÏÒ»¸ö±êÇ©£¬LSN£¬Ë³ÐòµÄÅÅÁÐÏÂÀ´£¬ÕâÑùÂß¼ÈÕÖ¾¾ÍÔÚÎïÀíÈÕÖ¾ÎļþÄÚÂýÂýµÄ³É³¤£¬Ö±µ½³äÂúÁËËû£¬Õâ¸öʱºòÎïÀíÈÕÖ¾Îļþ¾Í»á×Ô¶¯Ìí¼ÓеĿռ䣬ÒÔ¼ÌÐøÇ°ÃæµÄ²½Ö裬ÕâÖÖÇé¿öÊÇ×îÖ±½ÓµÄÒ»ÖÖ£¨´ÓÀ´²»½Ø¶ÏÈÕÖ¾£¬»ù±¾ÉϾÍÊÇÕâÑùµÄ£©£¬µ«ÊÂʵÉÏÍùÍùÊǸ´ÔӵĶà
¼ì²âµã(checkpoint)ºÍ»Ö¸´ÖÜÆÚ(recovery interval)£º
checkpoint²»ÊÇÓÃÓÚ¼ì²éÊý¾ÝÊÇ·ñÍêÕû£¬Ò³ÃæÁ¬½ÓÊÇ·ñÕýÈ·µÄ£¬ËûÊÇÓÉϵͳά»¤µÄÒ»¸ö½ø³Ì£¨ÄãÒ²¿ÉÒÔÊÖ¹¤µÄÖ´ÐУ©£¬ÓÃÓÚ½«¸ßËÙ»º´æÀïµÄÔàҳˢе½´ÅÅÌ£¬Á½ÕßµÄÅäºÏËãÊÇΩÃîΩФ£¬µ±»º´æÖеÄÔàÒ³»ýÀÛµ½Ò»¶¨µÄÊýÁ¿£¬SQL¹À¼ÆÑÝËãÕâЩÔàÒ³Òª»¨µÄʱ¼ä¿ìÒª½Ó½üÉ趨µÄrecovery interval£¨·ÖÖÓ£©Ê±£¬ÏµÍ³¾Í»á²úÉúÒ»¸öcheckpoint£¬ËùÒÔcheckpointµÄ²úÉú²»ÊǶ¨Ê±µÄ£¬ËüÓÉrecovery intervalºÍÊý¾Ý¿âµÄ¸üÐÂƵ·±¶È¾ö¶¨¡£Èç¹ûÄãµÄÊý¾Ý¿âÓÀÔ¶²»ÓÃÖØÆô£¬ÓÀÔ¶²»»á³öÏÖʲô¹ÊÕÏ£¬¾ÍÕâôһֱÔËÐÐÏÂÈ¥£¬ÄÇôcheckpointºÍrecovery interval¾ÍûÓÐÏëÏóÖеÄÖØÒªÁË£¬SQL×ÜÊ
Ïà¹ØÎĵµ£º
Ò»¡¢ ¼òµ¥²éѯ
¼òµ¥µÄTransact-SQL²éѯֻ°üÀ¨Ñ¡ÔñÁÐ±í¡¢from×Ó¾äºÍWHERE×Ӿ䡣ËüÃÇ·Ö±ð˵Ã÷Ëù²éѯÁС¢²éѯµÄ
±í»òÊÓͼ¡¢ÒÔ¼°ËÑË÷Ìõ¼þµÈ¡£
ÀýÈ磬ÏÂÃæµÄÓï¾ä²éѯtesttable±íÖÐÐÕÃûΪ“ÕÅÈý”µÄnickname×ֶκÍemail×ֶΡ£
SELECT nickname,email
from testtable
WHERE name='ÕÅÈý'
(Ò») Ñ¡Ôñ ......
drop table father;
create table father(
id int identity(1,1) primary key,
name varchar(20) not null,
age int not null
)
drop table mother;
create table mother(
id int identity(1,1),
name varchar(20) not null,
age int not null,
husban ......
Ò»¸ö¼òµ¥µÄÀý×Ó£º
ÏȽ¨Ò»¸öC#Àࣺ
ÒýÓÃSystem.Data.Linq.dll³ÌÐò¼¯£¬
using System.Data.Linq.MappingºÍ
using System.Data.Linq Á½¸ö¿Õ¼ä¡£
[Table]
public class Inventory
{
[Column]
public string Make;
[Column]
public string Color;
&nbs ......
ͬһ±í¶à×Ö¶ÎͬʱÖظ´¼Ç¼µÄSQL²éѯ¼°´¦ÀíÊý
±ÈÈçÏÖÔÚÓÐÒ»ÈËÔ±±í £¨±íÃû£ºpeosons£©
ÈôÏ뽫ÐÕÃû¡¢Éí·ÝÖ¤ºÅ¡¢×¡Ö·ÕâÈý¸ö×Ö¶ÎÍêÈ«ÏàͬµÄ¼Ç¼²éѯ³öÀ´
select p1.* from persons p1,persons p2 where p1.idp2.id and p1.cardid = p2.cardid and p1.pname = p2.pname and p1.address ......
ÎÒ°²×°µÄÊÇsql server 2000ËĺÏÒ»°æ±¾£¬Õý³£Í¾¾¶Ö±½Ó°²×°ÊÇ×°²»Éϵģ¬Òª´òʲôSP3²¹¶¡£¬²»ÒªÀíËü£¬´ò¿ª°²×°°ü£¬Àï±ßÓиöMSDEĿ¼£¬Ö´ÐÐsetup.exe£¬°²×°ºÜ˳Àû£¬×°ÍêÖ®ºóÊÇûÓз´Ó¦µÄ£¬ÖØÆô¼ÆËã»ú£¬È»ºóÄÜ¿´µ½sql server·þÎñÒѾÆô¶¯£¬ÕâÑù£¬¾Í¿ÉÒÔÕý³£°²×°ÁË£¬Ö´Ðа²×°°ü¸ùĿ¼Ïµİ²×°³ÌÐò£¬°´Ìáʾһ²½ ......