CONEXION LOGIN VISUAL STUDIO A SQL SERVER
Publicado por LUIS HERNANDO ROJAS POVEDA (1 intervención) el 27/09/2016 19:49:07
Hola chicos tengo esta base de datos y adicional este código para un FROM de login pero, quiero que me ayuden quiero que el login sea algo mas seguro con algun procedimiento de verificacion en sql server y como pudiera enviarlo a visual estudio a al from.
1
2
3
4
5
6
7
8
9
// Base de Datos CONTAB //
TABLA [USER_SYS]
SELECT TOP 1000 [IDUSUARIO]
,[NOMBRE_USER]
,[USER_ACCOUNT]
,[PASSWORD]
,[ACCOUNT]
FROM [CONTAB].[dbo].[USER_SYS]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Codigo de libreria de conexio //clase// o dll utilizada como referencia en proyecto inicial.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
namespace Milibreria
{
public class Utilidades
{
public static DataSet Ejecutar(string cmd)
{
SqlConnection Con = new SqlConnection("Data Source=LHROJAS-PC;Initial Catalog=CONTAB;Integrated Security=True");
Con.Open();
DataSet DS = new DataSet();
SqlDataAdapter DP = new SqlDataAdapter(cmd,Con);
DP.Fill(DS);
Con.Close();
return DS;
}
}
}
1
2
3
//Codigo de boton aceptar para verificacion al tabla de inicio de sesion // por medio de from
using System;
Valora esta pregunta


0