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

SQL ServerÖеÄÃüÃû¹ÜµÀ(named pipe)¼°ÆäʹÓÃ

1. ʲôÊÇÃüÃû¹ÜµÀ£¿
ÓëTCP/IP£¨´«Êä¿ØÖÆЭÒé»òinternetЭÒ飩һÑù£¬ÃüÃû¹ÜµÀÊÇÒ»ÖÖͨѶЭÒé¡£ËüÒ»°ãÓÃÓÚ¾ÖÓòÍøÖУ¬ÒòΪËüÒªÇó¿Í»§¶Ë±ØÐë¾ßÓзÃÎÊ·þÎñÆ÷×ÊÔ´µÄȨÏÞ¡£
Òª½âÊÍÕâ¸öÎÊÌ⣬ÎÒ»¹ÊÇժ¼΢Èí¹Ù·½µÄ×ÊÁϱȽϺÃ
http://msdn.microsoft.com/zh-cn/library/ms187892.aspx
ÈôÒªÁ¬½Óµ½ SQL Server Êý¾Ý¿âÒýÇ棬±ØÐëÆôÓÃÍøÂçЭÒé¡£Microsoft SQL Server ¿Éͬʱͨ¹ý¶àÖÖЭÒé´¦ÀíÇëÇ󡣿ͻ§¶ËÓõ¥¸öЭÒéÁ¬½Óµ½ SQL Server¡£Èç¹û¿Í»§¶Ë³ÌÐò²»ÖªµÀ SQL Server ÕýÔÚÕìÌýÄĸöЭÒ飬¿ÉÒÔÅäÖÿͻ§¶Ë°´Ë³Ðò³¢ÊÔ¶à¸öЭÒ顣ʹÓà SQL Server ÅäÖùÜÀíÆ÷ÆôÓᢽûÓÃÒÔ¼°ÅäÖÃÍøÂçЭÒé¡£
Shared Memory
Shared Memory Êǿɹ©Ê¹ÓõÄ×î¼òµ¥Ð­Ò飬ûÓпÉÅäÖõÄÉèÖá£ÓÉÓÚʹÓà Shared Memory ЭÒéµÄ¿Í»§¶Ë½ö¿ÉÒÔÁ¬½Óµ½Í¬Ò»Ì¨¼ÆËã»úÉÏÔËÐÐµÄ SQL Server ʵÀý£¬Òò´ËËü¶ÔÓÚ´ó¶àÊýÊý¾Ý¿â»î¶¯¶øÑÔÊÇûÓõġ£Èç¹û»³ÒÉÆäËûЭÒéÅäÖÃÓÐÎó£¬ÇëʹÓà Shared Memory ЭÒé½øÐйÊÕÏÅųý¡£
×¢Ò⣺
ʹÓà MDAC 2.8 »ò¸üÔç°æ±¾µÄ¿Í»§¶Ë²»ÄÜʹÓà Shared Memory ЭÒé¡£Èç¹ûÕâЩ¿Í»§¶Ë³¢ÊÔʹÓ㬽«×Ô¶¯Çл»Îª Named Pipes ЭÒé¡£
 
 
TCP/IP
TCP/IP ÊÇ Internet ÉϹ㷺ʹÓõÄͨÓÃЭÒé¡£ËüÓ뻥Á¬ÍøÂçÖÐÓ²¼þ½á¹¹ºÍ²Ù×÷ϵͳ¸÷ÒìµÄ¼ÆËã»ú½øÐÐͨÐÅ¡£TCP/IP °üÀ¨Â·ÓÉÍøÂçÁ÷Á¿µÄ±ê×¼£¬²¢Äܹ»Ìṩ¸ß¼¶°²È«¹¦ÄÜ¡£ËüÊÇÄ¿Ç°ÔÚÉÌÒµÖÐ×î³£ÓõÄЭÒé¡£½«¼ÆËã»úÅäÖÃΪʹÓà TCP/IP ¿ÉÄÜ»áºÜ¸´ÔÓ£¬µ«´ó¶àÊýÁªÍøµÄ¼ÆËã»úÒѾ­ÅäÖÃÕýÈ·¡£ÈôÒªÅäÖÃδÔÚ SQL Server ÅäÖùÜÀíÆ÷ÖгöÏÖµÄ TCP/IP ÉèÖã¬Çë²ÎÔÄ Microsoft Windows Îĵµ¡£
Named Pipes
Named Pipes ÊÇΪ¾ÖÓòÍø¶ø¿ª·¢µÄЭÒé¡£ÄÚ´æµÄÒ»²¿·Ö±»Ä³¸ö½ø³ÌÓÃÀ´ÏòÁíÒ»¸ö½ø³Ì´«µÝÐÅÏ¢£¬Òò´ËÒ»¸ö½ø³ÌµÄÊä³ö¾ÍÊÇÁíÒ»¸ö½ø³ÌµÄÊäÈë¡£µÚ¶þ¸ö½ø³Ì¿ÉÒÔÊDZ¾µØµÄ£¨ÓëµÚÒ»¸ö½ø³ÌλÓÚͬһ̨¼ÆËã»úÉÏ£©£¬Ò²¿ÉÒÔÊÇÔ¶³ÌµÄ£¨Î»ÓÚÁªÍøµÄ¼ÆËã»úÉÏ£©¡£
VIA
ÐéÄâ½Ó¿ÚÊÊÅäÆ÷ (VIA) ЭÒéºÍ VIA Ó²¼þһͬʹÓá£ÓйØÈçºÎʹÓà VIA µÄÐÅÏ¢£¬ÇëÓëÓ²¼þ¹©Ó¦ÉÌÁªÏµ¡£
Named Pipes Óë TCP/IP Ì×½Ó×Ö
ÔÚ¿ìËÙ¾ÖÓòÍø (LAN) »·¾³ÖУ¬´«Êä¿ØÖÆЭÒé»ò Internet ЭÒé (TCP/IP) Ì×½Ó×Ö¿Í»§¶ËºÍ Named Pipes ¿Í»§¶ËÔÚÐÔÄÜ·½Ãæ²»ÏàÉÏÏ¡£µ«ÊÇ£¬ÍøÂçËÙ¶ÈÔ½Âý[ÈçÔÚ¹ãÓòÍø (WAN) »ò²¦ºÅÍøÂçÉÏ]£¬TCP/IP Ì×½Ó×Ö¿Í»§¶ËÓë Named Pipes ¿Í»§¶ËµÄÐÔÄܲîÒìÔ½Ã÷ÏÔ¡£ÕâÊÇÒòΪ½ø³Ì¼äͨÐÅ (IPC) µÄ»úÖÆÔÚ¶ÔµÈÏî¼äµÄͨÐÅ·½Ê½²»Í¬¡£
¶ÔÓÚ Named Pipes£¬Í¨³£ÍøÂçͨÐŽ»»¥ÐÔ¸üÇ¿¡£Ò»¸ö¶ÔµÈ·½Ö±


Ïà¹ØÎĵµ£º

Sql server With

with HostDevice as (----ÉÌ»§Ö÷»ú
select TerminalID ,Deviceid hostDeviceid ,Device.ModelID,Device.SN HostSN,Device.MerchantID,Device.InstallAddress,Device.SoftVersion
from Device
join model HostM on Device.ModelID=HostM.ModelID and HostM.Category in(0,3,4,5,6,8)
--where TerminalID is not null
) ......

SQL Server 2005ÖеÄT SQLÔöÇ¿(2) ¿ìÕÕ¸ôÀë

¿ìÕÕ¸ôÀë Snapshot Isolation
1¡¢Ð´Èë³ÌÐò²»»á×è°­¶ÁÈ¡³ÌÐò
2¡¢ÐµĸôÀ뼶±ðÌṩÁËÒÔÏÂÓŵ㣺
1) Ìá¸ßÁËÖ»¶ÁÓ¦ÓóÌÐòµÄÊý¾Ý¿ÉÓÃÐÔ
2) ÔÊÐíÔÚOLTP»·¾³ÖÐÖ´ÐзÇ×èÖ¹¶ÁÈ¡²Ù×÷
3) ¿É¶ÔдÈëÊÂÎñ½øÐÐ×Ô¶¯µÄÇ¿ÖƳåÍ»¼ì²â
3¡¢ÑÝʾ´úÂë
CREATE DATABASE demo2
GO
USE demo2
ALTER DATABASE demo2 SET allow_snapsho ......

SQL server2005ÖÐÓÃpivotʵÏÖÐÐÁÐת»»

 --> --> (Roy)Éú³É²âÊÔÊý¾Ý
if not object_id('Class') is null
drop table Class
Go
Create table Class([Student] nvarchar(2),[Course] nvarchar(2),[Score] int)
Insert Class
select N'ÕÅÈý',N'ÓïÎÄ',78 union all
select N'ÕÅÈý',N'Êýѧ',87 union all
select N'ÕÅÈý',N'Ó¢Óï',82 union all
sel ......

ÔÚOracle 9iÖÐÐ޸ıíµÄ½á¹¹µÄÏà¹ØsqlÓï¾ä

ÓÃsql*plus»òµÚÈý·½¿ÉÒÔÔËÐÐsqlÓï¾äµÄ³ÌÐòµÇ¼Êý¾Ý¿â£º
Ôö¼ÓÒ»¸öÁУº
ALTER TABLE ±íÃû ADD(ÁÐÃû Êý¾ÝÀàÐÍ);
È磺
ALTER TABLE emp ADD(weight NUMBER(38,0));
ÐÞ¸ÄÒ»¸öÁеÄÊý¾ÝÀàÐÍ(Ò»°ãÏÞÓÚÐ޸ij¤¶È£¬ÐÞ¸ÄΪһ¸ö²»Í¬ÀàÐÍʱÓÐÖî¶àÏÞÖÆ):
ALTER TABLE ±íÃû MODIFY(ÁÐÃû Êý¾ÝÀàÐÍ);
È磺
ALTER TABLE emp MODIFY(wei ......

ÈçºÎÓà SQL Tuning Advisor (STA) ÓÅ»¯SQLÓï¾ä


ÔÚOracle10g֮ǰ£¬ÓÅ»¯SQLÊǸö±È½Ï·ÑÁ¦µÄ¼¼Êõ»î£¬²»Í£µÄ·ÖÎöÖ´Ðмƻ®£¬¼Óhint£¬·ÖÎöͳ¼ÆÐÅÏ¢µÈµÈ¡£ÔÚ10gÖУ¬OracleÍƳöÁË×Ô¼ºµÄSQLÓÅ»¯¸¨Öú¹¤¾ß: SQLÓÅ»¯Æ÷(SQL Tuning Advisor £ºSTA)£¬ËüÊÇеÄDBMS_SQLTUNE°ü¡£Ê¹ÓÃSTAÒ»¶¨Òª±£Ö¤ÓÅ»¯Æ÷ÊÇCBOģʽÏ¡£
Ö´ÐÐDBMS_SQLTUNE°ü½øÐÐsqlÓÅ»¯ÐèÒªÓÐadvisorµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ