Click here to Skip to main content
15,898,746 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL Table Grouping Pin
__TR__21-Aug-12 22:28
__TR__21-Aug-12 22:28 
AnswerRe: SQL Table Grouping Pin
milo-xml22-Aug-12 7:54
professionalmilo-xml22-Aug-12 7:54 
AnswerRe: SQL Table Grouping Pin
Michael Potter23-Aug-12 6:16
Michael Potter23-Aug-12 6:16 
Questionssis database reocords to execel sheet Pin
vasu1219-Aug-12 18:56
vasu1219-Aug-12 18:56 
Questionconverting console base application to windows form Pin
shaikh-adil17-Aug-12 7:45
shaikh-adil17-Aug-12 7:45 
AnswerRe: converting console base application to windows form Pin
Eddy Vluggen17-Aug-12 7:57
professionalEddy Vluggen17-Aug-12 7:57 
GeneralMessage Closed Pin
17-Aug-12 8:03
shaikh-adil17-Aug-12 8:03 
GeneralRe: converting console base application to windows form Pin
Paul Conrad17-Aug-12 8:27
professionalPaul Conrad17-Aug-12 8:27 
As Eddy has mentioned, build a form with the text boxes, and reuse the appropriate code you have in the console app in the windows form app.

I understand you are learning right now, and the following is dangerous as it allows for SQL injection attacks:

SqlCommand command = new SqlCommand("SELECT * FROM [USERS] WHERE Username='" + username + "' AND Password ='" + password + "'" , connection);


You do not want to use string concatenation for building a query, but use parameterized queries instead. Take a look at SQL Injection Attacks and Some Tips on How to Prevent Them[^] to learn how to prevent them.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

GeneralMessage Closed Pin
17-Aug-12 8:36
shaikh-adil17-Aug-12 8:36 
GeneralRe: converting console base application to windows form Pin
Paul Conrad17-Aug-12 9:21
professionalPaul Conrad17-Aug-12 9:21 
SuggestionRe: converting console base application to windows form Pin
Eddy Vluggen17-Aug-12 10:17
professionalEddy Vluggen17-Aug-12 10:17 
GeneralMessage Closed Pin
17-Aug-12 19:37
shaikh-adil17-Aug-12 19:37 
GeneralRe: converting console base application to windows form Pin
Eddy Vluggen17-Aug-12 23:02
professionalEddy Vluggen17-Aug-12 23:02 
GeneralMessage Closed Pin
18-Aug-12 5:28
shaikh-adil18-Aug-12 5:28 
GeneralRe: converting console base application to windows form Pin
Eddy Vluggen18-Aug-12 5:53
professionalEddy Vluggen18-Aug-12 5:53 
AnswerRe: converting console base application to windows form Pin
PIEBALDconsult17-Aug-12 9:46
mvePIEBALDconsult17-Aug-12 9:46 
GeneralRe: converting console base application to windows form Pin
Paul Conrad17-Aug-12 11:06
professionalPaul Conrad17-Aug-12 11:06 
AnswerRe: converting console base application to windows form Pin
WebMaster17-Aug-12 12:09
WebMaster17-Aug-12 12:09 
QuestionData Source Not Found on Windows using MyODBC (MySQL) connector Pin
QuickBooksDev17-Aug-12 7:13
QuickBooksDev17-Aug-12 7:13 
AnswerRe: Data Source Not Found on Windows using MyODBC (MySQL) connector Pin
Eddy Vluggen17-Aug-12 8:03
professionalEddy Vluggen17-Aug-12 8:03 
GeneralRe: Data Source Not Found on Windows using MyODBC (MySQL) connector Pin
QuickBooksDev17-Aug-12 8:17
QuickBooksDev17-Aug-12 8:17 
GeneralRe: Data Source Not Found on Windows using MyODBC (MySQL) connector Pin
Eddy Vluggen17-Aug-12 8:32
professionalEddy Vluggen17-Aug-12 8:32 
QuestionRe: Data Source Not Found on Windows using MyODBC (MySQL) connector Pin
Paul Conrad17-Aug-12 8:32
professionalPaul Conrad17-Aug-12 8:32 
AnswerRe: Data Source Not Found on Windows using MyODBC (MySQL) connector Pin
QuickBooksDev17-Aug-12 8:42
QuickBooksDev17-Aug-12 8:42 
GeneralRe: Data Source Not Found on Windows using MyODBC (MySQL) connector Pin
Paul Conrad17-Aug-12 11:49
professionalPaul Conrad17-Aug-12 11:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.