易截截图软件、单文件、免安装、纯绿色、仅160KB

SQLite有办法透过网络连接吗?

目前在公司的linux pc上有一个SQLite server, 我想用在同个区網底下的win pc去连接SQLite server用ASP進行操作, 请问有办法办到吗? 还是SQLite server无法支持网络连接....找了一个下午


剛才我自己試了下, 底下是我的ASP code, mydb目前是我自己在本機上建出來的sqlite文件, 意思是只要把Linux上那個db文件分享出來, windows只能抓到該檔就能進行操作嗎, 不知道有沒有同步上的問題?
<%
Set conn = Server.createObject("ADODB.Connection") '建立一個連線
Set rs = Server.createObject("ADODB.RecordSet") '建立一個recordset
conn.open "DRIVER={SQLite3 ODBC Driver};Database=C:\mydb"
rs.open "select * from Tab_ID",conn,1,3
Do While not rs.EOF
Response.Write rs("ID") & " <br>" & rs("Name")
rs.movenext
Loop
rs.close '關閉recordset
Set rs = Nothing '將recordset設為nothing
conn.close '關閉連線
%>

};Database=C:\mydb"

这是你本地C盘的,当然不是LINUX上的,LINUX你需要用SAMBA来把文件共享出来。

謝謝^^ 明天到公司試試看!


相关问答:

SQlite的一个问题

如下语句 :
select TimeSpan from T_Table where onlineDate = '2009-12-2'
数据库里面有符合条件的值但是查不出来
如果改成如下:
select TimeSpan from T_Table where onlineDate = '200 ......

sqlite的空值查询怎么写,能者得分

sqlite的空值查询怎么写,能者得分
select * from tt where f1 is null

select * from yourTable where col is null;

SQL code:
sqlite> create table Aoqun (id int primary key,col1 int);
sqlite> ......

【如何查看Sqlite数据库中有多少张表[顶者有分]

SqlServer中这样统计:

select name from sysobjects where xtype='U'
要知道总数的话就简单了:
select count(*) from sysobjects where xtype='U'

Oracle中这样查询:
Sele ......

sqlite 高手进来啊

小弟 弄点东西可是调用 sqlite3_prepare 这个函数 select 就好使 只要 改变数据库 的就不行 比如insert 之类的 谁来帮个忙啊 请问这是什么原因 啊 用 c 去实现的
你用的什么工具啊?
把你自己的代码发 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号