sqlserver 2000 Ô¶³ÌÁ¬½Ó ·þÎñÆ÷µÄ½â¾ö·½°¸
sqlserver 2000 Ô¶³ÌÁ¬½Ó ·þÎñÆ÷µÄ½â¾ö·½°¸
Ïêϸ³ö´¦²Î¿¼£ºhttp://www.jb51.net/article/18774.htm
¾ßÌå²½Ö裺
Ò»¡¢ping·þÎñÆ÷IPÄÜ·ñpingͨ
¹Û²ìÔ¶³ÌSQL Server 2000·þÎñÆ÷µÄÎïÀíÁ¬½ÓÊÇ·ñ´æÔÚ¡£Èç¹û²»ÐУ¬Çë¼ì²éÍøÂ磬²é¿´ÅäÖ㬵±È»µÃÈ·±£Ô¶³Ìsql server 2000·þÎñÆ÷µÄIPƴдÕýÈ·¡£
¶þ ÔÚDos»òÃüÁîÐÐÏÂÊäÈëtelnet ·þÎñÆ÷IP ¶Ë¿Ú£¬¿´ÄÜ·ñÁ¬Í¨
Èçtelnet 202.114.100.100 1433
ͨ³£¶Ë¿ÚÖµÊÇ1433£¬ÒòΪ1433ÊÇSQL Server 2000µÄ¶ÔÓÚTcp/IPµÄĬÈÏÕìÌý¶Ë¿Ú¡£Èç¹ûÓÐÎÊÌ⣬ͨ³£ÕâÒ»²½»á³öÎÊÌ⡣ͨ³£µÄÌáʾÊÇ“……ÎÞ·¨´ò¿ªÁ¬½Ó,Á¬½Óʧ°Ü"¡£
Èç¹ûÕâÒ»²½ÓÐÎÊÌ⣬Ӧ¸Ã¼ì²éÒÔÏÂÑ¡Ïî¡£
1.¼ì²éÔ¶³Ì·þÎñÆ÷ÊÇ·ñÆô¶¯ÁËsql server 2000·þÎñ¡£Èç¹ûûÓУ¬ÔòÆô¶¯¡£
2.¼ì²é·þÎñÆ÷¶ËÓÐûÆôÓÃTcp/IPÐÒ飬ÒòΪԶ³ÌÁ¬½Ó£¨Í¨¹ýÒòÌØÍø£©ÐèÒª¿¿Õâ¸öÐÒé¡£¼ì²é·½·¨ÊÇ£¬ÔÚ·þÎñÆ÷ÉÏ´ò¿ª ¿ªÊ¼²Ëµ¥-#gt;³ÌÐò-#gt;Microsoft SQL Server-#gt;·þÎñÆ÷ÍøÂçʵÓù¤¾ß£¬¿´ÆôÓõÄÐÒéÀïÊÇ·ñÓÐtcp/ipÐÒ飬Èç¹ûûÓУ¬ÔòÆôÓÃËü¡£
3.¼ì²é·þÎñÆ÷µÄtcp/ip¶Ë¿ÚÊÇ·ñÅäÖÃΪ1433¶Ë¿Ú¡£ÈÔÈ»ÔÚ·þÎñÆ÷ÍøÂçʵÓù¤¾ßÀï²é¿´ÆôÓÃÐÒéÀïÃæµÄtcp/ipµÄÊôÐÔ£¬È·±£Ä¬È϶˿ÚΪ1433£¬²¢ÇÒÒþ²Ø·þÎñÆ÷¸´Ñ¡¿òûÓй´ÉÏ¡£
ÊÂʵÉÏ£¬Èç¹ûĬÈ϶˿ڱ»Ð޸ģ¬Ò²ÊÇ¿ÉÒԵģ¬µ«ÊÇÔÚ¿Í»§¶Ë×ötelnet²âÊÔʱ£¬Ð´·þÎñÆ÷¶Ë¿ÚºÅʱ±ØÐëÓë·þÎñÆ÷ÅäÖõĶ˿ںű£³ÖÒ»Ö¡£Èç¹ûÒþ²Ø·þÎñÆ÷¸´Ñ¡¿ò±»¹´Ñ¡£¬ÔòÒâζ×Å¿Í»§¶ËÎÞ·¨Í¨¹ýö¾Ù·þÎñÆ÷À´¿´µ½Õą̂·þÎñÆ÷£¬Æðµ½Á˱£»¤µÄ×÷Ó㬵«²»Ó°ÏìÁ¬½Ó£¬µ«ÊÇTcp/ipÐÒéµÄĬÈ϶˿ڽ«±»ÒþʽÐÞ¸ÄΪ2433£¬ÔÚ¿Í»§¶ËÁ¬½Óʱ±ØÐë×÷ÏàÓ¦µÄ¸Ä±ä¡£
4.Èç¹û·þÎñÆ÷¶Ë²Ù×÷ϵͳ´ò¹ýsp2²¹¶¡£¬ÔòÒª¶Ôwindows·À»ðǽ×÷Ò»¶¨µÄÅäÖã¬Òª¶ÔËü¿ª·Å1433¶Ë¿Ú£¬Í¨³£ÔÚ²âÊÔʱ¿ÉÒÔÖ±½Ó¹Øµôwindows·À»ðǽ£¨ÆäËûµÄ·À»ðǽҲ¹Øµô×îºÃ£©¡£
5.¼ì²é·þÎñÆ÷ÊÇ·ñÔÚ1433¶Ë¿ÚÕìÌý¡£Èç¹û·þÎñÆ÷ûÓÐÔÚtcpÁ¬½ÓµÄ1433¶Ë¿ÚÕìÌý£¬ÔòÊÇÁ¬½Ó²»Éϵġ£¼ì²é·½·¨ÊÇÔÚ·þÎñÆ÷µÄdos»òÃüÁîÐÐÏÂÃæÊäÈënetstat -a -n »òÕßÊÇnetstat -an£¬ÔÚ½á¹ûÁбíÀï¿´ÊÇ·ñÓÐÀàËÆ tcp 127.0.0.1 1433 listening µÄÏî¡£Èç¹ûûÓУ¬Ôòͨ³£ÐèÒª¸øsql server 2000´òÉÏÖÁÉÙsp3µÄ²¹¶¡¡£ÆäʵÔÚ·þÎñÆ÷¶ËÆô¶¯²éѯ·ÖÎöÆ÷£¬ÊäÈë select @@version Ö´Ðкó¿ÉÒÔ¿´µ½°æ±¾ºÅ£¬°æ±¾ºÅÔÚ8.0.2039ÒÔϵĶ¼ÐèÒª´ò²¹¶¡¡£
Èç¹ûÒÔÉ϶¼Ã»ÎÊÌ⣬ÕâʱÄãÔÙ×ötelnet ·þÎñÆ÷ip 1433 ²âÊÔ£¬½«»á¿´µ½ÆÁĻһÉÁÖ®ºó¹â±êÔÚ×óÉϽDz»Í£ÉÁ¶¯¡£¹§Ï²Ä㣬ÄãÂíÉÏ¿ÉÒÔ¿ªÊ¼ÔÚÆóÒµ¹ÜÀíÆ÷»ò²éѯ·
Ïà¹ØÎĵµ£º
SqlServer ±íÖе±Ö®Ç°ÓмǼµÄʱºò·¢ÏÖ±íÉè¼ÆµÄ²»ºÏÀíÒª¼Ó×ֶΣ¬
µ«ÊÇalter table Skating_Consumption add MemberCardId numeric(9)Ö»ÄܼӿÉΪ¿ÕµÄ×ֶΣ¬
½â¾ö°ì·¨£¬
µÚÒ»¡¢¼Ó¸öΪ¿ÕµÄ×Ö¶Î
µÚ¶þ¡¢¸üбíÖмǼÕâ¸ö×Ö¶ÎΪij¸öÖµ
µÚÈý¡¢ÔÙ¸ü¸Ä±í×Ö¶ÎΪ·Ç¿Õ
Óï¾ä
alter table Skating_Consumption add MemberCardId nu ......
Ë÷ÒýµÄÖØÒªÐÔ
Êý¾Ý¿âÐÔÄÜÓÅ»¯ÖÐË÷Òý¾ø¶ÔÊÇÒ»¸öÖØÁ¿¼¶µÄÒòËØ£¬¿ÉÒÔ˵£¬Ë÷ÒýʹÓò»µ±£¬ÆäËüÓÅ»¯´ëÊ©½«ºÁÎÞÒâÒå¡£
¾Û´ØË÷Òý
(Clustered Index)ºÍ·Ç¾Û´ØË÷Òý
(Non- Clustered Index)
×îͨË׵ĽâÊÍÊÇ:¾Û´ØË÷ÒýµÄ˳Ðò¾ÍÊÇÊý¾ÝµÄÎïÀí´æ´¢Ë³Ðò£¬¶ø¶Ô·Ç¾Û´ØË÷ÒýµÄË÷Òý˳ÐòÓëÊý¾ÝÎïÀíÅÅÁÐ˳ÐòÎ޹ء£¾ÙÀýÀ´Ëµ£¬Äã·µ½Ð»ª×ÖµäµÄº ......
//×ܼǼÊý
function sumRecord()
{
var conn= Server.CreateObject("ADODB.connection");
var rs= Server.CreateObject("adodb.recordset");
conn.open("PROVIDER=SQLOLEDB;DATA SOURCE=127.0.0.1;UID=sa;PWD=123456;DATABASE=test");
var sql = "select count(*) as RecordCount from baoming";
rs.open(sql, ......
//×ܼǼÊý
function sumRecord()
{
var conn= Server.CreateObject("ADODB.connection");
var rs= Server.CreateObject("adodb.recordset");
conn.open("PROVIDER=SQLOLEDB;DATA SOURCE=127.0.0.1;UID=sa;PWD=123456;DATABASE=test");
var sql = "select count(*) as RecordCount from baoming";
rs.open(sql, ......
sqlserver¸½¼ÓÊý¾Ý¿â´íÎó823µÄ½â¾ö·½°¸2008-10-13 15:06sqlserver¸½¼ÓÊý¾Ý¿â´íÎó823µÄ½â¾ö·½°¸Ò»¡¢SQL-Server¸½¼ÓÊý¾Ý¿âʱʧ°Ü¡£
1¡¢Òì³£Çé¿ö£º·þÎñÆ÷ÔÚÕý³£ÔËÐеÄÇé¿öÏÂͻȻ¶Ïµç£¬µ¼ÖÂÊý¾Ý¿âÎļþË𻵣¬¾ßÌå±íÏÖÊÇ£ºÊý¾Ý¿âÃûºóÃæÓГ£¨ÖÃÒÉ£©”×ÖÑù¡£
2¡¢Òì³£·ÖÎö£º¹ØÓÚ823´íÎóµÄ SQL-SERVER ÖеİïÖú£º
=== ......