请问我刚刚申请了50M的数据库空间,开的是SQL Server,请怎么样才能在我的机器上用SQL Server2000软件能过Internet连接到的我数据库,我的ODBC是否需要设置,另外在ASP中如何设置。
谢谢!
不用
装一个SQL server客户端
(类似IIS管理器的数据库管理器)
用TCP/IP联接到你的服务器就可以了
在asp程序中链接数据库这样就行了.
dim conn
dim connstr
on error resume next
connstr="DRIVER={SQL Server};server=210.76.63.15;uid=wgf;pwd=mm;database=database"
set conn=server.createobject("ADODB.CONNECTION")
if err then
response.End()
else
conn.open connstr
if err then
err.clear
end if
end if