以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 外网 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=133699) |
-- 作者:cqli -- 发布时间:2019/4/18 11:15:00 -- 外网 你好! 内网能使用软件,外网用软件需要做哪些事
|
-- 作者:有点甜 -- 发布时间:2019/4/18 12:12:00 -- 1、你的数据库是什么数据库?access还是sqlserver?
2、如果是sqlserver,只需要修改你的数据库连接字符串的地址为你的ip地址,即可。 |
-- 作者:cqli -- 发布时间:2019/4/18 13:36:00 -- SQL数据库用 外网IP吗? |
-- 作者:cqli -- 发布时间:2019/4/18 13:43:00 -- 配置管理器里需要设置内网IP和外网IP,连接字符窜地址 If e.name = "GLDZ" Then e.C ’内网 ElseIf e.name = "GLDZ" Then e.C ’外网 End If |
-- 作者:cqli -- 发布时间:2019/4/18 13:45:00 -- If e.name = "GLDZ" Then 内网 e.C ElseIf e.name = "GLDZ" Then 外网 e.C End If
|
-- 作者:cqli -- 发布时间:2019/4/18 13:47:00 -- If e.name = "GLDZA" Then 内网 e.C ElseIf e.name = "GLDZA" Then 外网 e.C End If |
-- 作者:有点甜 -- 发布时间:2019/4/18 15:14:00 -- 判断内网还是外网,参考
http://www.foxtable.com/webhelp/scr/2709.htm
然后设置不同的连接字符串。dataSource=外网ip地址 |