ISA·À»ðǽ¿Í»§¶ËºÍSQLSERVER¿Í»§¶ËµÄÎÊÌâ
ÓÐÍâÀ´³ÌÐò°²×°»ùÓÚ.NET FRAMEWORK 3.5µÄÓ¦ÓóÌÐòÔÚÄÚÍøµÄPCÉÏ£¬ÐèҪͨ¹ýISA·À»ðǽ¿Í»§¶Ë¾¹ý·þÎñÆ÷ÉϵÄISA2006 SP1·ÃÎÊÍâÍøµÄSQLSERVER2005Êý¾Ý¿â¡£
°´ÕÕÒÔÍù¾Ñ飬ÐèÒªÅäÖÃÒ»ÌõSQLSERVER2005·þÎñÆ÷ËùÔÚµÄIPµØÖ·µÄ³öÕ¾¹æÔò£¬²¢ÇÒ²¢²»ÐèÒªÉèÖÃÒ»Ìõ»ùÓÚÓòÃûµÄ¹æÔò¡£
¸ÃÓ¦ÓóÌÐòͨ¹ýÓòÃû·ÃÎÊÄ¿±êÊý¾Ý¿âÒ»ÇÐÕý³£¡£
µ«ÎÒÔÚͬһ̨»úÆ÷ÉÏÓÃSQLSERVER 2005 MANAGEMENT STUDIOͬÑùÓÃÓòÃû·ÃÎÊÄ¿±êÊý¾Ý¿âÔòʧ°ÜÁË£º³¬Ê±Ê±¼äÒѵ½¡£ÔÚ²Ù×÷Íê³É֮ǰ³¬Ê±Ê±¼äÒѹý»ò·þÎñÆ÷δÏìÓ¦¡£ÓÚÊÇÎÒÓÃIPµØÖ··ÃÎÊÄ¿±êÊý¾Ý¿â£¬Ôò³É¹¦ÁË¡£
²é¿´ISA·þÎñÆ÷µÄÈÕÖ¾£¬¶àÁ˼¸Ìõ¼Ç¼£¬µäÐ͵ÄÒ»Ìõ¾ÍÊÇ0x80074e21 FWX_E_ABORTIVE_SHUTDOWN¡£
ΪÁËÕÒµ½ÔÒòÎÒ¿ªÊ¼ÓÃVS2008×Ô¼ºÐ´³ÌÐò²âÊÔ£º
sqlConn = new SqlConnection(@"Data Source=IPµØÖ·;Initial Catalog=***;User ID=***;Password=***");
³É¹¦!
sqlConn = new SqlConnection(@"Data Source=ÓòÃû;Initial Catalog=***;User ID=***;Password=***");
»¹ÊÇʧ°Ü!
Îҷdz£À§»ó£¬ÎªÊ²Ã´ÍâÀ´µÄ³ÌÐòÓÃÓòÃû·ÃÎÊÄܹ»³É¹¦ÄØ¡£
ÓÚÊÇ´ò¿ª¿ØÖÆÃæ°åÖеÄÊý¾ÝÔ´ (ODBC)£¬½¨Á¢Ò»¸öSQLSERVERµÄÁ¬½Ó£¬Õâ¸öʱºò·¢¾õÓÃIPµØÖ·Ò²²»Äܳɹ¦£¬Ææ¹ÖÖп´ÁËÏ¿ͻ§¶ËÅäÖÃÈ¥µôÁ˶¯Ì¬¾ö¶¨¶Ë¿Ú£¬Ö¸¶¨µÄ¶Ë¿ÚΪ1433£¬ÓÚÊÇÓÃIPÁ¬½Ó£¬³É¹¦ÁË¡£½Ó×ÅÓÃÓòÃû²âÊÔÒ²³É¹¦ÁË¡£ÁªÏëµ½ÔÚÕû¸ö²âÊÔ¹ý³ÉÖÐѯÎʹýÆäËûÈËÓÃPB×öµÄ³ÌÐòÊÇÄܳɹ¦·ÃÎÊÔ¶³ÌÊý¾Ý¿âµÄ£¬ÓÚÊÇ»ÐÈ»´óÎò£¬³É¹¦Óë²»³É¹¦ÔÒòÔÚÓëSQLSERVERµÄÇý¶¯ÉÏÃ棬³É¹¦µÄ¶¼ÊÇʹÓÃSQLOLEDBµÄÇý¶¯µÄ¡£
ÓÚÊÇÔÚC#ÖÐдµ½£º
OleDbConnection cnn = null;
¡¡string cnnstr="Provider=SQLOLEDB.1;Initial Catalog=***;Data Source=ÓòÃû,1433;User ID=***; Password=***";
cnn = new
Ïà¹ØÎĵµ£º
Êýѧº¯Êý
ÔÚoracle ÖÐdistinct¹Ø¼ü×Ö¿ÉÒÔÏÔʾÏàͬ¼Ç¼ֻÏÔʾһÌõ
¡¡¡¡1.¾ø¶ÔÖµ
¡¡¡¡S:select abs(-1) value
¡¡¡¡O:select abs(-1) value from dual
¡¡¡¡2.È¡Õû(´ó)
¡¡¡¡S:select ceiling(-1.001) value
¡¡¡¡O:select ceil(-1.001) value from dual
¡¡¡¡3.È¡Õû£¨Ð¡£©
¡¡¡¡S:select floor(-1.001) value
......
ÓÉÓÚÒÔÇ°¶¼ÊÇÔÚsqlserver 2005´¦Àí£¬ÏÖÔÚ¿Í»§ÒªÇóoracleÊý¾Ý¿â·þÎñÆ÷£¬
×î³õµÄ´úÂëΪ£º
allRecordSize = (Integer) rs1.getObject(1); //Integer allRecordSize=0;
µ±Ö´ÐеÄʱºò±¨£ºBigDecimalÎÞ·¨×ª»¯ÎªIntegerÀàÐÍ
ΪÁ˼æÈÝÁ½ÕßÐ޸ĺóµÄ´úÂëΪ£º
Object o = rs1.getObject(1);
&nbs ......
1.Ñ¡Ôñ×îÓÐЧÂʵıíÃû˳Ðò(Ö»ÔÚ»ùÓÚ¹æÔòµÄÓÅ»¯Æ÷ÖÐÓÐЧ)¡¡¡¡
¡¡¡¡ SQLSERVERµÄ½âÎöÆ÷°´ÕÕ´ÓÓÒµ½×óµÄ˳Ðò´¦Àífrom×Ó¾äÖеıíÃû£¬Òò´Ëfrom×Ó¾äÖÐдÔÚ×îºóµÄ±í£¨»ù´¡±ídriving table£©½«±»×îÏÈ´¦Àí£¬ÔÚfrom×Ó¾äÖаüº¬¶à¸ö±íµÄÇé¿öÏ£¬±ØÐëÑ¡Ôñ¼Ç¼ÌõÊý×îÉٵıí×÷Ϊ»ù´¡±í£¬µ±SQLSERVER´¦Àí¶à¸ö±íʱ£¬»áÔËÓÃÅÅÐò¼°ºÏ²¢µÄ·½Ê½Á ......
EXEC sp_addlinkedsrvlogin @rmtsrvname = 'serverontest', @useself = 'false', @locallogin = 'sa', @rmtuser = 'sa', @rmtpassword = 'passwordofsa'
Ìí¼ÓµÇ¼·½Ê½
ÒÔÉÏÁ½¸öÓï¾äÖУ¬@serverΪ·þÎñÆ÷µÄ±ðÃû£¬@datasrcΪҪÁ´½ÓµÄÄ¿±êÊý¾Ý¿âµÄÁ¬½Ó´®£¬@rmtsrvnameΪ±ðÃû,@localloginΪ±¾µØµÇ¼µÄÓû§Ãû£¬@rmtuserºÍ@rmtpa ......