易截截图软件、单文件、免安装、纯绿色、仅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来把文件共享出来。

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


相关问答:

c#连接Sqlite数据库问题

我用sqliteadmin建了一个数据库test.sdb,可是怎么也打不开提示如下错误:File opened that is not a database file
file is encrypted or is not a database。

我的连接字符串如下楼上的可不可以帮我看看
S ......

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数据库查询表靠前

刚入门 想实现新闻表新闻置顶的功能

select * from web_news  order by id desc limit 0,6

web_news 表里有TOP列 怎样让TOP列记录为1的为置前  各位大大们帮帮忙 分不多 请包涵!!
order ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号