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

ASP²ÉÓÃODBCÊý¾ÝÔ´Á¬½ÓMSSQLÊý¾Ý¿âÏêϸ˵Ã÷¡¾ÊµÓá¿

ODBCÊý¾ÝÔ´¿É·ÖΪ“ϵͳÐÍ”ºÍ“ÎļþÐÍ”£¬ËûÃǵÄÇø±ðÔÚÓړϵͳÐÍ”ÊÇÁ¬½ÓÊý¾Ý¿âµÄÐÅÏ¢½¨Á¢Ôړϵͳע²á±í”À“ÎļþÐÍ”ÔòÊÇÒÔdsnÎļþÐÎʽ´æ´¢ÔÚODBCÔ´µÄĿ¼ÏÂÃæ
Ò»¡¢½¨Á¢ODBCÊý¾ÝÔ´µÄ·½·¨£º
¿ØÖÆÃæ°å - ¹ÜÀí¹¤¾ß - Êý¾ÝÔ´£¨ODBC£©
´ò¿ªODBCÊý¾ÝÔ´¹ÜÀíÆ÷£¬È»ºóÒ»²½²½°´ÕÕÐèÒª½¨Á¢“ϵͳDSN”»òÕß“ÎļþDSN”
(½¨Òé°Ñн¨Á¢µÄÎļþDSN±£´æÔÚODBCÔ´µÄĿ¼ÏÂÃ棬±ãÓÚÁ¬½Ó)
¶þ¡¢MSSQLµÄÊý¾Ý¿âÁ¬½Ó×Ö·û´®Ð´·¨£º
1¡¢Í¨¹ýoledb½¨Á¢Á¬½Ó
conn.open ""Provider=SQLOLEDB;server=(SQL·þÎñÆ÷Ãû³Æ»òIPµØÖ·);database=Êý¾Ý¿âÃû³Æ;uid=;pwd=""
2¡¢Í¨¹ýdriver½¨Á¢Á¬½Ó
conn.open ""driver={sql server};server=(SQL·þÎñÆ÷Ãû³Æ»òIPµØÖ·);database=Êý¾Ý¿âÃû³Æ;uid=;pwd=""
3¡¢Í¨¹ýODBC DSN½¨Á¢Á¬½Ó
ϵͳDSNÁ¬½Ó
conn.open ""DSN=(ϵͳDSNÃû³Æ);Database=Êý¾Ý¿âÃû³Æ;UID=;PWD=;""
ÎļþDSNÁ¬½Ó1
conn.open ""FileDSN=(ÎļþDSNÃû³Æ.dsn);Database=Êý¾Ý¿âÃû³Æ;UID=;PWD=;""
Àý£ºconn.open ""FileDSN=test.dsn;Database=mytest;UID=test;PWD=1234;""
ÎļþDSNÁ¬½Ó2(°²È«ÐÔ×î¸ß)
---ºÍµÚÒ»ÖÖ·½·¨ÀàËÆ,Ö»Êǽ«ÃÜÂëдÔÚODBCÎļþÖÐ
µÚÒ»²½£¬ÓüÇʱ¾ÐÞ¸ÄdsnÎļþ(ºìÉ«²¿·ÖΪÐèÒªÔö¼ÓµÄ)£º
[ODBC]
DRIVER=SQL Server
UID=test
PWD=1234
Regional=Yes
WSID=KIT-PC
APP=Microsoft Data Access Components
SERVER=(local)
µÚ¶þ²½£¬ÐÞ¸ÄÁ¬½Ó×Ö·û´®£º
conn.open ""FileDSN=(ÎļþDSNÃû³Æ.dsn);Database=Êý¾Ý¿âÃû³Æ;""
Èý¡¢AccessÊý¾Ý¿âÁ¬½Ó×Ö·û´®µÄд·¨
ϵͳDSNÁ¬½Ó
conn.open ""test""
ÎļþDSNÁ¬½Ó
conn.open ""filedsn=test.dsn""
(·¢Ìûʱ¼ä:2005-01-04 14:37:01)
---kittow¡¾³ÌÐòÔ±ÁªÃ˳ÉÔ±¡¿¡¾±à¼­¡¿¡¾»Ø¸´¡¿
¡¾Â¥Ö÷¡¿ (1):µÚÒ»²½£¬ÓüÇʱ¾ÐÞ¸ÄdsnÎļþ(ºìÉ«²¿·ÖΪÐèÒªÔö¼ÓµÄ)£º
[ODBC]
DRIVER=SQL Server
UID=test
PWD=1234
Regional=Yes
WSID=MYPC
APP=Microsoft Data Access Components
SERVER=(local)
ÕâÀïÇë×¢ÒâÊÇÔÚUIDÏÂÃæÌí¼ÓÒ»ÐУº
PWD=1234


Ïà¹ØÎĵµ£º

asp µ¼Èëµ¼³öEXCEL

Ò»¡¢asp.netÖе¼³öExeclµÄ·½·¨£º
ÔÚasp.netÖе¼³öExeclÓÐÁ½ÖÖ·½·¨£¬Ò»ÖÖÊǽ«µ¼³öµÄÎļþ´æ·ÅÔÚ·þÎñÆ÷ij¸öÎļþ¼ÐÏÂÃ棬Ȼºó½«ÎļþµØÖ·Êä³öÔÚä¯ÀÀÆ÷ÉÏ£»Ò»ÖÖÊǽ«ÎļþÖ±½Ó½«ÎļþÊä³öÁ÷д¸øä¯ÀÀÆ÷¡£ÔÚResponseÊä³öʱ£¬t·Ö¸ôµÄÊý¾Ý£¬µ¼³öexeclʱ£¬µÈ¼ÛÓÚ·ÖÁУ¬nµÈ¼ÛÓÚ»»ÐС£
1¡¢½«Õû¸öhtmlÈ«²¿Êä³öexecl
´Ë·¨½«htmlÖÐËùÓеÄÄÚ ......

ASP³£Óú¯ÊýÏê½â

Array()
¡¡¡¡FUNCTION: ·µ»ØÒ»¸öÊý×é
¡¡¡¡SYNTAX: Array(list)
¡¡¡¡ARGUMENTS: ×Ö·û£¬Êý×Ö¾ù¿É
¡¡¡¡EXAMPLE: <%
¡¡¡¡Dim myArray()
¡¡¡¡For i = 1 to 7
¡¡¡¡Redim Preserve myArray(i)
¡¡¡¡myArray(i) = WeekdayName(i)
¡¡¡¡Next
¡¡¡¡%[/IMG]
¡¡¡¡RESULT: ½¨Á¢ÁËÒ»¸ö°üº¬7¸öÔªËصÄÊý×émyArray
¡ ......

ASPÖÐSplitº¯ÊýµÄʵÀý

´ó¼ÒÓÐÅöµ½¹ýÒªÏëÈ¡Ò»×Ö·û´®ÀïµÄijЩֵ¶øÎÞ´ÓÏÂÊÖ£¿ÓÐûÓоõµÃ¿´Êé»ò½Ì²Ä¶ÔsplitµÄд·¨ºýÀïºýÍ¿……Èç¹ûÓдËÒÉÎʵĻ°£¬Çë¿´ÏÂÃæÎÒ¶ÔÀý×ӵĽâÊÍ£¬ÏàÐÅÄú»á¶ÔÕâ¸öÓÐÒ»¶¨µÄÁ˽⡣
ÎÒÏȽéÉÜÒ»ÏÂSplitº¯ÊýµÄÓ÷¨:
·µ»ØÖµÊý×é = Split("×Ö·û´®","·Ö¸î·û")
¼ÙÉè±äÁ¿strURL±£´æ×ÅURLÖµ£¬ÈçstrURL = "ftp://username ......

ASPÏîÄ¿ÖеĹ«¹²·­Ò³Ä£¿é

ÔÚ´óÐ͵ÄASPÏîÄ¿ÖУ¬ºÜ¶àµÄÒ³Ã涼Éæ¼°µ½·­Ò³¹¦ÄÜ¡£Èç¹ûÿ¸öÒ³Ã涼дһ¸ö·­Ò³µÄ³ÌÐòµÄ»°£¬ÕâÑùµÄ¹¤×÷¼´½µµÍÁ˹¤×÷Ч
ÂÊ£¬Ò²²»ÀûÓÚ¹¤³ÌµÄÄ£¿é»¯£¬²»ÄÜʹ´úÂëÖØÓá£Òò´Ë£¬°Ñ·­Ò³ÕâÑùµÄ¹¦ÄÜÄ£¿é»¯ÊǺÜÓбØÒªµÄ¡£
¡¡¡¡Éè¼Æ·½·¨£º
¡¡¡¡1¡¢µ÷ÓøÃÄ£¿éʱ£¬Ö»ÐèÒª´«µÝ¼Ç¼¼¯ºÍÿҳÏÔʾµÄ¼Ç¼µÄÌõÊý£»
¡¡¡¡2¡¢¿ÉÒÔµã»÷Á´½Ó½øÐз­ ......

ASPÈçºÎÁ¬½ÓÊý¾ÝÔ´£¿(ϵͳDSN)Öн¨Á¢µÄÊý¾ÝÔ´£¿

ASPÈçºÎÁ¬½ÓÊý¾ÝÔ´£¿(ϵͳDSN)Öн¨Á¢µÄÊý¾ÝÔ´£¿
ASPÔõô½¨Á¢Á¬½Ó£¬²»ÊÇOLEDB·½Ê½£¬ÓÃODBCÖеēÓû§DSN”½¨Á¢µÄÊý¾ÝÔ´½øÐÐÁ¬½Ó£¿ÈçºÎ²Ù×÷£¿
ÎÊÌâ²¹³ä£ºÎÒµÄÊÇODBCÖеēÓû§DSN”²»ÊǓϵͳDSN”£¬“Óû§DSN”ÔõôÁ¬½Ó£¿¶øÇÒÎÒµÄÊý¾Ý¿âÓÐÃÜÂë¡£
ÌáÎÊÕߣºÄäÃû
×î¼Ñ´ð°¸
Set co ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ