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

SQL SERVER 2005Ⱥ¼¯


SQL SERVER 2005µÄȺ¼¯±ØÐëÔÚʵÏÖÁËWINDOWSȺ¼¯µÄ»ù´¡ÉϲſÉÒÔ¡£
Ê×ÏÈÎÒÃÇÏÈÀ´¿´Ò»ÏÂSQL SERVER 2005Ⱥ¼¯µÄһЩÏà¹Ø½éÉÜ£º
ÔÚSQL SERVER 2005ÖÐÖ÷Òª¿ÉÒÔʹÓþµÏñºÍȺ¼¯Á½ÖÖ·½·¨À´ÊµÏָ߿ÉÓÃÐÔ£¬ÖÁÓÚÊý¾Ý¿â¾µÏñ×÷ΪSQL SERVER 2005µÄÐÂÌØÐÔÖ®Ò»£¬ÎÒÔÚÇ°ÃæµÄ²©ÎÄÒѾ­×öÁ˽éÉÜ£¬½ñÌìÎÒÃǾÍÀ´¿´Ò»ÏÂȺ¼¯µÄÅäÖ÷½·¨£ºµ±È»ËüÃǶ¼¿ÉÒÔʵÏÖÊý¾Ý¿âµÄ¸ß¿ÉÓÃÐÔ£¬µ«»¹ÊÇÓÐÒ»¶¨µÄÇø±ðµÄ£º
Êý¾Ý¿â¾µÏñºÍ¹ÊÕÏתÒÆȺ¼¯×îÖ÷ÒªµÄ²îÒì¾ÍÊÇÌṩÁ˲»Í¬¼¶±ðµÄÈßÓà¡£Êý¾Ý¿â¾µÏñÌṩµÄ±£»¤ÊÇÊý¾Ý¿â¼¶±ðµÄ£¬¶øȺ¼¯ÌṩµÄ±£»¤ÊÇ·þÎñÆ÷ʵÀý¼¶±ðµÄ¡£ÁíÒ»¸öÖ÷Òª²î±ð¾ÍÊÇÔÚÊý¾Ý¿â¾µÏñÖУ¬Ö÷·þÎñÆ÷ºÍ¾µÏñ·þÎñÆ÷ÊǶÀÁ¢µÄ SQL SERVERʵÀý£¬Á½¸öʵÀýÓв»Í¬µÄÃû³Æ£»¶øȺ¼¯ÖÐµÄ SQL SERVERʵÀýÔòʹÓÃÏàͬµÄÐéÄâ·þÎñÆ÷Ãû³ÆºÍIPµØÖ·£¬¶øÇÒÎÞÂÛÄĸö½ÚµãÖ÷³ÖȺ¼¯ÊµÀý£¬ÐéÄâ·þÎñÆ÷Ãû³ÆºÍIPµØַʼÖÕ±£³Ö²»±ä¡£
 Òò´Ë£¬ÔÚ·þÎñÆ÷Ò»¼¶µÄÊý¾Ý¿â±£»¤£¨³ÌÐòÐèҪͬʱ·ÃÎÊͳһ·þÎñÆ÷ÉϵĶà¸öÊý¾Ý¿â£©£¬¹ÊÕÏתÒÆȺ¼¯½«ÊǸüÊʺϵÄÑ¡Ôñ¡£µ«ÊÇ£¬Èç¹ûÿ´ÎÖ»ÐëΪһ¸öÊý¾Ý¿âÌṩ¿ÉÓÃÐÔ£¬ÄÇôÊý¾Ý¿â¾µÏñ¾ßÓиü¶àÓÅÊÆ¡£ 
Êý¾Ý¿â¾µÏñ²»ÏñȺ¼¯ÄÇÑùÐèҪרÃŵÄÓ²¼þ£¬Ò²Ã»Óй²Ïí´æ´¢½éÖÊʧ°ÜµÄDZÔÚΣÏÕ¡£Êý¾Ý¿â¾µÏñ¿ÉÒÔÔÚ×î¶Ìʱ¼äÄÚÈñ¸ÓÃÊý¾Ý¿â¿ªÊ¼Ìṩ·þÎñ£¬ÆäËٶȿìÓÚÈκÎÆäËüµÄ¸ß¿ÉÓü¼Êõ¡£´ËÍ⣬Êý¾Ý¿â¾µÏñÄܹ»ÓëADO¡£NETºÍSQL Native Access ClientºÜºÃµÄÅäºÏÔÚÒ»Æ𣬴ӶøʵÏÖ¿Í»§¶ËµÄ¹ÊÕÏתÒÆ¡£
 ÏÂÃæÎÒÃǾÍÀ´¿´Ò»ÏÂÊý¾Ý¿âȺ¼¯µÄ¾ßÌåÅäÖÃ
ʵÏÖ¹ý³Ì£º
1£®  ÒѾ­´î½¨ÁËWINDOWS 2003µÄȺ¼¯
2£®  Ϊ˽ÓÐÍø¿¨½ûÓÃNETBIOS
3£®  Ö¸¶¨Ò»¸öSQL SERVER¿ÉÓõĹ²Ïí´ÅÅÌÕóÁÐ
4£®  °²×°Î¢Èí·Ö²¼Ê½ÊÂÎñЭµ÷Æ÷£¨MSDTC£©²»¿ÉȱÉÙ¡£
5£®  ½ÚµãÉϲ»Òª°²×°·À¶¾Èí¼þºÍÖն˷þÎñ¡£°²×°ÁËÖն˷þÎñÆ÷£¬Èº¼¯°²×°²»ÁË¡£
6£®  ×îºÃΪ·þÎñÕʺÅÖ¸¶¨Ò»¸öÕÊ»§¡£
 
ÏÖÔÚÎÒÃÇÇ°ÃæÈý²½ÒѾ­Ç°ÃæµÄ²©ÎÄÖÐ×öÁ˽²½â¡£¿ÉÒԲο¼Ò»Ï£¡ÎÒÃÇ´ÓµÚËIJ½¿ªÊ¼×ö¡£
 
ÎÒµÄȺ¼¯ÍØÆËÈçͼËùʾ£º
SQL SERVER 2005µÄȺ¼¯±ØÐëÔÚʵÏÖÁËWINDOWSȺ¼¯µÄ»ù´¡ÉϲſÉÒÔ¡£
Ê×ÏÈÎÒÃÇÏÈÀ´¿´Ò»ÏÂSQL SERVER 2005Ⱥ¼¯µÄһЩÏà¹Ø½éÉÜ£º
ÔÚSQL SERVER 2005ÖÐÖ÷Òª¿ÉÒÔʹÓþµÏñºÍȺ¼¯Á½ÖÖ·½·¨À´ÊµÏָ߿ÉÓÃÐÔ£¬ÖÁÓÚÊý¾Ý¿â¾µÏñ×÷ΪSQL SERVER 2005µÄÐÂÌØÐÔÖ®Ò»£¬ÎÒÔÚÇ°ÃæµÄ²©ÎÄÒѾ­×öÁ˽éÉÜ£¬½ñÌìÎÒÃǾÍÀ´¿´Ò»ÏÂȺ¼¯µÄÅäÖ÷½·¨£ºµ±È»ËüÃǶ¼¿ÉÒÔʵÏÖÊý¾Ý¿âµÄ¸ß¿ÉÓÃÐÔ£¬µ«»¹ÊÇÓÐÒ»¶¨µÄÇø±ðµÄ£º
Êý¾Ý¿â¾µÏñºÍ


Ïà¹ØÎĵµ£º

SQLÖÐNµÄ×÷ÓÃ?

SQLÖÐNµÄ×÷ÓÃ?
exec sp_executesql N'SELECT TOP 1 ISNULL(vDefine1,'''') AS vMonth, dtBegin, dtEnd from SM_ActMonth WHERE vActID=@P1 AND bCarryForward=@P2 ORDER BY iListID DESC
', N'@P1 varchar(3),@P2 bit', '001', 1
exec sp_executesql N'SELECT * from KEHU WHERE KHDM>=@P1 AND ZK=@P2',N'@P1 VARCHAR ......

SQL Default Ô¼ÊøµÄ³õ²½ÈÏʶºÍÀí½â£¡

SQL Default Ô¼ÊøµÄ³õ²½ÈÏʶºÍÀí½â£¡
Ê×ÏÈ´´½¨Ò»Õűíhello
CREATE TABLE hello
(
Id_P int PRIMARY KEY,
Firstname varchar(50),
Lastname varchar(50),
Address varchar(50),
City varchar(50)
)
´´½¨Ô¼ÊøÌõ¼þ
CREATE DEFAULT beijing_const AS 'beijing'
°ó¶¨Ô¼ÊøÌõ¼þµ½ÁÐÉÏ
 sp_bindefault beijing_ ......

SQL SERVER 2008 ѹËõ±¸·Ý

/*
    SQL SERVER 2008 ѹËõ±¸·Ý
 
 
 
    SQL SERVER 2008 ÔÚÆóÒµ°æºÍ¿ª·¢°æÖÐÒýÈëÁ˱¸·ÝѹËõ.ʹÓÃÕ߸ö¹¦ÄÜ¿ÉÒÔ¸ü¿ìËٵı¸·ÝÊý¾Ý¿â²¢ÇÒ
    ÏûºÄ¸üÉٵĴÅÅÌ¿Õ¼ä.ѹËõÁ¿ÒÀÀµÓÚÊý¾Ý¿âÖд洢µÄÊý¾Ý.ÀýÈç,º¬ÓÐÖظ´Öµ×Ö·ûÊý¾ÝµÄÊý¾Ý¿â¿ÉÒÔÓÐ
   ......

QtÊý¾Ý¿â£¨Èý£©ÀûÓÃQSqlQueryÀàÖ´ÐÐSQLÓï¾ä£¨Ò»£©


±¾ÎÄÕÂÔ­´´ÓÚwww.yafeilinux.com ×ªÔØÇë×¢Ã÷³ö´¦¡£
SQL¼´½á¹¹»¯²éѯÓïÑÔ£¬ÊǹØϵÊý¾Ý¿âµÄ±ê×¼ÓïÑÔ¡£Ç°ÃæÒѾ­Ìáµ½£¬ÔÚQtÖÐÀûÓÃQSqlQueryÀàʵÏÖÁËÖ´ÐÐSQLÓï¾ä¡£ÐèҪ˵Ã÷£¬ÎÒÃÇÕâÀïÖ»ÊÇQt½Ì³Ì£¬¶ø·ÇרҵµÄÊý¾Ý¿â½Ì³Ì£¬ËùÒÔÎÒÃDz»»á¶ÔÊý¾Ý¿âÖеÄһЩ֪ʶ½øÐÐÉîÈë½²½â£¬ÏÂÃæÖ»ÊǶÔ×î³£Óõļ¸¸ö֪ʶµã½øÐн²½â¡£
ÎÒÃÇÏÂÃ ......

aspÍøÒ³Àï,sql³£ÓòÙ×÷Óï¾ä!

Ìí¼Ó¡¢É¾³ý¡¢ÐÞ¸ÄʹÓÃ
db.Execute(Sql)ÃüÁîÖ´ÐвÙ×÷
╔----------------╗
¡î Êý¾Ý¼Ç¼ɸѡ ¡î
╚----------------╝
×¢Ò⣺µ¥Ë«ÒýºÅµÄÓ÷¨¿ÉÄÜÓÐÎó(ûÓвâʽ)
 
Sql = "Select
Distinct
×Ö¶ÎÃû from Êý¾Ý±í"
Distinctº¯Êý£¬²éѯÊý¾Ý¿â´æ±íÄÚ²»Öظ´µÄ¼Ç¼
 
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ