Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : access

[ת]C#.net±à³Ì´´½¨ Access ÎļþºÍ Excel Îļþ

һЩϵͳ¿ÉÄÜÐèÇó°ÑÊý¾Ýµ¼³öµ½Access»òÕßExcelÎļþ¸ñʽ£¬ÒÔ·½±ãµÄ´«µÝÊý¾Ý¡¢´òÓ¡µÈ¡£
Excel Îļþ»òÕß AccessÕâÁ½ÖÖÐèÒªµ¼³öµÄÎļþ¿ÉÄܲ¢²»ÊÇÊÂÏȾʹæÔڵģ¬Õâ¾ÍÐèÒªÎÒÃÇ×Ô¼º±à³ÌÉú³ÉËûÃÇ£¬ÏÂÃæÕûÀíÒ»ÏÂÉú³ÉÕâÁ½¸öÎļþµÄһЩ·½·¨£¬Ö»ÂÞÁÐ×î³£Óõġ£²¢²»È«¡£
Ò»¡¢Ê×ÏÈÉú³ÉExcelÎļþ¡£
    ·½°¸Ò»¡¢Èç¹ûÓÃExcel±£´æµÄÖ»ÊǶþάÊý¾Ý£¬Ò²¾ÍÊÇ°ÑËûµ±Êý¾Ý¿âµÄÀ´Óá£
×î¼òµ¥£¬Äã²»ÓÃÒýÓÃÈκζîÍâ×é¼þ£¬Ö»ÐèÒªÓà OLEDB ¾Í¿ÉÒÔÍê³É´´½¨ExcelÎļþ¡£ ·¶Àý´úÂëÈçÏ¡£
using System.Data.OleDb;
public static void CreateExcelFile2()
  {
   string OLEDBConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\aa2.xls;";  
   OLEDBConnStr +=   " Extended Properties=Excel 8.0;";
   string strCreateTableSQL = @" CREATE TABLE ";
   strCreateTableSQL += @" ²âÊÔ±í ";
   strCreateTableSQL += @" ( ";
   strCreateTableSQL += @" ID INTEGER, ";
   strCreateTableSQL += @" UserID INTEGER, ";
   strCreateTableSQL += @" ......

[ת]C#.net±à³Ì´´½¨ Access ÎļþºÍ Excel Îļþ

һЩϵͳ¿ÉÄÜÐèÇó°ÑÊý¾Ýµ¼³öµ½Access»òÕßExcelÎļþ¸ñʽ£¬ÒÔ·½±ãµÄ´«µÝÊý¾Ý¡¢´òÓ¡µÈ¡£
Excel Îļþ»òÕß AccessÕâÁ½ÖÖÐèÒªµ¼³öµÄÎļþ¿ÉÄܲ¢²»ÊÇÊÂÏȾʹæÔڵģ¬Õâ¾ÍÐèÒªÎÒÃÇ×Ô¼º±à³ÌÉú³ÉËûÃÇ£¬ÏÂÃæÕûÀíÒ»ÏÂÉú³ÉÕâÁ½¸öÎļþµÄһЩ·½·¨£¬Ö»ÂÞÁÐ×î³£Óõġ£²¢²»È«¡£
Ò»¡¢Ê×ÏÈÉú³ÉExcelÎļþ¡£
    ·½°¸Ò»¡¢Èç¹ûÓÃExcel±£´æµÄÖ»ÊǶþάÊý¾Ý£¬Ò²¾ÍÊÇ°ÑËûµ±Êý¾Ý¿âµÄÀ´Óá£
×î¼òµ¥£¬Äã²»ÓÃÒýÓÃÈκζîÍâ×é¼þ£¬Ö»ÐèÒªÓà OLEDB ¾Í¿ÉÒÔÍê³É´´½¨ExcelÎļþ¡£ ·¶Àý´úÂëÈçÏ¡£
using System.Data.OleDb;
public static void CreateExcelFile2()
  {
   string OLEDBConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\aa2.xls;";  
   OLEDBConnStr +=   " Extended Properties=Excel 8.0;";
   string strCreateTableSQL = @" CREATE TABLE ";
   strCreateTableSQL += @" ²âÊÔ±í ";
   strCreateTableSQL += @" ( ";
   strCreateTableSQL += @" ID INTEGER, ";
   strCreateTableSQL += @" UserID INTEGER, ";
   strCreateTableSQL += @" ......

AccessÊý¾Ý¿â×Ö¶ÎÀàÐÍ˵Ã÷ÒÔ¼°ÓëSQLÖ®¼äµÄ¶ÔÕÕ¹Øϵ

Îı¾ nvarchar(n)
±¸×¢ ntext
Êý×Ö(³¤ÕûÐÍ) int
Êý×Ö(ÕûÐÍ) smallint
Êý×Ö(µ¥¾«¶È) real
Êý×Ö(Ë«¾«¶È) float
Êý×Ö(×Ö½Ú) tinyint
»õ±Ò money
ÈÕÆÚ smalldatetime
²¼¶û bit
¸½£º×ª»»³ÉSQLµÄ½Å±¾¡£
ALTER TABLE tb ALTER COLUMN aa Byte Êý×Ö[×Ö½Ú]
ALTER TABLE tb ALTER COLUMN aa Long Êý×Ö[³¤ÕûÐÍ]
ALTER TABLE tb ALTER COLUMN aa Short Êý×Ö[ÕûÐÍ]
ALTER TABLE tb ALTER COLUMN aa Single Êý×Ö[µ¥¾«¶È
ALTER TABLE tb ALTER COLUMN aa Double Êý×Ö[Ë«¾«¶È]
ALTER TABLE tb ALTER COLUMN aa Currency »õ±Ò
ALTER TABLE tb ALTER COLUMN aa Char Îı¾
ALTER TABLE tb ALTER COLUMN aa Text(n) Îı¾£¬ÆäÖÐn±íʾ×ֶδóС
ALTER TABLE tb ALTER COLUMN aa Binary ¶þ½øÖÆ
ALTER TABLE tb ALTER COLUMN aa Counter ×Ô¶¯±àºÅ
ALTER TABLE tb ALTER COLUMN aa Memo ±¸×¢
ALTER TABLE tb ALTER COLUMN aa Time ÈÕÆÚ/ʱ¼ä
ÔÚ±íµÄÉè¼ÆÊÓͼÖУ¬Ã¿Ò»¸ö×ֶζ¼ÓÐÉè¼ÆÀàÐÍ£¬AccessÔÊÐí¾ÅÖÖÊý¾ÝÀàÐÍ£ºÎı¾¡¢±¸×¢¡¢ÊýÖµ¡¢ÈÕÆÚ/ʱ¼ä¡¢»õ
±Ò¡¢×Ô¶¯±àºÅ¡¢ÊÇ/·ñ¡¢OLE¶ÔÏó¡¢³¬¼¶Á´½Ó¡¢²éѯÏòµ¼¡£
¡¡Îı¾£ºÕâÖÖÀàÐÍÔÊÐí×î´ó255¸ö×Ö·û»òÊý×Ö£¬AccessĬÈϵĴóСÊÇ ......

AccessÊý¾Ý¿â×Ö¶ÎÀàÐÍ˵Ã÷ÒÔ¼°ÓëSQLÖ®¼äµÄ¶ÔÕÕ¹Øϵ

Îı¾ nvarchar(n)
±¸×¢ ntext
Êý×Ö(³¤ÕûÐÍ) int
Êý×Ö(ÕûÐÍ) smallint
Êý×Ö(µ¥¾«¶È) real
Êý×Ö(Ë«¾«¶È) float
Êý×Ö(×Ö½Ú) tinyint
»õ±Ò money
ÈÕÆÚ smalldatetime
²¼¶û bit
¸½£º×ª»»³ÉSQLµÄ½Å±¾¡£
ALTER TABLE tb ALTER COLUMN aa Byte Êý×Ö[×Ö½Ú]
ALTER TABLE tb ALTER COLUMN aa Long Êý×Ö[³¤ÕûÐÍ]
ALTER TABLE tb ALTER COLUMN aa Short Êý×Ö[ÕûÐÍ]
ALTER TABLE tb ALTER COLUMN aa Single Êý×Ö[µ¥¾«¶È
ALTER TABLE tb ALTER COLUMN aa Double Êý×Ö[Ë«¾«¶È]
ALTER TABLE tb ALTER COLUMN aa Currency »õ±Ò
ALTER TABLE tb ALTER COLUMN aa Char Îı¾
ALTER TABLE tb ALTER COLUMN aa Text(n) Îı¾£¬ÆäÖÐn±íʾ×ֶδóС
ALTER TABLE tb ALTER COLUMN aa Binary ¶þ½øÖÆ
ALTER TABLE tb ALTER COLUMN aa Counter ×Ô¶¯±àºÅ
ALTER TABLE tb ALTER COLUMN aa Memo ±¸×¢
ALTER TABLE tb ALTER COLUMN aa Time ÈÕÆÚ/ʱ¼ä
ÔÚ±íµÄÉè¼ÆÊÓͼÖУ¬Ã¿Ò»¸ö×ֶζ¼ÓÐÉè¼ÆÀàÐÍ£¬AccessÔÊÐí¾ÅÖÖÊý¾ÝÀàÐÍ£ºÎı¾¡¢±¸×¢¡¢ÊýÖµ¡¢ÈÕÆÚ/ʱ¼ä¡¢»õ
±Ò¡¢×Ô¶¯±àºÅ¡¢ÊÇ/·ñ¡¢OLE¶ÔÏó¡¢³¬¼¶Á´½Ó¡¢²éѯÏòµ¼¡£
¡¡Îı¾£ºÕâÖÖÀàÐÍÔÊÐí×î´ó255¸ö×Ö·û»òÊý×Ö£¬AccessĬÈϵĴóСÊÇ ......

ACCESS¼ÓÃÜ·½·¨


MicrosoftµÄACCESSÊý¾Ý¿â£¬ÊÇÎÒÃdz£ÓõÄ×ÀÃæÊý¾ÝÖ®Ò»£¬´ó¶àÖÐСÆóÒµµÄÊý¾Ý¿â¹ÜÀíϵͳ¶¼¿ÉÒÔ²ÉÓÃËü£¬µ«Æ䰲ȫÐÔÒ»Ö±ÁîÈ˵£ÓÌ£¬ÊÔÏ룬һÌײÆÎñ¹ÜÀíϵͳ£¬Óû§Ö±½Ó´ò¿ªÊý¾Ý¿âÈ¥¸ü¸ÄÊý¾Ý£¬ºó¹û»áÈçºÎ£¿ÓÐЩϵͳ¶ÔACCESSÊý¾Ý¿â¿ÉÄÜÖ»ÊǸü¸ÄÀ©Õ¹Ãû£¬»ò¼Ó¸öÃÜÂ룬ÖÚËùÖÜÖª£¬ÆƽâACCESSÃÜÂëµÄ·½·¨ºÍ¹¤¾ßÍøÉ϶àµÄÊÇ£¡ËùÒÔÕâÑùµÄ¼ÓÃÜÒ»ÑùÁîÈ˵£ÓÌ£¬ÏÂÃæ½éÉÜÒ»¸ö¼òµ¥µÄ·½·¨£¬ÊµÏÖACCESSÊý¾ÝµÄ¼ÓÃÜ£¬¹©´ó¼Ò²Î¿¼¡£
    ÓÃUltraEdit´ò¿ªMDBÎļþ¿ÉÒÔ¿´µ½£¬ÎļþÇ°16¸ö×Ö½ÚµÄÄÚÈÝ£º
00 01 00 00 53 74 61 6E 64 61 72 64 20 4A 65 74
ÏÖÔÚËæ±ã¸ü¸Ä¼¸¸ö£¬ÔÙÓÃACCESS´ò¿ª£¬·¢ÏÖ³öÏÖ²»Í¬Ê¶±ðµÄÎļþ¸ñʽ´íÎó£¬ÒòΪACCESSÇ°Ãæ±£´æµÄÐÅÏ¢¶¼ÊÇһЩMDBÎļþµÄ¶¨ÒåºÍ¿ÚÁÈç¹û¸ü¸ÄÕâЩÄÚÈÝ£¬±ðÈ˾ͺÜÄÑ¿´³öÕâ¸öÊý¾Ý¿âµÄ¸ñʽ£¬ÎÞ·¨´ò¿ªËüÁË£¬¶øÇÒÕâÑù²»»á¶ÔÊý¾Ý¿âµÄÄÚÈÝ×÷¸ü¸Ä£¬²»»áÆÆ»µÔ­ÓеÄÊý¾Ý¡£
ÏÂÃæ¾ÍÓÃDelphi×÷¸ö¼òµ¥µÄ¼ÓÃܽâ³ÌÐò£º
Óõ½µÄ¼ÓÃܽ⺯ÊýÈçÏ£º
const
titlestr:array[0..15] of byte=
($00,$01,$00,$00,$53,$74,$61,$6E,$64,$61,$72,$64,$20,$4A,$65,$74) ;//¶ÔÓ¦MDBÎļþµÄÇ°16¸ö×Ö½Ú
titlestr2:array[0..15] of byte=
($48,$4A,$00,$58,$55,$43 ......

SQL Access Advisor

Oracle Êý¾Ý¿â 10g ÌṩÁË´óÁ¿°ïÖú³ÌÐò£¨»ò“¹ËÎʳÌÐò”£©£¬¿É°ïÖúÄú¾ö¶¨×î¼Ñ²Ù×÷Á÷³Ì¡£ÆäÖÐÒ»¸öʾÀýÊÇ SQL Tuning Advisor£¬Ëü¿ÉÒÔÌṩÓйزéѯµ÷ÕûÒÔ¼°ÔÚÁ÷³ÌÖÐÑÓ³¤Õû¸öÓÅ»¯¹ý³ÌµÄ½¨Òé¡£
µ«Ç뿼ÂÇÒÔϵ÷Õû°¸Àý£º¼ÙÉèÒ»¸öË÷ÒýȷʵÓÐÖúÓÚij¸ö²éѯ£¬µ«¸Ã²éѯִֻÐÐÒ»´Î¡£ÕâÑù£¬¼´Ê¹¸Ã²éѯ¿ÉÒÔµÃÒæÓÚ´ËË÷Òý£¬µ«´´½¨Ë÷ÒýµÄ³É±¾Ò²»á³¬³öÆä´øÀ´µÄºÃ´¦¡£Òª°´ÕâÖÖ·½Ê½·ÖÎö°¸Àý£¬ÄúÐèÒªÁ˽â²éѯµÄ·ÃÎÊƵÂʺÍÔ­Òò¡£
ÁíÒ»¸ö¹ËÎʳÌÐò (SQL Access Advisor) ¿ÉÖ´ÐÐÕâÖÖÀàÐ͵ķÖÎö¡£³ýÁËÏñÔÚ Oracle Êý¾Ý¿â 10g ÖÐÒ»Ñù¿ÉÒÔ·ÖÎöË÷Òý¡¢ÎﻯÊÓͼµÈ£¬Oracle Êý¾Ý¿â 11g ÖÐµÄ SQL Access Advisor »¹¿ÉÒÔ·ÖÎö±íºÍ²éѯÒÔʶ±ð¿ÉÄܵķÖÇø²ßÂÔ — ÕâÔÚÉè¼Æ×î¼Ñģʽʱ¿ÉÒÔÌṩºÜ´ó°ïÖú¡£ÔÚ Oracle Êý¾Ý¿â 11g ÖУ¬SQL Access Advisor ÏÖÔÚ¿ÉÒÔÌṩÓëÕû¸ö¸ºÔØÏà¹ØµÄ½¨Ò飬°üÀ¨¿¼ÂÇ´´½¨³É±¾ºÍά»¤·ÃÎʽṹ¡£
ÔÚ±¾ÎÄÖУ¬Äú½«Á˽âÐ嵀 SQL Access Advisor ÈçºÎ½â¾ö³£¼ûÎÊÌâ¡££¨×¢£º³öÓÚÑÝʾĿµÄ£¬ÎÒÃǽ«Í¨¹ýÒ»¸öÓï¾äÑÝʾÕâ¸ö¹¦ÄÜ£»µ«ÊÇ£¬Oracle ½¨ÒéʹÓà SQL Access Advisor À´°ïÖúµ÷ÕûÕû¸ö¸ºÔØ£¬¶ø²»Ö»ÊÇÒ»¸ö SQL Óï¾ä¡££©
ÎÊÌâ
ÏÂÃæÊÇÒ»¸öµäÐÍÎÊÌâ¡£Ó¦ÓóÌÐò·¢³öÁËÒÔÏ SQL Óï¾ä¡ ......

SQL Access Advisor

Oracle Êý¾Ý¿â 10g ÌṩÁË´óÁ¿°ïÖú³ÌÐò£¨»ò“¹ËÎʳÌÐò”£©£¬¿É°ïÖúÄú¾ö¶¨×î¼Ñ²Ù×÷Á÷³Ì¡£ÆäÖÐÒ»¸öʾÀýÊÇ SQL Tuning Advisor£¬Ëü¿ÉÒÔÌṩÓйزéѯµ÷ÕûÒÔ¼°ÔÚÁ÷³ÌÖÐÑÓ³¤Õû¸öÓÅ»¯¹ý³ÌµÄ½¨Òé¡£
µ«Ç뿼ÂÇÒÔϵ÷Õû°¸Àý£º¼ÙÉèÒ»¸öË÷ÒýȷʵÓÐÖúÓÚij¸ö²éѯ£¬µ«¸Ã²éѯִֻÐÐÒ»´Î¡£ÕâÑù£¬¼´Ê¹¸Ã²éѯ¿ÉÒÔµÃÒæÓÚ´ËË÷Òý£¬µ«´´½¨Ë÷ÒýµÄ³É±¾Ò²»á³¬³öÆä´øÀ´µÄºÃ´¦¡£Òª°´ÕâÖÖ·½Ê½·ÖÎö°¸Àý£¬ÄúÐèÒªÁ˽â²éѯµÄ·ÃÎÊƵÂʺÍÔ­Òò¡£
ÁíÒ»¸ö¹ËÎʳÌÐò (SQL Access Advisor) ¿ÉÖ´ÐÐÕâÖÖÀàÐ͵ķÖÎö¡£³ýÁËÏñÔÚ Oracle Êý¾Ý¿â 10g ÖÐÒ»Ñù¿ÉÒÔ·ÖÎöË÷Òý¡¢ÎﻯÊÓͼµÈ£¬Oracle Êý¾Ý¿â 11g ÖÐµÄ SQL Access Advisor »¹¿ÉÒÔ·ÖÎö±íºÍ²éѯÒÔʶ±ð¿ÉÄܵķÖÇø²ßÂÔ — ÕâÔÚÉè¼Æ×î¼Ñģʽʱ¿ÉÒÔÌṩºÜ´ó°ïÖú¡£ÔÚ Oracle Êý¾Ý¿â 11g ÖУ¬SQL Access Advisor ÏÖÔÚ¿ÉÒÔÌṩÓëÕû¸ö¸ºÔØÏà¹ØµÄ½¨Ò飬°üÀ¨¿¼ÂÇ´´½¨³É±¾ºÍά»¤·ÃÎʽṹ¡£
ÔÚ±¾ÎÄÖУ¬Äú½«Á˽âÐ嵀 SQL Access Advisor ÈçºÎ½â¾ö³£¼ûÎÊÌâ¡££¨×¢£º³öÓÚÑÝʾĿµÄ£¬ÎÒÃǽ«Í¨¹ýÒ»¸öÓï¾äÑÝʾÕâ¸ö¹¦ÄÜ£»µ«ÊÇ£¬Oracle ½¨ÒéʹÓà SQL Access Advisor À´°ïÖúµ÷ÕûÕû¸ö¸ºÔØ£¬¶ø²»Ö»ÊÇÒ»¸ö SQL Óï¾ä¡££©
ÎÊÌâ
ÏÂÃæÊÇÒ»¸öµäÐÍÎÊÌâ¡£Ó¦ÓóÌÐò·¢³öÁËÒÔÏ SQL Óï¾ä¡ ......

How to access HTTP server using Telnet

How to access HTTP server using Telnet
1¡¢Telnet www.baidu.com 80
Type : Ctrl + ]
//-------------------------------------------------------------------------------
Type : Enter
//-------------------------------------------------------------------------------
Input : GET / HTTP/1.1  
Type : Enter
Input : HOST:     
Type : Enter Enter
//-------------------------------------------------------------------------------
HTTP/1.1 200 OK
Date: Thu, 22 Oct 2009 02:09:34 GMT
Server: BWS/1.0
Content-Length: 3520
Content-Type: text/html;charset=gb2312
Cache-Control: private
Expires: Thu, 22 Oct 2009 02:09:34 GMT
Set-Cookie: BAIDUID=DEE7265CF1D01127B2546D43AE4DB87C:FG=1; expires=Thu, 22-Oct-3
9 02:09:34 GMT; path=/; domain=.baidu.com
P3P: CP=" OTI DSP COR IVA OUR IND COM "
<html><head><meta http-equiv=Content-Type content="text/html;charset=gb2312"><ti
tle>°Ù¶Èһϣ¬Äã¾ÍÖªµÀ   ......

asp.netÁ´½Ósqlserver2000¡¢2005¡¢access´úÂë

Data Source=sqlservername;Initial Catalog=dbname;User ID=userid;Password=userpwd
Data Source=(local)\\SQLEXPRESS;Initial Catalog=Êý¾Ý¿âÃû;Integrated Security=True
Data Source=(local);Initial Catalog=Êý¾Ý¿âÃû;User ID=ÕʺÅ;Password=ÕʺÅÃÜÂë
Provider=Microsoft.Jet.OleDb.4.0;Data Source=C:\BegASPNET\Northwind.mdb ......

asp.netÁ´½Ósqlserver2000¡¢2005¡¢access´úÂë

Data Source=sqlservername;Initial Catalog=dbname;User ID=userid;Password=userpwd
Data Source=(local)\\SQLEXPRESS;Initial Catalog=Êý¾Ý¿âÃû;Integrated Security=True
Data Source=(local);Initial Catalog=Êý¾Ý¿âÃû;User ID=ÕʺÅ;Password=ÕʺÅÃÜÂë
Provider=Microsoft.Jet.OleDb.4.0;Data Source=C:\BegASPNET\Northwind.mdb ......

asp.netÁ´½Ósqlserver2000¡¢2005¡¢access´úÂë

Data Source=sqlservername;Initial Catalog=dbname;User ID=userid;Password=userpwd
Data Source=(local)\\SQLEXPRESS;Initial Catalog=Êý¾Ý¿âÃû;Integrated Security=True
Data Source=(local);Initial Catalog=Êý¾Ý¿âÃû;User ID=ÕʺÅ;Password=ÕʺÅÃÜÂë
Provider=Microsoft.Jet.OleDb.4.0;Data Source=C:\BegASPNET\Northwind.mdb ......
×ܼǼÊý:314; ×ÜÒ³Êý:53; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [42] [43] [44] [45] 46 [47] [48] [49] [50] [51]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ