Click here to Skip to main content
15,907,913 members
Home / Discussions / Database
   

Database

 
GeneralRe: Skeletons in my SQL closet Pin
Terry Denham13-Jan-03 10:38
Terry Denham13-Jan-03 10:38 
GeneralRe: Skeletons in my SQL closet Pin
Terry Denham13-Jan-03 10:42
Terry Denham13-Jan-03 10:42 
GeneralAccess database Pin
Sarvesvara (BVKS) Dasa12-Jan-03 23:31
Sarvesvara (BVKS) Dasa12-Jan-03 23:31 
GeneralRe: Access database Pin
SimonS12-Jan-03 23:54
SimonS12-Jan-03 23:54 
GeneralRe: Access database Pin
Sarvesvara (BVKS) Dasa13-Jan-03 2:42
Sarvesvara (BVKS) Dasa13-Jan-03 2:42 
GeneralRe: Access database Pin
David Wulff13-Jan-03 10:18
David Wulff13-Jan-03 10:18 
GeneralRe: Access database Pin
Sarvesvara (BVKS) Dasa13-Jan-03 20:40
Sarvesvara (BVKS) Dasa13-Jan-03 20:40 
GeneralWeb site does not deploy Pin
dyerstein12-Jan-03 7:27
dyerstein12-Jan-03 7:27 
I have created a simple C# ASP.NET app, that uses a database(SQL) which is programed only to check users againsit a the database entry. when I try to run the program, I get to the server page, and than when I enter the user password, than I press invoke. however I just get a "The page can not be displayed - There is a problem with the page you are trying to reach and it cannot be displayed." error message. To my knowledge I have programmed this correctly, but can't seem to get pass this error. The below code is all I'm doing:

[WebService(Name="TestWebServer Web Service", Description="Test SQL Database")]
public class Service1 : System.Web.Services.WebService
{
const string connStr="server=SILICON;uid=sa;pwd=;database=MytestDatabase";
[WebMethod(Description="Method to Authenticate Users")]
public bool Authenticate(string username, string password)
{
SqlConnection dbConn = new SqlConnection(connStr);
string sqlStr = "SELECT Password from PM_USERS where UserName = '" + username + "';";
dbConn.Open();
SqlCommand dbCommand = new SqlCommand(sqlStr,dbConn);
SqlDataReader dbReader = dbCommand.ExecuteReader();

bool returnBool;
if (dbReader.Read())
{
if (dbReader[0].ToString()==password)
{
returnBool = true;
}
else
{
returnBool = false;
}
}
else
{
returnBool=false;
}
dbReader.Close();
dbConn.Close();
return returnBool;
}

that's pretty much it! Eek! | :eek:
GeneralRe: Web site does not deploy Pin
Sarvesvara (BVKS) Dasa12-Jan-03 23:30
Sarvesvara (BVKS) Dasa12-Jan-03 23:30 
GeneralDisconnected ADO Recordset Pin
Ranjan Banerji11-Jan-03 6:00
Ranjan Banerji11-Jan-03 6:00 
GeneralRe: Disconnected ADO Recordset Pin
Hesham Amin11-Jan-03 8:05
Hesham Amin11-Jan-03 8:05 
GeneralImporting Text Files into SQLServer Pin
dturton10-Jan-03 13:28
dturton10-Jan-03 13:28 
GeneralRe: Importing Text Files into SQLServer Pin
mwilliamson12-Jan-03 15:49
mwilliamson12-Jan-03 15:49 
GeneralRe: Importing Text Files into SQLServer Pin
dturton13-Jan-03 2:42
dturton13-Jan-03 2:42 
GeneralRe: Importing Text Files into SQLServer Pin
Terry Denham13-Jan-03 10:49
Terry Denham13-Jan-03 10:49 
GeneralSQlServer arabic Query Pin
intibnin9-Jan-03 20:48
intibnin9-Jan-03 20:48 
GeneralRe: SQlServer arabic Query Pin
Mazdak10-Jan-03 4:08
Mazdak10-Jan-03 4:08 
GeneralRe: SQlServer arabic Query Pin
Hesham Amin11-Jan-03 7:56
Hesham Amin11-Jan-03 7:56 
GeneralDelete records after certain period Pin
alex.barylski9-Jan-03 20:25
alex.barylski9-Jan-03 20:25 
GeneralRe: Delete records after certain period Pin
mwilliamson12-Jan-03 15:46
mwilliamson12-Jan-03 15:46 
GeneralRe: Delete records after certain period Pin
Hesham Amin13-Jan-03 20:23
Hesham Amin13-Jan-03 20:23 
GeneralAutoNumber field limit Pin
Benjamin Ng9-Jan-03 20:05
Benjamin Ng9-Jan-03 20:05 
GeneralRe: AutoNumber field limit Pin
mwilliamson12-Jan-03 15:47
mwilliamson12-Jan-03 15:47 
GeneralRe: AutoNumber field limit Pin
Terry Denham13-Jan-03 10:56
Terry Denham13-Jan-03 10:56 
GeneralHelp error "Login failed for user 'PRESARIO1692\ASPNET'. " Pin
marnicola9-Jan-03 11:54
marnicola9-Jan-03 11:54 

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.