Jump to content
Fórum Script Brasil
  • 0

Objeto Não Encontrado


premiere
 Share

Question

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

  • 0

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)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Forum Statistics

    • Total Topics
      151k
    • Total Posts
      649.1k
×
×
  • Create New...