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

Ö»ÈÃÖ¸¶¨µÄ»úÆ÷Á¬½ÓSQLServer·þÎñÆ÷ ÊÕ²Ø

Ö»ÈÃÖ¸¶¨µÄ»úÆ÷Á¬½ÓSQLServer·þÎñÆ÷ ÊÕ²Ø
±³¾°
Ö»Ïëʹij¸öIPµÄ¼ÆËã»ú²ÅÄÜÁ¬½Óµ½SQL Server·þÎñÆ÷£¬²»ÔÊÐíÆäËû¿Í»§¶ËÁ¬½Ó¡£
½â¾ö·½·¨
¿ÉÒÔÖ±½ÓÔÚ·À»ðǽÖÐ×öÏÞÖÆ£¬Ö»ÔÊÐíÓëÖ¸¶¨µÄIPµØÖ·½¨Á¢1433µÄͨѶ¡£µ±È»£¬´Ó¸üΪ°²È«µÄ½Ç¶ÈÀ´¿¼ÂÇ£¬Ó¦¸Ã°Ñ1433¶Ë¿Ú¸Ä³ÉÆäËûµÄ¶Ë¿Ú¡£
ÆäËû½â¾ö·½·¨1£¨ÏÞ´ÓÖ¸¶¨IP½ÓÈëµÄ¿Í»§¶Ë£©
Èç¹ûʹÓÃSQL Server 2005£¬»¹¿ÉÒÔͨ¹ý¶ËµãÏÞÖƵķ½·¨À´ÊµÏÖ£¬´Ë·½·¨ÒªÇóÒ»¿éרÃŵÄÍø¿¨£¬ËùÓпÉÒÔÁ¬½ÓSQL ServerµÄ¿Í»§¶Ë¾ùͨ¹ý´ËÍø¿¨½ÓÈ루¼ÙÉè´ËÍø¿¨µÄIPÊÇ192.168.1.1£©£º
1£®      ÔÚ“SQL Server ÅäÖùÜÀíÆ÷”µÄ“SQL Server 2005ÍøÂçÅäÖÃÖД£¬½ûÖ¹³ýTCP/IPÖ®ÍâµÄËùÓÐЭÒ飻
2£®      ʹÓÃÈçϵÄT-SQL½ûֹĬÈϵÄTCP¶Ëµã
ALTER ENDPOINT [TSQL Default TCP]
STATE = STOPPED
3£®      ʹÓÃÈçϵÄT-SQL½¨Á¢ÐµÄTCP¶ËµãºÍÊÚȨ
USE master
GO
-- ½¨Á¢Ò»¸öеĶ˵ã
CREATE ENDPOINT [TSQL User TCP]
STATE = STARTED
AS TCP(
   LISTENER_PORT = 1433,
   LISTENER_IP = (192.168.1.1)  -- ÕìÌýµÄÍøÂçµØÖ·
)
FOR TSQL()
GO
-- ÊÚÓèËùÓеǼ(»òÕßÖ¸¶¨µÇ¼)ʹÓô˶˵ãµÄÁ¬½ÓȨÏÞ
GRANT CONNECT ON ENDPOINT::[TSQL User TCP]
TO [public]
Íê³ÉÉÏÊöÅäÖÃÖ®ºó£¬Ö»ÓÐͨ¹ýÍøÂçµØÖ·ÅäÖÃΪ192.168.1.1µÄÍø¿¨½ÓÈëµÄ¿Í»§¶Ë²ÅÄÜ·ÃÎÊSQL Server£»ÁíÍ⣬Èç¹ûÖ»ÊÚÓèÖ¸¶¨µÇ¼¶Ô¶ËµãµÄÁ¬½ÓȨÏÞ£¬ÔòÖ»ÓÐÖ¸¶¨µÄµÇ¼²ÅÄܽÓÈëSQL ServerʵÀý¡£
ÆäËû½â¾ö·½·¨2£¨ÏÞÖ¸¶¨IPµÄ¿Í»§¶Ë½ÓÈ룩
µ±SQL Server 2005Éý¼¶µ½SP2»òÕ߸ü¸ßµÄ°æ±¾µÄʱºò£¬»¹¿ÉÒÔͨ¹ýÐÂÔöµÄ´¥·¢Æ÷À´ÊµÏÖ¿ØÖÆ¡£
Ö´ÐÐÏÂÃæµÄT-SQLºó£¬½«Ê¹³ýIPµØַΪ192.168.1.1Ö®ÍâµÄ¿Í»§¶ËÁ¬½Óʧ°Ü¡£
USE master
GO
CREATE TRIGGER tr_LoginCheck
ON ALL SERVER
FOR LOGON
AS
IF EVENTDATA().value('(/EVENT_INSTANCE/ClientHost)[1]', 'varchar(15)') <> '192.168.1.1'
    ROLLBACK TRAN
GO
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/zjcxc/archive/2007/08/05/1726704.aspx


Ïà¹ØÎĵµ£º

´¿JSP·ÖÒ³´úÂëÖ®sqlserver2005/2008

ÉÏһƪ·ÖÒ³ÎÄÕ£¬ÊÇÓÃÓÚmysql£¬ÉÔ΢ÐÞ¸ÄÏ£¬ÓÃÓÚSqlserver2005/2008£¬Ã»ÓÐÒì³£´¦Àí¡£Ã»Óп¼ÂÇÐÔÄܵȡ£
ÏÖ½«´úÂëÌù³ö£¬ÒÔ¹©³õѧÕ߲ο¼£º
×¢£ºÑûÔÂʹÓû·¾³Eclipse 3.4.2+Tomcat 6.18+Sqlserver2005 sp3µ÷ÊԳɹ¦¡£
Ò³ÃæpagelistDemo.jspÄÚÈÝ£º
Code
<%@ page language="java" contentType="text/html; ......

SQLServerÊý¾Ý¿âά¶È±íºÍÊÂʵ±í¸ÅÊö

¡¡¡¡ÊÂʵ±í
¡¡¡¡Ã¿¸öÊý¾Ý²Ö¿â¶¼°üº¬Ò»¸ö»òÕ߶à¸öÊÂʵÊý¾Ý±í¡£ÊÂʵÊý¾Ý±í¿ÉÄÜ°üº¬ÒµÎñÏúÊÛÊý¾Ý£¬ÈçÏÖ½ðµÇ¼ÇÊÂÎñ
¡¡¡¡Ëù²úÉúµÄÊý¾Ý£¬ÊÂʵÊý¾Ý±íͨ³£°üº¬´óÁ¿µÄÐС£ÊÂʵÊý¾Ý±íµÄÖ÷ÒªÌصãÊÇ°üº¬Êý×ÖÊý¾Ý(ÊÂʵ)£¬²¢ÇÒÕâЩÊý×ÖÐÅÏ¢¿ÉÒÔ»ã×Ü£¬ÒÔÌṩÓйص¥Î»×÷ΪÀúÊ·µÄÊý¾Ý£¬Ã¿¸öÊÂʵÊý¾Ý±í°üº¬Ò»¸öÓɶà¸ö²¿·Ö×é³ÉµÄË÷Òý£¬¸ÃË÷Òý ......

SQLServer¸ß¼¶±à³Ì

         ±¾ÆªÄÚÈÝϵÊôSQLServer¸ß¼¶±à³Ì£¬ÊÊÓÃÓÚÓûÌá¸ß×Ô¼ººÍ¸´Ï°»òÓ¦¸¶ÃæÊÔµÄÅóÓÑÔĶÁ£¬Í¬Ê±±¾ÈËѧϰ²»¾Ã£¬ÔÚ×ܽáºÍ¹éÄÉʱ´íÎóºÍ²»Ç¡µ±Ö®´¦ÔÚËùÄÑÃ⣬»¹ÇëÖ¸³öÆäÖБ¶ËÄß’£¬ÓèÒÔÍêÉÆ¡£
±í1:Users
USE [Wish]
GO
/****** ¶ÔÏó: Table [dbo].[Users] ½Å±¾ÈÕÆÚ: ......

SqlServer 2005 Êý¾Ý¿âµÄÓÅȱµã...

SQL Server 2005Êý¾Ý¿â±¸·ÝºÍ»Ö¸´ÌØÐÔ
 
SQL Server 2000ÖдæÔÚµÄÐí¶àµÄ±¸·ÝºÍ»Ö¸´ÌØÐÔ¶¼Í¬Ñù±£ÁôÔÚÁËSQL Server 2005ÖУ¬µ«ÊÇÓÐһЩеÄÌá¸ßͬÑùÖµµÃÎÒÃǹØ×¢¡£
¾µÏñ±¸·Ý
SQL Server 2005ÈÃÄã¿ÉÒÔ´´½¨¾µÏñ±¸·Ý¡£¾µÏñ±¸·ÝÔÊÐíÄãΪ±¸·ÝÎļþ´´½¨Á½¸ö»òÕßËĸöͬÑùµÄ¿½±´£¬ÒÔ·À±¸ÆäÖеÄijһ¸ö¼¯ºÏË𻵵ÄÇé¿ö¡£¾µÏñ¾ßÓ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ