C# Database Connections and Queries

Create connection string:SqlConnection conn = new SqlConnection(“Data Source=DATASOURCE\\\\SQLEXPRESS;Initial Catalog=DATABASE_NAME;Integrated Security=True”); try { conn.Open(); SqlCommand sql = new SqlCommand(“SELECT * FROM tableName”, conn); SqlDataReader reader = sql.ExecuteReader(); while (reader.Read()) { this.TARGET_ID.InnerHtml += reader[“column”] ; } } catch (SqlException sqle) { sqle.Message.ToString(); }

BP Sign

This sign is posted at a BP gas station. “Please notify attendant of any gas spills.” I wasn\’t sure if I should go inside and mention the oil spill in the Gulf. I mean, it says to notify them. The question is, if there is a spill, do I trust your company to do anything… Read More »

Obama comics

These are homemade, obviously. I guess there\’s a reason why I don\’t do these professionally.

Force Flex – A staple of moving

Recently (as in yesterday) I moved to a new house. This activity, in my humble opinion, is ranked right up there with digging a ditch. If someone asked me if I want to help them move or dig a ditch, it might be a toss-up. On the bright side it feels good, physically, to work… Read More »

The New Melanin Agenda

People have a green agenda. It makes no sense to any thinking human being. Follow me here… We must “save trees”. Don\’t print emails, go paperless, and so on. Then we have to stop exhaling because carbon dioxide destroys the planet. But carbon dioxide feeds trees which in turn generate oxygen for us to breath.… Read More »

Google Voice Quality

Google voice is still my second choice. When I used it a few days ago to call my wife for a second, she kept saying “huh?”, “what?”, “I can’t hear you”. After saying it three times, she got it. Then she told me that I sounded terrible. There may not really be an advantage to… Read More »

Google Voice Now Open to Everyone in the US

Source: PC World Google’s telephony management application Google Voice is now open to all U.S. residents, as the company on Tuesday removed the requirement for prospective users to receive an invitation in order to sign up for the service. Google Voice Now Open to Everyone in the US Already, there are 1 million people with… Read More »