Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_espanol thread: se conecto a la DB?, trajo registros?


Message #1 by "Mr. Jet" <jet_x15@y...> on Thu, 21 Mar 2002 01:04:52 -0800 (PST)
Que tal!,

Ya tengo mi aplicacion funcionando
llanamente, pero por ejemplo si tengo:

sql = "criterio SQL"

Set Conexion = Server.CreateObject ("ADODB.recordset")

Conexion.Open sql, "DSN=dsnAvisos;uid=sa;pwd=abc;"

Como puedo saber :

1. Si se establecio la conexión a la BD
2. Si se conecto a la BD pero no se cumplio el
criterio SQL

Muchas Gracias por la ayuda!


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/
Message #2 by "Jose Ramon Suero Paulino" <jose_suero@h...> on Thu, 21 Mar 2002 09:35:37 -0400
<html><div style='background-color:'><DIV>
<P>Eso te corre perfectamente? porque no es sintaxis ASP.NET sino ASP</P>
<P>"Set" no se usa<BR>Todas las funciones y metodos usan los parametros dentro de parentesis</P>
<P>tienes la directiva &lt;%@&nbsp;Page ASPCompat="True"&nbsp;%&gt;</P>
<P>Verifica bien por favor <IMG height=12 src="http://graphics.hotmail.com/emwink.gif" width=12><BR></P>
<P>
<DIV></DIV>
<DIV></DIV>Que tal!, </P></DIV>
<DIV></DIV>
<DIV></DIV>Ya tengo mi aplicacion funcionando 
<DIV></DIV>llanamente, pero por ejemplo si tengo: 
<DIV></DIV>
<DIV></DIV>sql = "criterio SQL" 
<DIV></DIV>
<DIV></DIV>Set Conexion = Server.CreateObject ("ADODB.recordset") 
<DIV></DIV>
<DIV></DIV>Conexion.Open sql, "DSN=dsnAvisos;uid=sa;pwd=abc;" 
<DIV></DIV>
<DIV></DIV>Como puedo saber : 
<DIV></DIV>
<DIV></DIV>1. Si se establecio la conexión a la BD 
<DIV></DIV>2. Si se conecto a la BD pero no se cumplio el 
<DIV></DIV>criterio SQL 
<DIV></DIV>
<DIV></DIV>Muchas Gracias por la ayuda! 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>__________________________________________________ 
<DIV></DIV>Do You Yahoo!? 
<DIV></DIV>Yahoo! Movies - coverage of the 74th Academy Awards® 
<DIV></DIV>http://movies.yahoo.com/ 
<DIV></DIV>
<DIV></DIV>--- 
<DIV></DIV>Usted está suscrito a aspx_espanol como: 
<DIV></DIV>jose_suero@h... 
<DIV></DIV>Para darse de baja, envíe un mensaje en blanco a 
<DIV></DIV>%%email.unsub%% 
<DIV></DIV>
<DIV></DIV>--- 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV></div><br clear=all><hr>Send and receive Hotmail on your mobile device: <a
href='http://g.msn.com/1HM300901/1U'>Click Here</a><br></html>

  Return to Index