Click here to Skip to main content
15,886,110 members
Home / Discussions / C#
   

C#

 
GeneralRe: error ---Cannot find table 0. Pin
Christian Graus26-Jun-09 21:23
protectorChristian Graus26-Jun-09 21:23 
AnswerRe: error ---Cannot find table 0. Pin
fly90426-Jun-09 21:55
fly90426-Jun-09 21:55 
GeneralRe: error ---Cannot find table 0. Pin
KIDYA27-Jun-09 1:29
KIDYA27-Jun-09 1:29 
Questionprint a webform (asp.net 2.0 with c#) Pin
Sudhirg kumar26-Jun-09 20:30
Sudhirg kumar26-Jun-09 20:30 
AnswerRe: print a webform (asp.net 2.0 with c#) [modified] Pin
dan!sh 26-Jun-09 20:57
professional dan!sh 26-Jun-09 20:57 
QuestionIE Toolbar not "selectable" Pin
Jerome Caldwell26-Jun-09 18:35
Jerome Caldwell26-Jun-09 18:35 
Questionsql c# connection for sign_in Pin
A_A26-Jun-09 18:18
A_A26-Jun-09 18:18 
AnswerRe: sql c# connection for sign_in Pin
Christian Graus26-Jun-09 18:26
protectorChristian Graus26-Jun-09 18: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 18:55
padmanabhan N26-Jun-09 18:55 
GeneralRe: sql c# connection for sign_in Pin
Christian Graus26-Jun-09 20:21
protectorChristian Graus26-Jun-09 20:21 
GeneralRe: sql c# connection for sign_in Pin
padmanabhan N26-Jun-09 20:41
padmanabhan N26-Jun-09 20:41 
GeneralRe: sql c# connection for sign_in Pin
A_A26-Jun-09 23:29
A_A26-Jun-09 23:29 
GeneralRe: sql c# connection for sign_in Pin
padmanabhan N26-Jun-09 23:40
padmanabhan N26-Jun-09 23:40 
GeneralRe: sql c# connection for sign_in Pin
A_A27-Jun-09 3:17
A_A27-Jun-09 3:17 
QuestionHow to get DiskDrive model if I know the Drive letter Pin
lexx_zone26-Jun-09 10:40
lexx_zone26-Jun-09 10:40 
AnswerRe: How to get DiskDrive model if I know the Drive letter Pin
I Believe In GOD26-Jun-09 13:44
I Believe In GOD26-Jun-09 13:44 
GeneralRe: How to get DiskDrive model if I know the Drive letter Pin
lexx_zone27-Jun-09 1:05
lexx_zone27-Jun-09 1:05 
GeneralRe: How to get DiskDrive model if I know the Drive letter Pin
padmanabhan N27-Jun-09 1:14
padmanabhan N27-Jun-09 1:14 
QuestionArbitrary length bitfields? Pin
Trollslayer26-Jun-09 10:32
mentorTrollslayer26-Jun-09 10:32 
AnswerRe: Arbitrary length bitfields? Pin
Luc Pattyn26-Jun-09 11:01
sitebuilderLuc Pattyn26-Jun-09 11:01 
GeneralRe: Arbitrary length bitfields? Pin
Trollslayer26-Jun-09 11:04
mentorTrollslayer26-Jun-09 11:04 
QuestionDistribute a sql-based solution Pin
saeidfarahi26-Jun-09 10:09
saeidfarahi26-Jun-09 10:09 
AnswerCross post Pin
Not Active26-Jun-09 10:55
mentorNot Active26-Jun-09 10:55 
AnswerRe: Distribute a sql-based solution Pin
I Believe In GOD26-Jun-09 13:03
I Believe In GOD26-Jun-09 13:03 
GeneralRe: Distribute a sql-based solution Pin
saeidfarahi26-Jun-09 23:31
saeidfarahi26-Jun-09 23: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.