±¾ÈËÕýÔÚѧmssql£¬¸Õ¿´µ½´æ´¢¹ý³Ì£¬ÓÐЩ²»Ã÷°×£¬Çë´ïÈË°Ñ·±ÔӵĶ«Î÷£¬¼òµ¥»¯£¬ÐÎÏ󻯸øÎÒ½²½²£¬´æ´¢¹ý³ÌÔõôÓã¬Ã²ËÆ´æ´¢¹ý³ÌµÄ´úÂë·Åµ½²éѯ·ÖÎöÆ÷£¬µãÏÂÖ´ÐпÉÒÔ²Ù×÷£¬µ«ÊÇƽʱ¶¼ÕâÑùÓÃô£¬ÄÜ×Ô¶¯µ÷ÓÃɶµÄô£¿Âé·³¸ø½²½²£¬»òÕߣ¬¸ø¸öѧϰµØÖ·ÎÒÈ¥¿´¿´
SQL code:
CREATE PROC P
AS
SELECT * from TB ......
mssql2000:
ÔÚÒ»¸ö±íÄÚ½¨ÈçÏÂtrigger:
CREATE TRIGGER [myTrigger] ON [dbo].[Test]
AFTER INSERT, DELETE
AS
exec master..xp_cmdshell 'd:\test.exe'
ÔÚÊý¾Ý¿â¹ÜÀíÆ÷ÄÚ£¬²»¹ÜÊÇÔö¼ÓÒ»Ìõ¼Ç¼»¹ÊÇɾ³ýÒ»Ìõ¼Ç¼£¬´Ë´¥·¢Æ÷¶¼Äܹ»Ö´ÐÐtest.exeÕâ¸ö³ÌÐò¡£
ÎÊÌâÊÇ£ºµ±ÎÒÓÃasp.netÁ¬½ÓÊý¾Ý¿â ......
˵À´º¦Ðß¹þ£¬ºÇºÇ¡¡
×Ôѧ±à³ÌÒѾÁ½Äê¶àÁË£¬»¹²»»á²é¿´Êý¾Ý¿âÁ¬½Ó³Ø°¡£¬Çë´óÏÀÃÇ˵һÏÂÔõÑù²é¿´Ñ½£¿
±È·½Ëµ£¬ÎÒÓÃIEºÍFFºÍOperaͬʱÒÔÈý¸öÓû§Éí·Ý´ò¿ª±¾µØÍøÕ¾£¨ÍøÕ¾ÔÚIISÉÏ£¬µØÖ·Èçhttp://127.0.0.1/MyWangzhan/£©£¬ÄÇôÎÒÔõÑù²ÅÄܲ鿴MSSQL 2000ÖеÄÊý¾Ý¿âÁ¬½Ó״̬ÄØ£¿
Á¬½Ó³ØÔÚÄÄÀï°¡£¿ÆóÒµ¹ÜÀíÆ÷ÖÐ ......
Á½ÕÅ±í½¨Á¢Á˸üм¶Áª¹Øϵ£¬µ«Ã»×öɾ³ý¼¶Áª£¬ÏÖÔÚɾ²»µôÊý¾ÝÁË£¬Ôõô°ì£¿×îºÃÊDz»¸Ä±ä±í½á¹¹µÄ~~~
¸÷λ´óϺ°ï°ïæ°¡~~
´¥·¢Æ÷
´´½¨¸öɾ³ý´¥·¢Æ÷
Õâô¿ì¾ÍÓÐÈË´ðÀ²~~¸Ð¶¯¡£¡£¡£Ð»Ð»
µ«ÒòΪÓÐ50¸ö·þÎñÆ÷ÔÚÓã¬ÄÇÿ¸ö·þÎñÆ÷µÄÊý¾Ý¿â¶¼Òª¸Ä¾ÍÂé·³ÁË¡£¡£¡£
SQLÓï¾ä²»ÄÜÖ±½Óɾ³ýÂð£¿
û×ö¼¶ÁªÉ¾³ýÖ»ÄÜÐÞ¸ÄÁË × ......
ÅóÓѵĽðÕþ³ÌÐò£¬´ò²»¿ª¡£ÒÔÏÂÊÇ´íÎóÈÕÖ¾£¬ÇëÇó¸÷λ¸ßÊÖ°ï°ïæ¡£
========================================================
SQLException occurred in JDBCPool: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
params: com.microsoft.jdbc.sqlserver. ......
½üÆÚ¿ªÊ¼ÓÃmssql 2000ʱ£¬·¢ÏÖÔÚ3-4ÍòÌõµÄÊý¾Ý£¬ÐÔÄÜÈԷdz£ºÃ£¬Ê¹Óà select sum(hits) from ....»ò select count(id) ...ËٶȻ¹ÊǺܿ죬
µ«Êý¾Ý´ïµ½¾ÅÍòÌõʱ£¬¾Í²»ÐÐÁË£¬ÂýµÄºÜ£¬ÔÚÆäËüͬÑùÌõ¼þÏÂÖ´ÐÐÉÏÃæµÄÁ½¸öÃüÁîÖÁÉÙÒªËÄÎåÃë²ÅÐУ¨²»¹ý²éѯËٶȻ¹ÊǺܿ죬°üÀ¨Óá°id=XXX¡±ºÍ¡°like '%...%'¡±ËÑË÷¶¼ºÜ¿ì¡ ......