以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  连接SQL数据库的问题  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=17029)

--  作者:kevin
--  发布时间:2012/3/1 15:00:00
--  连接SQL数据库的问题

外部数据源如果是Access数据源的话,

BeforeConnectOuterDataSource事件:

If e.name = "User" Then
    e.C & e.ProjectPath & "用户.mdb;Persist Security Info=False"
End if

 

而如果是SQL SERVER 数据源的话,(使用  SQL 2008)

BeforeConnectOuterDataSource事件应该如何写?


--  作者:狐狸爸爸
--  发布时间:2012/3/1 15:10:00
--  

Sql Server一般不需要设置的,除非你的服务器ip地址经常变动。

不过帮助一样有例子的:

http://www.foxtable.com/help/topics/0682.htm