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

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

ϵͳÊý¾Ý¿â
ϵͳÊý¾Ý¿âºÜÖØÒª£¬´ó¶àÊýʱºò²»Ó¦ÐÞ¸ÄËüÃÇ¡£Î¨Ò»µÄÀýÍâÊÇmodelÊý¾Ý¿â£¬ËüÄܹ»ÈÃÓû§²¿Êð¸ü¸Ä£¨Èç´æ´¢¹ý³Ì£©µ½ÈκÎд´½¨µÄÊý¾ÝÂÊÖС£
1 ResourceÊý¾Ý¿â
¸ÃÊý¾Ý¿â°üº¬SQL Server Õý³£ÔËÐÐËùÐèµÄÖØÒª±í£¬ÔªÊý¾ÝºÍ´æ´¢¹ý³Ì£¬ËüÃÇÊÇÖ»¶ÁµÄ¡£Ëü²»°üº¬ÓйØÓû§µÄʵÀý»òÊý¾Ý¿âµÄÈκÎÐÅÏ¢£¬ÒòΪËüÖ»ÊÇ°²×°ÐµIJ¹¶¡³ÌÐò°üÊDzŷ¢ÉúдÈë²Ù×÷¡£
ÔÚSQL Server2005ÖУ¬Éý¼¶µ½Ð²¹¶¡³ÌÐò°ü»ò¿ìËÙÐÞÕý°üÊÇ£¬½«Ê¹ÓÃResourceÊý¾Ý¿âµÄ¸±±¾¸²¸ÇÔ­À´µÄÊý¾Ý¿â¡£ÕâÈÃÓû§Äܹ»¿ìËÙÉý¼¶SQL ServerĿ¼£¬»¹Äܹ»»Ø¹öµ½Ç°Ò»¸ö°æ±¾¡£
×¢Ò⣺²»Òª½«ResourceÊý¾Ý¿â·ÅÔÚ¼ÓÃÜ»òѹËõÇý¶¯Æ÷ÖУ¬ÕâÑù×ö¿ÉÄܵ¼ÖÂÉý¼¶ÎÊÌâ»òÐÔÄÜÎÊÌâ¡£
2 msterÊý¾Ý¿â
¸ÃÊý¾Ý¿â°üº¬ÓйØÓû§Êý¾Ý¿âµÄÔªÊý¾Ý£¨Êý¾Ý¿âÅäÖúÍÎļþλÖã©£¬µÇ¼ÃûÒÔ¼°ÓйØʵÀýµÄÅäÖÃÐÅÏ¢¡£Èç¹ûÕâ¸öÖØÒªÊý¾Ý¿â¶ªÊ§£¬SQL Server½«²»ÄÜÆô¶¯¡£
ResourceÊý¾Ý¿âºÍmsterÊý¾Ý¿âÖ®¼äÖ÷Òª²î±ðÊÇmsterÊý¾Ý¿â±£´æÓÚÓû§ÊµÀýÏà¹ØµÄÊý¾Ý£¬¶øResourceÊý¾Ý¿âÖ»±£´æÔËÐÐÓû§ÊµÀýËùÐèµÄ¼Ü¹¹ºÍ´æ´¢¹ý³Ì¡£ÔÚ´´½¨ÐÂÊý¾Ý¿â£¬Ìí¼ÓµÇ¼Ãû»ò¸ü¸Ä·þÎñÆ÷ÅäÖú󣬶¼Ó¦¸Ã±¸·ÝmsterÊý¾Ý¿â¡£
×¢Ò⣺ÓÀÔ¶²»ÒªÔÚmsterÊý¾Ý¿âÖд´½¨¶ÔÏó£¬Èç¹ûÔÚ¸ÃÊý¾Ý¿âÖд´½¨¶ÔÏ󣬿ÉÄܵ¼ÖÂÐèÒª¸ü¼ÓƵ·±µÄ±¸·Ý¡£
3 tempdb Êý¾Ý¿â
TempdbÊý¾Ý¿âÀàËÆÓÚÊý¾Ý¿â½»»»Îļþ£¬ËüÓÃÓÚËùÓеǼÃû±£´æÁÙʱ¶ÔÏó¡£·þÎñÆ÷¿ÉÒÔʹÓøÃÊý¾Ý¿âÀ´±£´æ°æ±¾ÐÅÏ¢»òϵͳÁÙʱ¶ÔÏó¡£TempdbÊý¾Ý¿âÔÚSQL Serverÿ´Î´ÓÐÂÆô¶¯Ê±×Ô¶¯´´½¨£¬µ±SQL ServerÍ£Ö¹ÔËÐÐʱ£¬¸ÃÊý¾Ý¿â½«×Ô¶¯´Óд´½¨ÎªÆäԭʼ´óС¡£ÓÉÓÚ¸ÃÊý¾Ý¿âÿ´Î¶¼»á´Óд´½¨£¬ËùÒÔûÓÐÀíÓɶÔËü½øÐб¸·Ý¡£Ò»°ã¶øÑÔ£¬Ó¦½«TempdbÊý¾Ý¿âÉèÖÃΪÔÚÐèÒª¿Õ¼äʱ×Ô¶¯À©Õ¹£¬Èç¹ûûÓÐ×ã¹»¿Õ¼ä£¬Óû§¿ÏÄÜÊܵ½ÈçÏ´íÎóÐÅÏ¢Ö®Ò»£º
1£©1101»ò1105£ºÁ¬½Óµ½SQL ServerµÄ»á»°±ØÐëÔÚTempdbÖзÖÅä¿Õ¼ä¡£
2£©3959£º°æ±¾´æ´¢¿Õ¼äÂú¡£
3£©3967£º°æ±¾´æ´¢¿Õ¼ä±ØÐëѹËõ£¬ÒòΪTempdbÒÑÂú¡£
4 modelÊý¾Ý¿â
modelÊÇÒ»¸öϵͳÊý¾Ý¿â£¬SQL Server´´½¨ÐÂÊý¾Ý¿âʱʹÓÃËü×÷Ϊģ°å¡£´´½¨Ã¿¸öÊý¾Ý¿âʱ£¬Ê×ÏÈmodelÊý¾Ý¿âÖеÄËùÓжÔÏó¸´ÖƵ½ÐÂÊý¾Ý¿âµÄ¿Õ¿ÇÖС£Î¨Ò»µÄÀýÍâÊǻָ´Êý¾Ý¿â»ò´ÓÐÂÁ¬½ÓÆäËû·þÎñÆ÷ÉϵÄÊý¾Ý¿â¡£
×¢Ò⣺¿ÉÔÚmodelÊý¾Ý¿âÖÐÌí¼Ó¶ÔÏó»òµ÷ÕûÆäÉ豸£¬Ê¹µÃÒÔºó´´½¨µÄÈκÎÊý¾Ý¿â¶¼ÓÐÕâЩÊôÐÔ»ò°üº¬ÕâЩ¶ÔÏó¡£
5 msdbÊý¾Ý¿â
msdbÊÇÒ»¸öϵͳÊý¾Ý¿â£¬Ëü°üº¬SQL Server´úÀí£¬ÈÕÖ¾´«ËÍ£¬ssisºÍ¹ØϵÊý¾Ý¿âÒýÇæµÄ±¸·ÝºÍ»Ö¸´ÏµÍ³µÈʹÓõÄÐÅÏ¢¡£¸ÃÊý¾Ý¿â´æ´¢ÁËÓй


Ïà¹ØÎĵµ£º

JSPʵÀýÈý¡¢sql·ÖÒ³(1)

index.jsp
<%@ page language="java" import="java.sql.*" import="java.lang.*" import="java.util.*" pageEncoding="GB2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%!
& ......

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 ......

oracle³£ÓõÄsqlÃüÁî

Êý¾Ý¶¨ÒåÓïÑÔ£¨DDL£©<²Ù×÷±íµÄ½á¹¹>£ºcreate£¨ ´´½¨£©¡¢
alter£¨¸ü¸Ä£©¡¢
drop£¨É¾³ý£©
Êý¾Ý²Ù×ÝÓïÑÔ£¨DML£©<²Ù×÷±íµÄÊý¾Ý>£ºinsert£¨²åÈ룩¡¢select£¨Ñ¡Ôñ£©¡¢delete£¨É¾³ý£©¡¢update£¨¸üУ©
ÊÂÎñ¿ØÖÆÓïÑÔ£¨TCL£©£ºcommit £¨ Ìá½»£©¡¢savepoint£¨±£´æµã£©¡¢rollback£¨»Ø¹ö£©
Êý¾Ý¿ØÖÆÓïÑÔ£ºgrant£¨ÊÚÓè£ ......

SQLÓï·¨×ܽá

ÕâÊÇÎÒ±ßѧ±ß×ܽáµÄ£¬×ܹ²»¨ÁËÒ»ÌìÒ»Ò¹µÄʱ¼ä£¬²é×ÊÁϺͿ´ÊÓƵÍê³ÉµÄ£¬µ«ÎÒ¶Ôµ¥Ðк¯ÊýºÍ¶àÐк¯ÊýûÓÐ×ö¹ý¶àµÄÑо¿£¬ÒòΪÕß¿ÉÒÔ²éÎĵµ¡£»¹ÓоÍÊǶà±í²éѯÑо¿Ò²±È½Ïdz£¬Õâ¿ÉÒÔÔÚÒÔºóÓõ½µÄʱºòÔÚ¾ßÌåÑо¿¡£   »¹ÓоÍÊÇÒªÊìϤÊý¾Ý¿âµÄ²Ù×÷£¬Ôöɾ¸Ä²é£¬ÕâЩ¶¼ÒªÏ൱ÊìÁ·£¬Íü¼ÇʱҪ¼°Ê±¿´±Ê¼Ç¡£
SQL
1....... ......

ºÃ³¤µÄSQL£¡

select a.FRMNO,a.GATE,a.MSGID,a.MailSendTime,a.UserNM, a.MailSubject,a.IsRead,a.FRMID,a.isattach,b.STATE ,a.FLOWSTATE from   ROAMSGE a, ROASTAT b where a.FRMID = b.FRMID and b.state='1'  and a.FrmNm like '%" + Cdorpsel1 + "%' and a.MAILSENDTIME>to_date('" + date1 + "','YYYY-MM-DD') ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ