<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rothline Entertainment &#187; Computers</title>
	<atom:link href="http://www.rothline.com/category/computers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rothline.com</link>
	<description>By Lawrence Roth: A fan of books, computers, movies, and anything else that keeps me entertained.</description>
	<lastBuildDate>Sat, 15 May 2010 18:05:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>The Code Wars</title>
		<link>http://www.rothline.com/2009/08/the-code-wars/</link>
		<comments>http://www.rothline.com/2009/08/the-code-wars/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 22:50:40 +0000</pubDate>
		<dc:creator>Lawrence Roth</dc:creator>
				<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://www.rothline.com/?p=163</guid>
		<description><![CDATA["How many programmers does it take to change a light bulb?"

"Well that all depends on the testing, which will determine if there is some legitimate reason to change the light bulb in the first place."]]></description>
			<content:encoded><![CDATA[<p>A few years ago I designed an access database for a small business to track assets. That small business later hired a programmer to take my access database and develop an online application, which the small business could provide to clients for asset tracking.</p>
<p>I worked with this programmer as a consultant. The online application was completed. I went on to other projects. In the meantime the small business decided to hire a group of programmers to expand and improve the program. That group of programmers asked and was able to speak to me and the original programmer. We provided all the information they needed.</p>
<p>Recently, I was asked by the owner of this online tracking database to return and assist in getting several thousands of records uploaded from a new customer who wants to use the system. I agreed to help.</p>
<p>The current group of programmers host the site and the database. There was, of course, new user names and passwords. The owner of the application informed all involved that I would be assisting with loading some records.</p>
<p>And these programmers have been guarding the site like a doberman with a taste for human blood. Interesting, that I was the original designer of the prototype database and gave these people all the information they needed but I can&#8217;t get nothing from them.</p>
<p>Sorry, no real point to this post. I am just whining and complaining. And I suppose I am being just as territorial as they are being. Interesting though, that the company who owns the full rights to this system was having trouble getting these people to relinquish the information I needed also.</p>
<p>Finally, after some weeks they did. But I conclude from this experience that Programmer jokes are going to become as rampant as Lawyer jokes. For example, &#8220;How many programmers does it take to change a light bulb?&#8221;</p>
<p>&#8220;Well that all depends on the testing, which will determine if there is some legitimate reason to change the light bulb in the first place.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rothline.com/2009/08/the-code-wars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Login.aspx.cs Connecting to SQL Server with ASP.NET</title>
		<link>http://www.rothline.com/2009/07/login-aspx-cs-connecting-to-sql-server-with-asp-net/</link>
		<comments>http://www.rothline.com/2009/07/login-aspx-cs-connecting-to-sql-server-with-asp-net/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 18:35:06 +0000</pubDate>
		<dc:creator>Lawrence Roth</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[ado.net]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[connection string]]></category>
		<category><![CDATA[sql server]]></category>

		<guid isPermaLink="false">http://blog.rothline.com/?p=157</guid>
		<description><![CDATA[using System; using System.Configuration; using System.Data.SqlClient; public partial class Login : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void LoginButton_Click(object sender, EventArgs e) { String cs = ConfigurationManager.ConnectionStrings["csString"].ConnectionString; String strUserName = UserName.Text; String strPassword = Password.Text; String strUserId = &#8220;&#8221;; String strMemberId = &#8220;&#8221;; String strRoleId = &#8220;&#8221;; DateTime dtLogDate = [...]]]></description>
			<content:encoded><![CDATA[<p>using System;<br />
using System.Configuration;<br />
using System.Data.SqlClient;</p>
<p>public partial class Login : System.Web.UI.Page<br />
{<br />
    protected void Page_Load(object sender, EventArgs e)<br />
    {</p>
<p>    }<br />
    protected void LoginButton_Click(object sender, EventArgs e)<br />
    {<br />
        String cs = ConfigurationManager.ConnectionStrings["csString"].ConnectionString;</p>
<p>        String strUserName = UserName.Text;<br />
        String strPassword = Password.Text;<br />
        String strUserId = &#8220;&#8221;;<br />
        String strMemberId = &#8220;&#8221;;<br />
        String strRoleId = &#8220;&#8221;;</p>
<p>        DateTime dtLogDate = DateTime.Now;</p>
<p>        String strQuery = &#8220;SELECT &#8221; +<br />
                   &#8220;user_id, &#8221; +<br />
                   &#8220;member_id, &#8221; +<br />
                   &#8220;role_id &#8221; +<br />
                   &#8220;FROM &#8221; +<br />
                   &#8220;application_users &#8221; +<br />
                   &#8220;WHERE &#8221; +<br />
                   &#8220;username = &#8216;&#8221; + strUserName + &#8220;&#8216; &#8221; +<br />
                   &#8220;AND &#8221; +<br />
                   &#8220;password = &#8216;&#8221; + strPassword + &#8220;&#8216;&#8221;;</p>
<p>        SqlConnection cn = new SqlConnection(cs);</p>
<p>        SqlCommand cmd = new SqlCommand(strQuery, cn);<br />
        cn.Open();</p>
<p>        SqlDataReader dr = cmd.ExecuteReader();</p>
<p>        if (!dr.HasRows)<br />
        {<br />
            Response.Redirect(&#8220;Failure.aspx&#8221;);<br />
        }</p>
<p>        while (dr.Read())<br />
        {<br />
            strUserId = dr["user_id"].ToString();<br />
            strMemberId = dr["member_id"].ToString();<br />
            strRoleId = dr["role_id"].ToString();<br />
        }<br />
        Session["snLog"] = dr;</p>
<p>        String strSession = Session.SessionID.ToString();</p>
<p>        cn.Close();<br />
        String strInsert = &#8220;INSERT INTO &#8221; +<br />
                           &#8220;application_logs &#8221; +<br />
                           &#8220;(user_id, &#8221; +<br />
                           &#8220;log_datetime, &#8221; +<br />
                           &#8220;log_session) &#8221; +<br />
                           &#8220;VALUES (&#8221; +<br />
                           @strUserId + &#8220;, &#8216;&#8221; +<br />
                           @dtLogDate + &#8220;&#8216;, &#8221; +<br />
                           &#8220;&#8216;&#8221; + @strSession + &#8220;&#8216;)&#8221;;</p>
<p>        SqlConnection cnInsert = new SqlConnection(cs);<br />
        SqlCommand cmdInsert = new SqlCommand(strInsert, cnInsert);</p>
<p>        //Add SqlParameters to the SqlCommand<br />
        cmdInsert.Parameters.AddWithValue(&#8220;@strUserId&#8221;, strUserId);<br />
        cmdInsert.Parameters.AddWithValue(&#8220;@dtLogDate&#8221;, dtLogDate);<br />
        cmdInsert.Parameters.AddWithValue(&#8220;@strSession&#8221;, strSession);</p>
<p>        cnInsert.Open();<br />
        cmdInsert.ExecuteNonQuery();<br />
        cnInsert.Close();</p>
<p>        Response.Redirect(&#8220;Success.aspx&#8221;);<br />
    }<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rothline.com/2009/07/login-aspx-cs-connecting-to-sql-server-with-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
