Click here to Skip to main content
15,896,201 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to perform Database Update with out using controls or SQL commnads using ADO.NET Pin
Anonymous21-Jul-05 22:14
Anonymous21-Jul-05 22:14 
GeneralRe: How to perform Database Update with out using controls or SQL commnads using ADO.NET Pin
AmmuRaj21-Jul-05 22:55
AmmuRaj21-Jul-05 22:55 
GeneralRe: How to perform Database Update with out using controls or SQL commnads using ADO.NET Pin
Rob Graham22-Jul-05 5:10
Rob Graham22-Jul-05 5:10 
GeneralADO 2.8 Connection Object Closing SQL Server Connection Pin
QuintesV21-Jul-05 5:12
QuintesV21-Jul-05 5:12 
GeneralRe: ADO 2.8 Connection Object Closing SQL Server Connection Pin
Rob Graham21-Jul-05 5:46
Rob Graham21-Jul-05 5:46 
GeneralRe: ADO 2.8 Connection Object Closing SQL Server Connection Pin
QuintesV21-Jul-05 21:10
QuintesV21-Jul-05 21:10 
GeneralRe: ADO 2.8 Connection Object Closing SQL Server Connection Pin
Rob Graham22-Jul-05 10:54
Rob Graham22-Jul-05 10:54 
GeneraldataReader not executing properly Pin
WetRivrRat21-Jul-05 3:54
WetRivrRat21-Jul-05 3:54 
guys, not sure why this one isn't working right, but i need to check the db for that info and if it is null push exception 1 if its not then verify the string saved on the table, if that doesn't pass then push exception 2
enclosed is the C# code....

dataConnection.ConnectionString = "user ID=sa; Pwd=password;Initial Catalog=mydb;Data Source=mycomputer";
				dataConnection.Open();
				dataCommand.Connection = dataConnection;
				dataCommand.CommandText = "SELECT password FROM users WHERE username = 'dash' ";
				dataReader = dataCommand.ExecuteReader(CommandBehavior.CloseConnection);
				while (dataReader.Read())
				{
					if (dataReader["password"].ToString()!=null)
					{

						if (dataReader["password"].ToString().Equals("board"))
						{
						//	InitializeComponent();
						//	Connection();
						dataReader.Close();
						}
						else MessageBox.Show("Sorry, unable to verify license at this time \n\r Please try again later, or contact the system administrator.", "Incorrect License");
						//this.Dispose();
					}
					else MessageBox.Show("Sorry, We are unable to verify your license at this time. \n\r Please try again later, or contact the system admin.");
				}

PS... I put a space between the user id and password becaues the browser was inputting a smiley!

Dim Beautiful As String
Beautiful = "ignorant"
Label1.Text = "The world is full of " & Beautiful & " people."


Why is common sense such an un-common comodity?
GeneralRe: dataReader not executing properly Pin
Rob Graham21-Jul-05 6:22
Rob Graham21-Jul-05 6:22 
GeneralRe: dataReader not executing properly Pin
WetRivrRat22-Jul-05 9:49
WetRivrRat22-Jul-05 9:49 
GeneralRe: dataReader not executing properly Pin
Rob Graham22-Jul-05 10:42
Rob Graham22-Jul-05 10:42 
GeneralRe: dataReader not executing properly Pin
WetRivrRat22-Jul-05 10:48
WetRivrRat22-Jul-05 10:48 
GeneralRe: dataReader not executing properly Pin
Rob Graham22-Jul-05 11:13
Rob Graham22-Jul-05 11:13 
GeneralHelp About Working with DataBases Pin
korso_rogan20-Jul-05 23:21
korso_rogan20-Jul-05 23:21 
QuestionHow can i clear all database connection via t-sql script Pin
m.rastgar20-Jul-05 20:28
m.rastgar20-Jul-05 20:28 
AnswerRe: How can i clear all database connection via t-sql script Pin
Alomgir Miah21-Jul-05 4:10
Alomgir Miah21-Jul-05 4:10 
GeneralRe: How can i clear all database connection via t-sql script Pin
m.rastgar21-Jul-05 11:59
m.rastgar21-Jul-05 11:59 
GeneralRe: How can i clear all database connection via t-sql script Pin
Alomgir Miah22-Jul-05 5:59
Alomgir Miah22-Jul-05 5:59 
GeneralRe: How can i clear all database connection via t-sql script Pin
Alomgir Miah22-Jul-05 10:02
Alomgir Miah22-Jul-05 10:02 
GeneralRe: How can i clear all database connection via t-sql script Pin
m.rastgar22-Jul-05 12:17
m.rastgar22-Jul-05 12:17 
Questionhow to serialize (save) object into SQL Server? Pin
maaaxwell20-Jul-05 16:02
maaaxwell20-Jul-05 16:02 
AnswerRe: how to serialize (save) object into SQL Server? Pin
Christian Graus20-Jul-05 17:27
protectorChristian Graus20-Jul-05 17:27 
GeneralRe: how to serialize (save) object into SQL Server? Pin
maaaxwell21-Jul-05 15:32
maaaxwell21-Jul-05 15:32 
GeneralRe: how to serialize (save) object into SQL Server? Pin
Christian Graus21-Jul-05 16:21
protectorChristian Graus21-Jul-05 16:21 
GeneralDynamically creating DTS package Pin
Martin@captivasystems20-Jul-05 9:30
Martin@captivasystems20-Jul-05 9:30 

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.