Ver Mensaje Individual
  #74 (permalink)  
Antiguo 25/07/2005, 12:37
Avatar de Saruman
Saruman
 
Fecha de Ingreso: mayo-2003
Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 22 años
Puntos: 5
ok, ya me funciona bien, pero ahora no se porque me manda error en la coneccion...


Microsoft OLE DB Provider for SQL Servererror '80040e4d'

Login failed for user 'BIOL'. /bi/users/login.asp, line 9

cuando lo hago asi no me funciona:

Código:
 ObjConn.Open = DBOpenConection()
pero cuando le pongo todo el string si:

Código:
 
conectar = "Provider=sqloledb;" & _ 
	   "Data Source=" & strDBPath & ";" & _
	   "Persist Security Info=False;Trusted_Connection=false;" & _
	   "Initial Catalog=" & strDBName & ";" & _
	   "User Id=" & strDBUserId & ";" & _
	   "Password=" & strDBPassword
  
.
.
ObjConn.Open conectar
yo en todo el sistema que estoy haciendo lo utilizo como está arriba y me funciona perfectamente... cual es el problema??

esta es la funcion:

Código:
 
Function DBOpenConection()
  Dim Master
  Dim strSringConection
  
  strStringConection = "Provider=sqloledb;" & _ 
		"Data Source=" & strDBPath & ";" & _
		"Persist Security Info=False;Trusted_Connection=false;" & _
		"Initial Catalog=" & strDBName & ";" & _
		"User Id=" & strDBUserId & ";" & _
		"Password=" & strDBPassword
  
  Set Master = Server.CreateObject("ADODB.Connection")
  Master.Open strStringConection
  Set DBOpenConection = Master
 End Function
me puedes ayudar??
gracias....
__________________
Saruman

One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them.