Click here to Skip to main content
15,559,698 members
Home / Discussions / C#
   

C#

 
GeneralRe: error ---Cannot find table 0. Pin
Christian Graus26-Jun-09 22:23
mveChristian Graus26-Jun-09 22:23 
AnswerRe: error ---Cannot find table 0. Pin
fly90426-Jun-09 22:55
fly90426-Jun-09 22:55 
GeneralRe: error ---Cannot find table 0. Pin
KIDYA27-Jun-09 2:29
KIDYA27-Jun-09 2:29 
Questionprint a webform (asp.net 2.0 with c#) Pin
Sudhirg kumar26-Jun-09 21:30
Sudhirg kumar26-Jun-09 21:30 
AnswerRe: print a webform (asp.net 2.0 with c#) [modified] Pin
dan!sh 26-Jun-09 21:57
professional dan!sh 26-Jun-09 21:57 
QuestionIE Toolbar not "selectable" Pin
Jerome Caldwell26-Jun-09 19:35
Jerome Caldwell26-Jun-09 19:35 
Questionsql c# connection for sign_in Pin
A_A26-Jun-09 19:18
A_A26-Jun-09 19:18 
AnswerRe: sql c# connection for sign_in Pin
Christian Graus26-Jun-09 19:26
mveChristian Graus26-Jun-09 19:26 
Well, your code has a LOT of issues. The first one is that user is a keyword, so you need to put it in square brackets. select * from [user] where...

The next problem you have is that you're hard coding your connection in the same code as the SQL. Do you use the database anywhere else, at all ? Could you ever ? What if you change your data source, as you're bound to do ( or will every machine you ever deploy to be called 'MAX_TOSHIBA' ??? ). So, you need to factor this code out.

Your next issue is that, based on this code, I can start with your app, and either guarentee myself a login, or at least erase your database. You need to read on SQL injection attacks.

I assume this is not being written for your job, you're a long way from being able to write production quality code. If you're teaching yourself, I'd recommend buying some good books. If you're in a class, then I think you're being moved into learning SQL before you've been taught how to write half decent C#, but I assume it will all work out in the end.

Christian Graus

Driven to the arms of OSX by Vista.

"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

AnswerRe: sql c# connection for sign_in Pin
padmanabhan N26-Jun-09 19:55
padmanabhan N26-Jun-09 19:55 
GeneralRe: sql c# connection for sign_in Pin
Christian Graus26-Jun-09 21:21
mveChristian Graus26-Jun-09 21:21 
GeneralRe: sql c# connection for sign_in Pin
padmanabhan N26-Jun-09 21:41
padmanabhan N26-Jun-09 21:41 
GeneralRe: sql c# connection for sign_in Pin
A_A27-Jun-09 0:29
A_A27-Jun-09 0:29 
GeneralRe: sql c# connection for sign_in Pin
padmanabhan N27-Jun-09 0:40
padmanabhan N27-Jun-09 0:40 
GeneralRe: sql c# connection for sign_in Pin
A_A27-Jun-09 4:17
A_A27-Jun-09 4:17 
QuestionHow to get DiskDrive model if I know the Drive letter Pin
lexx_zone26-Jun-09 11:40
lexx_zone26-Jun-09 11:40 
AnswerRe: How to get DiskDrive model if I know the Drive letter Pin
I Believe In GOD26-Jun-09 14:44
I Believe In GOD26-Jun-09 14:44 
GeneralRe: How to get DiskDrive model if I know the Drive letter Pin
lexx_zone27-Jun-09 2:05
lexx_zone27-Jun-09 2:05 
GeneralRe: How to get DiskDrive model if I know the Drive letter Pin
padmanabhan N27-Jun-09 2:14
padmanabhan N27-Jun-09 2:14 
QuestionArbitrary length bitfields? Pin
Trollslayer26-Jun-09 11:32
mentorTrollslayer26-Jun-09 11:32 
AnswerRe: Arbitrary length bitfields? Pin
Luc Pattyn26-Jun-09 12:01
sitebuilderLuc Pattyn26-Jun-09 12:01 
GeneralRe: Arbitrary length bitfields? Pin
Trollslayer26-Jun-09 12:04
mentorTrollslayer26-Jun-09 12:04 
QuestionDistribute a sql-based solution Pin
saeidfarahi26-Jun-09 11:09
saeidfarahi26-Jun-09 11:09 
AnswerCross post Pin
Not Active26-Jun-09 11:55
mentorNot Active26-Jun-09 11:55 
AnswerRe: Distribute a sql-based solution Pin
I Believe In GOD26-Jun-09 14:03
I Believe In GOD26-Jun-09 14:03 
GeneralRe: Distribute a sql-based solution Pin
saeidfarahi27-Jun-09 0:31
saeidfarahi27-Jun-09 0:31 

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.