SQL ServerʹÓõĶ˿Ú
SQL ServerÔÚ°²×°µ½·þÎñÆ÷ÉϺó£¬ÓÉÓÚ³öÓÚ·þÎñÆ÷°²È«µÄÐèÒª£¬ËùÒÔÐèÒªÆÁ±ÎµôËùÓв»Ê¹ÓõĶ˿ڣ¬Ö»¿ª·Å±ØÐëʹÓõĶ˿ڡ£ÏÂÃæ¾ÍÀ´½éÉÜÏÂSQL Server 2008ÖÐʹÓõĶ˿ÚÓÐÄÄЩ£º
Ê×ÏÈ£¬×î³£ÓÃ×î³£¼ûµÄ¾ÍÊÇ1433¶Ë¿Ú¡£Õâ¸öÊÇÊý¾Ý¿âÒýÇæµÄ¶Ë¿Ú£¬Èç¹ûÎÒÃÇÒªÔ¶³ÌÁ¬½ÓÊý¾Ý¿âÒýÇ棬ÄÇô¾ÍÐèÒª´ò¿ª¸Ã¶Ë¿Ú¡£Õâ¸ö¶Ë¿ÚÊÇ¿ÉÒÔÐ޸ĵģ¬ÔÚ“SQL ServerÅäÖùÜÀíÆ÷”ÖÐÇл»µ½“XXXµÄÐÒé”ÀïÃæÑ¡Ôñ£¬TCP/IPÐÒéÊôÐÔÖпÉÒÔÉèÖÃTCP¶Ë¿Ú¡£ÈçͼËùʾ£º
SSISÒªµ÷ÓÃDCOMÐÒ飬ËùÒÔÔÚʹÓÃSSISµÄʱºòÐèÒª´ò¿ª135¶Ë¿Ú£¬¶øÇÒÕâ¸ö¶Ë¿ÚÊDz»Äܸü¸ÄµÄ¡£Ö»Óдò¿ª TCP ¶Ë¿Ú 135 ²ÅÄÜ·ÃÎÊ·þÎñ¿ØÖƹÜÀíÆ÷ (SCM)¡£SCM Ö´ÐÐÒÔÏÂÈÎÎñ£ºÆô¶¯ºÍÍ£Ö¹ Integration Services ·þÎñ£¬ÒÔ¼°½«¿ØÖÆÇëÇó´«Êäµ½ÔËÐеķþÎñ¡£
½ÓÏÂÀ´ÔÙ˵һÏÂSSAS£¬SSASĬÈÏʵÀýʹÓõÄÊÇ2383¶Ë¿Ú£¬Èç¹ûÊÇÃüÃûʵÀý£¬ÄÇôÿ¸öʵÀý¶¼»áÓÐÒ»¸ö¹ÜÀíÔ±Ö¸¶¨µÄ¶Ë¿Ú£¬Õâ¸ö¶Ë¿ÚÒ²¿ÉÒÔÊǶ¯Ì¬·ÖÅäµÄ£¬ÓÉÓÚÍøÂ簲ȫµÄÐèÒª£¬Ç¿ÁÒ½¨Ò鲻ҪʹÓö¯Ì¬·ÖÅä¶Ë¿ÚµÄ·½°¸¡£Èç¹ûÊǶ¯Ì¬·ÖÅäµÄ¶Ë¿Ú£¬¿Í»§¶ËÔÚÁ¬½Ó·þÎñÆ÷ʱ£¬½«»áÁ¬½Ó·þÎñÆ÷µÄ2382¶Ë¿Ú£¬Õâ¸ö¶Ë¿ÚÊÇSQL Server BrowserʹÓõĶ˿ڡ£SQL Server BrowserÔÙͨ¹ý2382¶Ë¿Ú¸æËß¿Í»§¶Ë£¬ÐèÒªÁ¬½ÓµÄÃüÃûʵÀýµÄʵ¼Ê¶Ë¿ÚºÅ¡££¨ÕâÊǹٷ½µÄ˵·¨£¬µ«ÊÇÎÒ²¢²»È·¶¨ÕâÀïÊÇÒª2382¶Ë¿Ú£¬²»¹ý½ÓÏÂÀ´Ìáµ½µÄUDP1434¶Ë¿ÚÊǿ϶¨ÓÐÓõġ££©ÁíÍâSQL Server BrowserÐèҪʹÓõ½UDPµÄ1434¶Ë¿Ú£¬ËùÒÔÈç¹ûÐèҪʹÓø÷þÎñµÄ»°£¬±ØÐ뽫UDP1434´ò¿ª¡£ÐÞ¸ÄSSASµÄ¶Ë¿Ú£¬ÐèÒªÏÈ´ò¿ªSSAS·þÎñ£¬È»ºóʹÓÃSSMSÁ¬½Óµ½SSASÖУ¬ÔÚ¶ÔÏó×ÊÔ´¹ÜÀíÆ÷ÖÐÓÒ»÷ʵÀý£¬Ñ¡ÔñÊôÐÔ£¬µ¯³ö·ÖÎö·þÎñÊôÐÔ´°¿Ú£¬ÉèÖÃPortÊôÐÔΪÐèÒªµÄ¶Ë¿Ú£¬Ä¬ÈÏÖµÊÇ0£¬Ò²¾ÍÊÇûÓÐÉèÖõÄÒâ˼£¬È»ºóÖØÆôSSAS·þÎñ¼´¿É¡£
ÖØÆôºó£¬SSMS»ñÈ¡ÆäËû¿Í»§¶ËÁ¬½ÓSSASµÄ»°£¬ÄÇô¾ÍÐèҪʹÓÓÖ÷»úÃû:¶Ë¿Ú”µÄ·½Ê½×÷ΪÁ¬½ÓÖ÷»ú£¬¶øÈç¹ûÊÇÊý¾Ý¿âÒýÇæµÄ»°£¬ÄÇôÊÇʹÓÓÖ÷»úÃû,¶Ë¿Ú”µÄ¸ñʽ£¬ÕâÁ½¸öÊÇÓÐËùÇø±ðµÄ¡£
±¨±í·þÎñÊÇͨ¹ýWebµÄ·½Ê½Ìṩ·þÎñµÄ£¬ËùÒÔĬÈÏÇé¿öϱ¨±í·þÎñʹÓõÄÊÇ80¶Ë¿Ú£¬µ±È»Óû§Ò²¿ÉÒÔÐ޸ı¨±í·þÎñµÄ¶Ë¿Ú£¬ÔÚ±¨±í·þÎñÅäÖùÜÀíÆ÷ÖÐÐÞ¸ÄWeb·þÎñºÍ±¨±í¹ÜÀíÆ÷µÄ¶Ë¿Ú£¬ÈçͼËùʾ£º
SSBµÄ¶Ë¿ÚÅäÖã¬SSBÈç¹ûÉæ¼°µ½¼ÆËã»úÖ®¼äͨ¹ýÍøÂç½øÐÐͨÐÅ£¬ÄÇô¾ÍÐèÒªÉèÖö˵㣨EndPoint£©£¬ÔÚÉèÖÃSSBµÄ¶Ëµãʱ£¬¾ÍÐèÒªÖƶ¨ÕìÌýµÄ¶Ë¿Ú£¬±ÈÈçÎÒÃÇ´´½¨ÕâÑùÒ»¸ö¶Ëµã£º
USE master;
GO
CREATE ENDPOINT BrokerEndpoint
STATE = STARTED
Ïà¹ØÎĵµ£º
Ê×ÏÈ£º·ÖÀëÊý¾Ý¿â
ÆóÒµ¹ÜÀíÆ÷--ÓÒ¼üsuspectµÄÊý¾Ý¿â--ËùÓÐÈÎÎñ--·ÖÀëÊý¾Ý¿âÈ»ºó±¸·ÝÄãµÄsuspectÊý¾Ý¿âµÄÎļþ,ÔÙ°´ÏÂÃæµÄ²½Öè´¦Àí:
1.н¨Ò»¸öͬÃûµÄÊý¾Ý¿â
2.ÔÙÍ£µôsql server
3.ÓÃsuspectÊý¾Ý¿âµÄÎļþ¸²¸ÇµôÕâ¸öн¨µÄͬÃûÊý¾Ý¿â
4.ÔÙÖØÆôsql server
5.´Ëʱ´ò¿ªÆóÒµ¹ÜÀíÆ÷ʱн¨µÄͬÃûÊý¾Ý¿â»á³öÏÖÖÃÒÉ£¬ÏȲ» ......
50¸öSqlÓï¾ä£¬½ö¹©Ñ§Ï°£¡
Student(S#,Sname,Sage,S***) ѧÉú±í
Course(C#,Cname,T#) ¿Î³Ì±í
SC(S#,C#,score) ³É¼¨±í
Teacher(T#,Tname) ½Ìʦ±í
ÎÊÌ⣺
1¡¢²éѯ“001”¿Î³Ì±È“002”¿Î³Ì³É¼¨¸ßµÄËùÓÐѧÉúµÄѧºÅ£»
select a.S# from (select s#,score from SC ......
Union All/Union/Intersect²Ù×÷
ÊÊÓó¡¾°£º¶ÔÁ½¸ö¼¯ºÏµÄ´¦Àí£¬ÀýÈç×·¼Ó¡¢ºÏ²¢¡¢È¡ÏàͬÏî¡¢ÏཻÏîµÈµÈ¡£
Concat£¨Á¬½Ó£©
˵Ã÷£ºÁ¬½Ó²»Í¬µÄ¼¯ºÏ£¬²»»á×Ô¶¯¹ýÂËÏàͬÏÑÓ³Ù¡£
1.¼òµ¥ÐÎʽ£º
var q = (
from c in db.Customers
select c.Phone
).Concat(
from c in db.Customers
......
eclipse ¹ØÁª sql server µÄJDBCÎÊÌâ
±à³ÌÔËÐкóÌáʾ£º
java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
ÉÏÍø²éÁË£¬ÓеÄ˵ÔÚ»·¾³±äÁ¿ÀïµÄclasspathÌí¼Ó JDBCÀïµÄ3¸öjarÎļþ¾Í¿ÉÒÔ£¬µ«ÊÇʹÓúó»¹ÊDz»ÐС£
ºóÀ´²ÅÖªµÀ½â¾ö·½·¨£º
°ü×ÊÔ´¹ÜÀíÆ÷-->°üÃûÓÒ¼ü"¹¹½¨Â·¾¶"--> ......
StringBuilder Asql = new StringBuilder();
Asql.Append(" select '' as 'ÐòºÅ', T_Station.µµ°¸ºÅ,T_Station.StationName as '̨վÃû' , ");
Asql.Append(" ÇøÕ¾ºÅ.ÇøÕ ......