SQL Server 2008ÖеÄÊý¾ÝѹËõ²ßÂÔ
ÔÚTypes of data compression in SQL Server 2008Õâƪ²©¿ÍÖУ¬ Sunil AgarwalÌáµ½ÁËÔÚSQL Server 2008ÖвÉÓõÄÁ½ÖÖѹËõ²ßÂÔ£º
£¨1£©ÒԱ䳤¸ñʽ´æ´¢ËùÓеĶ¨³¤Êý¾ÝÀàÐÍ¡£ÔÚ±¾ÏµÁеÄÉÏһƪÎÄÕÂÖУ¬ÎÒÌáµ½¹ýÔÚSQL Server 2005 SP2ÖÐÌṩµÄʹÓÃvardecimalÀàÐÍÀ´´æ´¢decimal/numericÊý¾ÝÀàÐÍÒÔ½ÚÊ¡´æ´¢¿Õ¼äµÄÎÊÌ⣬ÓÐÐËȤµÄÅóÓÑ¿ÉÒԲο¼ÉÏһƪÎÄÕÂ×îºóÁгöµÄÏà¹ØÁ´½ÓÒÔ»ñÈ¡¸ü¶àÐÅÏ¢¡£ÔÚSQL Server 2008ÖУ¬Î¢Èí½«Õâһ˼ÏëÀ©Õ¹µ½ÁËËùÓеĶ¨³¤Êý¾ÝÀàÐÍ£¬ÀýÈçinteger,char,floatÀàÐÍ¡£ÐèҪעÒâµÄÊÇ£¬ËäÈ»SQL Server 2008ÒԱ䳤¸ñʽ´æ´¢ËùÓеĶ¨³¤Êý¾ÝÀàÐÍ£¬µ«ÕâÖ»ÊÇÒ»ÖÖ´æ´¢µÄ¾ßÌåʵÏÖ»úÖÆ£¬²¢²»»á¸Ä±äÈκÎÓïÒåÉϵĶ«Î÷£¬Èκοͻ§µÄ³ÌÐò¶¼²»ÐèÒªÐ޸ģ¬ÒòΪËü¸ù±¾²»¹ØÐÄÒ²²»±ØÖªµÀÊý¾Ý¿âÄÚ²¿¾ßÌåµÄÊý¾Ý´æ´¢·½Ê½¡£
Àý×ÓÒ»£º¼ÙÉèÒ»¸ö±íÖÐÓÐÒ»¸ö32λÕûÊýÁУ¨integer£©£¬µ«ÊǸÃÁеÄÖµ¾ùÔÚ£¨0~255»ò-128¡«127£©µÄ·¶Î§ÄÚ£¬ÄÇôSQL Server 2008¾Í¿ÉÒÔÖ»ÓÃÒ»¸ö×Ö½ÚÀ´´æ´¢¸ÃÁеÄÖµ£¬ÕâÓë֮ǰ°æ±¾µÄSQL Server×ÜÊÇʹÓÃ4¸ö×Ö½ÚÀ´´æ´¢¸ÃÁÐÏà±È£¬¾Í½ÚÊ¡ÁË75£¥µÄ¿Õ¼ä¡£
Àý×Ó¶þ£º¼ÙÉèÒ»¸ö±íÖÐÓÐÒ»¸ö¶¨³¤×Ö·û´®ÁÐCHAR(100)£¬ÔÚÒÔÇ°µÄSQL Server°æ±¾ÖУ¬¸ÃÁÐ×ÜÊÇʹÓÃ100¸ö×Ö½ÚÀ´´æ´¢£¨¼´Ê¹Êµ¼ÊµÄ×Ö·û´®Ã»ÓÐ100¸ö×Ö½Ú£¬Ò²»áÔÚÆäºóÌî³ä¿Õ¸ñÒÔ´ïµ½³¤¶ÈÕýºÃΪ100£©¡£µ«ÊÇÔÚSQL Server 2008ÖУ¬¸ÃÁн«¸ù¾Ýʵ¼Ê×Ö·û´®µÄ³¤¶ÈÀ´½øÐд洢£¬ÀýÈç"Hello"½«Ö»ºÄ·Ñ5¸ö×Ö½Ú´æ´¢¿Õ¼ä£¬¶ø"This is a longer string"½«Ö»Ðè23¸ö×Ö½Ú´æ´¢£¬·Ö±ð´øÀ´95£¥ºÍ77£¥µÄ´æ´¢¿Õ¼äµÄ½ÚÊ¡¡£
µ±È»£¬ÔÚÉÏÊöÀý×ÓÒ»ÖÐÈç¹ûʵ¼ÊµÄÊýÖµ±ä»¯·¶Î§³¬¹ýÁËÒ»¸ö×Ö½ÚÄܹ»±íʾµÄ·¶Î§£¬ÄÇôÏàÓ¦µÄѹËõ±È¾Í»á½µµÍ£»¶ÔÓÚÀý×Ó¶þÒ²ÀàËÆ£¬Èç¹ûʵ¼ÊµÄ×Ö·û´®³¤¶È½Ó½ü100£¬ÄÇôѹËõЧ¹ûÒ²»á´ó´ó½µµÍ¡£ÕâÒâζ×ÅѹËõµÄЧ¹û½«ÒÀÀµÓÚʵ¼ÊµÄÊý¾ÝÖµµÄ·Ö²¼£¬Í¬Ê±Ò²ÒÀÀµÓÚ±íµÄ¼Ü¹¹¶¨Ò壬Õâ¿ÉÄܲ»ÄÇôÃ÷ÏÔ£¬µ«ÊÇÏëÏóÒ»ÏÂÉÏÊöµÄÀý×Ó¶þ£¬Èç¹û½«ÁеĶ¨Òå¸ÄΪCHAR(150)£¬ÏÔȻѹËõµÄЧ¹û¾Í¸üΪÏÔÖø¡£ÁíÍâÇë×¢Ò⣬NULLÖµÊDz»ÐèÒªÕ¼ÓÃÈκδ洢¿Õ¼äµÄ£¨²Î¼ûÏÂÃæµÄÐиñʽ£©¡£
ÔÚSQL Server 2008 Data CompressionÕâƪ²©¿ÍÖУ¬²©¿Í×÷ÕßShailan ChudasamaÓÃÒ»¸±Í¼ÐÎÏóµÄ˵Ã÷ÁËÉÏÊöÀý×ÓÒ»ÃèÊöµÄ³¡¾°£º
&nb
Ïà¹ØÎĵµ£º
±¾ÎÄÑÝʾÁË SQL Server 2008 ·ÖÇø±íʵÀý;
1. ´´½¨²âÊÔÊý¾Ý¿â £»
2. ´´½¨·ÖÇøº¯Êý;
3. ´´½¨·ÖÇø¼Ü¹¹;
4. ´´½¨·ÖÇø±í;
5. ´´½¨·ÖÇøË÷Òý ;
6. ·ÖÇøÇл» ;
7. ²éѯÄÄЩ±íʹÓÃÁË·ÖÇø±í£»
-- ×÷³ÉÕß leno
-- ÈÕÆÚ: 2009-06-06 23:50:01.700
-- ......
-- ʾÀýÒ», ʹÓÃÖ¤Êé¼ÓÃÜÊý¾Ý.
-- ½¨Á¢²âÊÔÊý¾Ý±í
CREATE TABLE tb(ID int IDENTITY (1,1),data varbinary (8000));
GO
-- ½¨Á¢Ö¤ÊéÒ», ¸ÃÖ¤ÊéʹÓÃÊý¾Ý¿âÖ÷ÃÜÔ¿À´¼ÓÃÜ
CREATE CERTIFICATE Cert_Demo1
WITH
SUBJECT = N'cert1 encryption by database master key' ,
START_DATE = ......
ÉÏ»ØÎÒÃÇ˵µ½ÆÀ¹ÀÒ»ÌõÓï¾äÖ´ÐÐЧÂÊÖ÷Òª¿´Âß¼ IO £¨É¶ÊÇÂß¼ IO £¬É¶ÊÇÎïÀí IO ¼ûÁª»úÎĵµ£©£¬Õâ´ÎÎÒÃǼÌÐø¡£
ÎÒÃÇÏÈ˵˵£¬·µ»Ø¶àÐнá¹ûʱ£¬ÎªÊ²Ã´ SQLServer ÓÐʱ»áÑ¡Ôñ index seek £¬ÓÐʱ»áÑ¡Ôñ index scan ¡£
ÒÔ nonclustered index ΪÀý˵Ã÷¡£
ÏñËùÓеÄË÷Òý B Ê÷Ò»Ñù£¬·Ç¾Û¼¯Ë÷ÒýÊ÷Ò²°üÀ¨ÍêÈ«ÓÉË÷ÒýÊý¾Ý×é³ÉµÄ¸ù½ ......
SQL ²é¿´ËùÓбíÃû£º
select name from sysobjects where type='U'
²éѯ±íµÄËùÓÐ×Ö¶ÎÃû£º
Select name from syscolumns Where ID=OBJECT_ID('±íÃû')
select * from information_schema.tables
select * from information_schema.views
select * from information_schema.columns
ACCESS
²é¿´ËùÓбíÃû£º
se ......
ʹÓû·¾³£ºWinxp£¬Mssql 2000 ¸öÈË°æ
¡¡¡¡1¡¢´ò¿ªÄãµÄ±¾µØMssqlÆóÒµ¹ÜÀíÆ÷£¬Õ¹¿ª¿ØÖÆ̨¸ùĿ¼¡¢Microsoft SQL Server¡¢SQL Server×顣ĬÈÏ°²×°ºÃµÄMssql×éÖÐÖ»ÓÐÒ»¸öLocal£¨Windows NT£©¡£×¢Ò⣬ÔÚWin 2000ÖÐÏÔʾµÄÊDZ¾µØ¼ÆËã»úÃû¡£
¡¡¡¡2¡¢Êó±êÓÒ¼üSQL Server×飬ѡÔñн¨SQL Server×¢²áÃüÁµ¯³ö×¢²áÏòµ¼¡£
¡¡¡ ......