premiere Posted November 26, 2006 Report Share Posted November 26, 2006 PessoalAqui no IIS roda perfeito mas quando enviei para o servidor dá este erro:HTTP/1.1 404 Object Not Foundvejam o codigo:<%'Faço a conexão com o bd e recupero os dadoscnpath="DBQ=" & Server.MapPath("noticias.mdb") DataSource = "Driver={Microsoft Access Driver (*.mdb)}; " & cnpath Set Conn = Server.CreateObject("ADODB.Connection") Conn.Open DataSourceset rs=conn.execute("select*from Noticias")%>alguém poderia me dar uma dica de onde estou errando? Quote Link to comment Share on other sites More sharing options...
0 DELPHI-Man32 Posted November 26, 2006 Report Share Posted November 26, 2006 bom, usa JET para conectar.'CRIANDO A CONEXAO E ABRINDO Set Conexao = Server.CreateObject("ADODB.Connection") Conexao.open "PROVIDER=Microsoft.JET.OLEDB.4.0; Data Source="& Server.MapPath("noticias.mdb") 'CRIANDO A SQL sql = "select * from noticias" 'CRIANDO O RS 'Set RS = Conexao.Execute(sql) Quote Link to comment Share on other sites More sharing options...
Question
premiere
Pessoal
Aqui no IIS roda perfeito mas quando enviei para o servidor dá este erro:
HTTP/1.1 404 Object Not Found
vejam o codigo:
<%
'Faço a conexão com o bd e recupero os dados
cnpath="DBQ=" & Server.MapPath("noticias.mdb")
DataSource = "Driver={Microsoft Access Driver (*.mdb)}; " & cnpath
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open DataSource
set rs=conn.execute("select*from Noticias")
%>
alguém poderia me dar uma dica de onde estou errando?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.