ASP - Problemas de conexion

 
Vista:
sin imagen de perfil

Problemas de conexion

Publicado por Gustavo (2 intervenciones) el 16/01/2009 19:15:36
Hola gente. Tengo una aplicacion en .asp corriendo en un servidor que tiene instalado un SQL Server 2005. Con esta base esta todo bien; el problema lo tengo cuando necesito traer datos desde otro servidor que tiene un SQL 2000.
Este es el codigo:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
</head>

<body>
<%
Dim con
Set con = Server.CreateObject("ADODB.Connection")
con.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;Data Source=servidor;Initial Catalog=base;User ID=usuario;Password=password"
response.Write(con)
con.Open()
%>

</body>
</html>

Los datos que no figuran (nombre servidor, nombre base, usuario y password) estan bien porque desde un archivo .udl de prueba me puedo conectar

Este es el error:

Microsoft OLE DB Provider for SQL Server error '80004005'
[DBNETLIB][ConnectionOpen (Connect()).]No existe el servidor SQL Server o se ha denegado el acceso al mismo.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder