validación de una conexión con Python y SQL
def LogIn(Usuario,Contrasea):
	cnx = pypyodbc.connect("Driver={SQL Server}; Server=ROBERTO-PC; DATABASE=DBFerrori;Trusted_Connection=yes")
	cursor=cnx.cursor()
	c=cursor.execute("SELECT * FROM Empleado WHERE IdEmpleado= '%s' AND contrasea= '%s'"%(Usuario, Contrasea) )

Cmo puedo validar si mi consulta se efectu? desde el mismo programa


July 29th, 2015 7:22pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics