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

SQL Server 2005ÐÂÔöµÄ¹¦ÄÜ

1. еIJúÆ·°æ±¾
³ýSQL Server 2005±ê×¼°æºÍÆóÒµ°æÖ®Í⣬²úÆ·ÏßÖл¹¼ÓÈëÁËSQL Server 2005¼ò»¯°æ£¨SQL Server 2005 Express£©ºÍ¹¤×÷×é°æ£¨SQL Server 2005 Workgroup£©Á½¸öа汾¡£
SQL Server 2005 Express——Æä×÷ÓÃÊÇ´úÌæ΢ÈíSQL Server×ÀÃæÒýÇ棨Microsoft SQL Server Desktop Engine£¬MSDE£©¡£SQL Server 2005 Express¿ÉÒÔÓÃÓÚ×ÔÓÉ·¢²¼£¬²¢ÓëSQL ServerʹÓÃͬÑùµÄ¹ØϵÊý¾Ý¿âºËÐÄÒýÇæ¡£²»Í¬µÄÊÇËü²¢²»ÏñMSDEÒ»ÑùʹÓòéѯ¹ÜÀíÆ÷¡£½öÓеÄÏÞÖÆÊÇÒ»¸öCPU£¬1GµÄÄÚ´æºÍÿ¸öÊý¾Ý¿â4GµÄ´æ´¢¿Õ¼ä¡£
SQL Server 2005——¹¤×÷×é°æ²»ÊÇ×ÔÓÉ·¢²¼µÄ¡£ËüµÄÉè¼Æ×ÅÑÛµãÔÚÓÚ·þÎñÆ÷ÏûÏ¢¿éЭÒ飨SMB£©ºÍ·Ö²¿ÃŽâ¾ö·½°¸¡£ÔÚÁ¿»¯ÐÔÄÜÉÏ£¬Ëü¸üÓÅÓÚSQL Server 2005 Express£¬²¢ÄÜÌṩ¹ØϵÊý¾Ý¿âµÄÖ§³Ö£¬Ö»ÊÇȱÉÙ·ÖÎö·þÎñ¡£¹¤×÷×é°æÏÞÓÃÓÚÁ½¸öCPU£¬3GÄڴ棬Êý¾Ý¿â´óС²»ÏÞ¡£
2. еÄ×Óϵͳ
ÔÚһЩеÄ×ÓϵͳµÄÍƶ¯Ï£¬SQL Server 2005ÖеÄÓ¦ÓóÌÐòÖ§³Ö·Ç³£Ç¿´ó£¬ÆäÖаüÀ¨ÕûºÏ·þÎñ¡¢ÌáÐÑ·þÎñ¡¢·þÎñ´úÀíºÍ±¨¸æ·þÎñ¡£
ÕûºÏ·þÎñ——Óë֮ǰ¸ºÔð´Ë¹¦ÄܵÄDTSÏà±È£¬Ëٶȿì600%¡£SQL ServerÕûºÏ·þÎñÊÇÓµÓÐÇ¿´óµÄ¹¤×÷Á÷¿ØÖÆÄÜÁ¦µÄÆóÒµ¼¶ETLƽ̨¡£
ÌáÐÑ·þÎñ——¿ÉÒÔÌṩ´î½¨×Ô¶¨ÒåÌáÐѳÌÐòµÄÓ¦Óÿò¼Ü¡£
·þÎñ´úÀ헗Ϊ½¨Á¢¸ß¶ÈÁ¿»¯³ÌÐòÌṩÒì²½½ø³Ì´¦Àí¹¦ÄÜ¡£
±¨¸æ·þÎñ——ÕâÊÇ×îÖµµÃÉý¼¶µÄÒ»ÏÄÜ¡£±¨¸æ·þÎñÊÇÆóÒµ¼¶µÄ±¨¸æÉú³Éƽ̨£¬¿ÉÒÔ¶ÔÉè¼Æ¡¢²¼Êð¡¢ÏúÊÛ½øÐÐÏêϸµÄ±¨¸æ¡£Ç¿´óµÄReportBuilder×é¼þ¿ÉÒÔÈÃ×îÖÕÓû§Ò²ÏíÊܵ½±¨¸æ·þÎñ¡£
3.ÕûºÏȫеÄ.NET Framework
¶ÔSQL Server 2005½øÐеÄ×î´óµÄÇ¿»¯¾ÍÊÇÕûºÏÁË.NET Framework¡£ÆôÓÃеÄ.NETÕûºÏ¹¦Äܺó£¬Äã¿ÉÒÔÇáËɵش´½¨´æ´¢¹ý³Ì¡¢º¯Êý¡¢´¥·¢Æ÷¡¢×Ô¶¨ÒåÀàÐÍ¡¢×Ô¶¨ÒåÊý¾Ý¼¯¡£Äã¿ÉÒÔÔÚÈκÎ.NETÓïÑÔÏÂʹÓÃEXEC sp_configure ‘clr enabled' , ‘1'ÃüÁîÆôÓÃCLRÖ§³Ö¡£Èç¹ûÄ㻹ÔÚʹÓùýÈ¥µÄδ¹ÜÀíµÄÀ©Õ¹´æ´¢¹ý³Ì£¬Ó¦¸ÃÁ¢¼´ÓÃSQLCLR´æ´¢¹ý³Ì´úÌæ¡£
3. еÄÊý¾ÝÀàÐÍ
SQL Server 2005ÖÐÌí¼ÓÁËÁ½ÖÖеÄÊý¾ÝÀàÐÍ£ºxmlºÍvarbinary(max)¡£
XmlÊý¾ÝÀàÐÍ——¿ÉÒÔÓÃÓÚÔÚSQL ServerÊý¾Ý¿âÖд洢ÀàÐÍ»¯»ò·ÇÀàÐÍ»¯µÄXMLÊý¾Ý£¬²¢Í¨¹ýXquery½øÐвéѯ¡£
Varbinary(max)Êý¾ÝÀàÐÍ——¿ÉÒÔÏñ·ÃÎÊÆÕͨÊý¾ÝÒ»Ñù¶ÔͼÏñµÈ¶þ½øÖÆÊý¾Ý½øÐд洢ºÍ¶ÁÈ¡¡£
4. еĵã¶ÔµãÊÂÎñÐÍÓ³Éä
ͨ¹ýSQL Server 2005ÖеÄй¦ÄÜ£¬ÎÒÃÇ¿ÉÒÔÇáËÉÕÆÎÕ΢Èí¶


Ïà¹ØÎĵµ£º

ÓÃsql²Ù×÷oracleµÄblob×Ö¶Î

ÓÃsql²Ù×÷oracleµÄblob×Ö¶Î
1¡¢²éѯ
select utl_raw.cast_to_varchar2(dlob),id from system.t_htinfo 
2¡¢²åÈë
insert into system.t_htinfo  values ('3',utl_raw.cast_to_raw('Äã'));
3¡¢¸üÐÂ
update system.t_htinfo set fld_value=utl_raw.cast_to_raw('1') where fh_nm=1820648 and form_index=52
......

SQL²éѯÿÐÐÖÐ×î´óÖµµÄ¼¼ÇÉ

--------------------------------------------------------------------------
--  Author : htl258(Tony)
--  Date   : 2010-04-23 08:08:36
--  Version:Microsoft SQL Server 2008 (RTM) - 10.0.1600.22 (Intel X86)
--          Jul  ......

SQLº¯Êýµ÷ÓÃ

º¯ÊýÈçÏÂ
CREATE FUNCTION StockBalance_AmountIn(@SortID int)  
 RETURNS numeric(18,4)
AS  
BEGIN 
 Declare @dblReturn numeric(18,4)
 Select @dblReturn = SUM(AmountCurrentMonthIn) from AT_Materiel_StockBalance Where SortID = @SortID
 Return (@dblReturn)
END
......

½âÃÜSQL SERVER 2005¼ÓÃÜ´æ´¢¹ý³Ì£¬º¯Êý


ÔÚSQL SERVER 2005ÖбØÐëÓÃרÓùÜÀíÁ¬½Ó²Å¿ÉÒԲ鿴¹ý³Ì¹ý³ÌÖÐÓõ½µÄ±í
EG£ºsqlcmd -A
1>use test
2>go
1>sp_decrypt 'p_testa'
2>go
Text
----------------------
Create procedure P_testa
with encryption
as
select * from test
 
create PROCEDURE [dbo].[sp_decrypt]
(@procedure s ......

SQL Server Management StudioÁ¬½Ó·þÎñÆ÷ʱָ¶¨¶Ë¿ÚºÅ

      ½ñÌìÏëÁ¬½ÓSQL Server·þÎñÆ÷ʱ·¢ÏÖû·¨Á¬½Ó£¬·¢Ïֶ˿ںŲ»ÊÇĬÈϵĶ˿ںţ¬ÐèÒªÖ¸¶¨¶Ë¿ÚºÅ£¬¸Õ¿ªÊ¼ÒÔΪÊÇIPµØÖ·¼ÓðºÅÔٶ˿ںžÍÐÐÁË£¬½á¹û·¢ÏÖûÓã¬googleÒ»°Ñ·¢ÏÖÔ­À´²»ÊÇðºÅ£¬ÊǶººÅ£¬¹þ¡£±ÈÈ磺127.0.0.1,1451 , ¸ñʽ¾ÍÊÇ£º[IP],[Port] ¡£ Íê±Ï¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ