Click here to Skip to main content
15,887,350 members
Home / Discussions / Database
   

Database

 
GeneralRe: problem with Sqlparameters :( Pin
Colin Angus Mackay9-Feb-06 14:18
Colin Angus Mackay9-Feb-06 14:18 
GeneralRe: problem with Sqlparameters :( Pin
TheJudeDude9-Feb-06 14:27
TheJudeDude9-Feb-06 14:27 
QuestionOptimizing my query Pin
smita_roy13-Nov-05 2:19
smita_roy13-Nov-05 2:19 
Questionstored procedure, LIKE comparison Pin
steve_rm12-Nov-05 18:57
steve_rm12-Nov-05 18:57 
AnswerRe: stored procedure, LIKE comparison Pin
Colin Angus Mackay12-Nov-05 22:33
Colin Angus Mackay12-Nov-05 22:33 
GeneralRe: stored procedure, LIKE comparison Pin
BReddy15-Nov-05 2:48
BReddy15-Nov-05 2:48 
GeneralRe: stored procedure, LIKE comparison Pin
Colin Angus Mackay15-Nov-05 3:04
Colin Angus Mackay15-Nov-05 3:04 
Questionmy problem with ado.net Pin
da vinci coder12-Nov-05 13:07
da vinci coder12-Nov-05 13:07 
hi guys..

my problem is like this..

i have a query which is :

string query = "select count(*) AS [username] from [" + tablename + "] WHERE username = '"+username+"'";

and my method is :

public void checkIfUserExists(string username,string tablename)

as u can see, i want to check how many user exists with this username in the database, i want to execute the query, and take the result inside an int
( e.g. int result )

if the result is > 0 , then i won`t allow user to choose that username
else user can register..

how can i do this ? it was easy doing that at php but i cant do this in c# because i can`t understand ado.net very well ( datasets, datagrids,etc..)

any help would be great!

thx!
good coding !


AnswerRe: my problem with ado.net Pin
Colin Angus Mackay12-Nov-05 22:38
Colin Angus Mackay12-Nov-05 22:38 
QuestionSQL 2005 & 2000 Pin
Tad McClellan12-Nov-05 3:45
professionalTad McClellan12-Nov-05 3:45 
AnswerRe: SQL 2005 & 2000 Pin
Colin Angus Mackay12-Nov-05 5:18
Colin Angus Mackay12-Nov-05 5:18 
GeneralRe: SQL 2005 & 2000 Pin
Mike Dimmick14-Nov-05 2:26
Mike Dimmick14-Nov-05 2:26 
QuestionWork with two dataBase with different username and password. Pin
goliii12-Nov-05 1:45
goliii12-Nov-05 1:45 
AnswerRe: Work with two dataBase with different username and password. Pin
Colin Angus Mackay12-Nov-05 3:15
Colin Angus Mackay12-Nov-05 3:15 
AnswerRe: Work with two dataBase with different username and password. Pin
Colin Angus Mackay12-Nov-05 3:19
Colin Angus Mackay12-Nov-05 3:19 
QuestionSQL int question (Probably an easy answer too) Pin
Tad McClellan11-Nov-05 15:03
professionalTad McClellan11-Nov-05 15:03 
AnswerRe: SQL int question (Probably an easy answer too) Pin
Colin Angus Mackay11-Nov-05 23:40
Colin Angus Mackay11-Nov-05 23:40 
GeneralRe: SQL int question (Probably an easy answer too) Pin
Tad McClellan12-Nov-05 4:41
professionalTad McClellan12-Nov-05 4:41 
Questionremove a datatable from a dataset Pin
webx1011-Nov-05 10:34
webx1011-Nov-05 10:34 
Questionconnection problem Pin
ashee200011-Nov-05 9:04
ashee200011-Nov-05 9:04 
AnswerRe: connection problem Pin
Colin Angus Mackay11-Nov-05 12:01
Colin Angus Mackay11-Nov-05 12:01 
GeneralRe: connection problem Pin
ashee200014-Nov-05 7:16
ashee200014-Nov-05 7:16 
AnswerRe: connection problem Pin
ricardojb14-Nov-05 17:25
ricardojb14-Nov-05 17:25 
QuestionPassing parameter to Oracle Pin
softty11-Nov-05 8:42
softty11-Nov-05 8:42 
AnswerRe: Passing parameter to Oracle Pin
anandss11-Nov-05 9:18
anandss11-Nov-05 9:18 

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.