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

ÔÚsql server 2005À¸ù¾ÝÊý¾Ý¿âÐÔÄܶ¯Ì¬¹¹½¨Ë÷Òý¡£

ÔÚsql server 2005À¸ù¾ÝÊý¾Ý¿âÐÔÄܶ¯Ì¬¹¹½¨Ë÷Òý¡£
Êý¾Ý¿âÉè¼ÆºÃºó£¬ÏµÍ³ÉÏÏßÔ˶¯Ò»¸öÖÜÆÚºó£¬Êý¾Ý¿âÐÔÄÜÆ¿¾±Í»ÏÖ³öÀ´£¬Õâ¸öʱ¼ä£¬ÐèÒªÒ»ÖÖ¸ù¾ÝÐÔÄÜ£¬À´¶¯Ì¬¹¹½¨Ë÷Òý£¬Ìá¸ß²éѯЧÂÊ¡£
    --¹ý³ÌÓÅ»¯SQL
                    , avg_user_impact
                    , [EqualityUsage] = equality_columns
                    , [Include Cloumns] = included_columns
                    INNER JOIN    sys.dm_db_missing_index_group_stats s
                    INNER JOIN    sys.dm_db_missing_index_details d
                    ORDER BY [RowNumber] ;       
        select
        DataType = st.name,
        from lzmisplat..syscolumns sc
        inner join lzmisplat..SysTypes st on sc.XType=st.XType
        so.name='S_FlowInstance' and sc.name='State'
    declare @TableName varchar(1000)
    declare @InequalityUsage varchar(1000)
    declare @IndexIncludeTemplete    nvarchar(2000)
    declare @ExecuteSql    nvarchar(4000)
    declare @NowTime  varchar(500)
    declare @RowNumber  int
    -----------------
    select @NowTime = replace(  replace( replace( getdate() ,'-','') ,' ','') ,':',''), @ExecuteSql =''
    select @IndexTemp


Ïà¹ØÎĵµ£º

AccessºÍSQL2000ÖÐÓï¾äµÄÇø±ð

1 £¬¶ÔÓÚÈÕÆÚ×Ö¶Î×Ö¶Î
access±íʾΪ£º#1981-28-12#
SQLSERVER2000±íʾΪ£º''1981-02-12''
2,SQLÓï¾äÇø±ð£¬select ,update ÔÚ¶Ôµ¥±í²Ù×÷ʱ¶¼²î²»¶à£¬
µ«¶à±í²Ù×÷ʱupdateÓï¾äµÄÇø±ðACCESSÓëSQLSERVERÖеÄUpdateÓï¾ä¶Ô±È:
SQLSERVERÖиüжà±íµÄUpdateÓï¾ä:
Update Tab1
SET a.Name = b.Name
from Tab1 a,Tab2 b
Whe ......

SQLSERVER SQLÐÔÄÜÓÅ»¯

1.Ñ¡Ôñ×îÓÐЧÂʵıíÃû˳Ðò(Ö»ÔÚ»ùÓÚ¹æÔòµÄÓÅ»¯Æ÷ÖÐÓÐЧ)¡¡¡¡
¡¡¡¡ SQLSERVERµÄ½âÎöÆ÷°´ÕÕ´ÓÓÒµ½×óµÄ˳Ðò´¦Àífrom×Ó¾äÖеıíÃû£¬Òò´Ëfrom×Ó¾äÖÐдÔÚ×îºóµÄ±í£¨»ù´¡±ídriving table£©½«±»×îÏÈ´¦Àí£¬ÔÚfrom×Ó¾äÖаüº¬¶à¸ö±íµÄÇé¿öÏ£¬±ØÐëÑ¡Ôñ¼Ç¼ÌõÊý×îÉٵıí×÷Ϊ»ù´¡±í£¬µ±SQLSERVER´¦Àí¶à¸ö±íʱ£¬»áÔËÓÃÅÅÐò¼°ºÏ²¢µÄ·½Ê½Á ......

¶Á¡¶SQL Server 2005¸ß¼¶¹ÜÀí¡·µÄһЩժҪ... Á¬ÔØ2

ϵͳÊý¾Ý¿â
ϵͳÊý¾Ý¿âºÜÖØÒª£¬´ó¶àÊýʱºò²»Ó¦ÐÞ¸ÄËüÃÇ¡£Î¨Ò»µÄÀýÍâÊÇmodelÊý¾Ý¿â£¬ËüÄܹ»ÈÃÓû§²¿Êð¸ü¸Ä£¨Èç´æ´¢¹ý³Ì£©µ½ÈκÎд´½¨µÄÊý¾ÝÂÊÖС£
1 ResourceÊý¾Ý¿â
¸ÃÊý¾Ý¿â°üº¬SQL Server Õý³£ÔËÐÐËùÐèµÄÖØÒª±í£¬ÔªÊý¾ÝºÍ´æ´¢¹ý³Ì£¬ËüÃÇÊÇÖ»¶ÁµÄ¡£Ëü²»°üº¬ÓйØÓû§µÄʵÀý»òÊý¾Ý¿âµÄÈκÎÐÅÏ¢£¬ÒòΪËüÖ»ÊÇ°²×°ÐµIJ¹¶¡³Ì ......

SQL×Ö·û´®´¦Àíº¯Êý´óÈ«


selectÓï¾äÖÐÖ»ÄÜʹÓÃsqlº¯Êý¶Ô×ֶνøÐвÙ×÷£¨Á´½Ósql server£©£¬
select ×Ö¶Î1 from ±í1 where ×Ö¶Î1.IndexOf("ÔÆ")=1;
ÕâÌõÓï¾ä²»¶ÔµÄÔ­ÒòÊÇindexof£¨£©º¯Êý²»ÊÇsqlº¯Êý£¬¸Ä³Ésql¶ÔÓ¦µÄº¯Êý¾Í¿ÉÒÔÁË¡£
left£¨£©ÊÇsqlº¯Êý¡£
select ×Ö¶Î1 from ±í1 where charindex£¨'ÔÆ',×Ö¶Î1£©=1;
×Ö·û´®º¯Êý¶Ô¶þ½øÖÆÊý¾Ý¡¢×Ö·û´ ......

×Ô¶¯±¸·ÝSQL2000/MysqlµÄÅú´¦ÀíÎļþ


@echo off
C:
CD "C:\Program Files\WinRAR"
net stop MSSQLserver
winrar.exe a -ag"-[YYYY-MM-DD-HH-MM-SS]" -k -r -s
-ibck -inul "E:\SQL2000±¸·ÝÉú³ÉµÄÎļþ.rar" "E:\SQL2000ËùÔÚÊý¾Ý¿âµÄDataĿ¼µÄλÖÃ\*.*"
net
start MSSQLserver
net stop Mysql
winrar.exe a -ag"-[YYYY-MM-DD-HH-MM-SS]" -k -r -s ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ