Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Did Chavez really win his elections?
Message
Information générale
Forum:
Politics
Catégorie:
Élections
Divers
Thread ID:
01197744
Message ID:
01197951
Vues:
13
>>>>http://www.nysun.com/article/48925
>...
>>
>>Then we have Texas politics. More people vote than are registered. You just count deceased voters who automatically voted for you. The neat thing about electronic voting machines is no one has to go to the poles to vote. Someone can program who the winner is and save us the trouble of wasting our time.
>
>Wow, I didn't know that, Tom. Even in the US we can have a seriously flawed voting system. This smacks (in a different way) of the old "Rotten Boroughs" in the early days of the English parliament (Back when only certain MEN, such as land-owners and rich merchants had the vote).
>
>http://en.wikipedia.org/wiki/Rotten_borough
>
>Terry

I'm trying to do a simple query from the 'NorthWind' Database 'Employee' table to find a particular record.

I can get all records but when i try to use the WHERE clause i get errors. i am using following:

string ConnString = "server = \"myserver\";uid=sa;pwd=; Initial Catalog = Northwind";

SqlConnection Connection = new SqlConnection (ConnString);
Connection.Open();

string mykey = this.tbxUserName.text.ToString();

string selectcmd = "SELECT EmployeeID,LastName,FirstName FROM Employees WHERE FirstName = mykey";

SqlCommand command = new SqlCommand(selectcmd,Connection);

SqlDataReader reader = command.ExecuteReader ();




made the following correction:


string selectcmd = "SELECT EmployeeID,LastName,FirstName FROM Employees WHERE FirstName = " + "'" + mykey + "'";

and it worked, thank you. but how would I pass 'mykey' as a parameter?




http://cbs5.com/local/local_story_051170152.html


Only landowners and the wealthy should be allowed to vote. No female should be allowed to vote regardless of her status. Look at what giving the vote to people of a minimum age, are citizens, registered to vote, men and women, has done. Why we have voted GWB into office!

What would have happened if only landowners and the wealthy were allowed to vote! Why we would have GWB in office.

You know, I do not think we can win! :)

There is something about so-called democracy and the right to vote that is an illusion. It is idyllic to think that we have a choice.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform