Hi peeps, pls i need help on how to hard code my database connect to my application . Example, i want to connect to my application using
dim conn as new SqlConnection
conn.ConnectionString = " connSring"
dim cmd as new SqlCommand
cmd.connection = conn
cmd.commandType = commandType.text
cmd.commandtext = " SELECT * FROM cUSTOMERS"
conn.Open ()
Dim Datread as SqlDataReader
Datread = cmd.ExecuteReader(CommandBehaviour.Default)
While DatRead.Read ()
DatRead("FirstName")
EndWhile
DatRead.Close
Conn.Close