Topic: Hey, if it's good enough for Stargate...  (Read 5902 times)

0 Members and 1 Guest are viewing this topic.

IKV Nemesis D7L

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #20 on: November 30, 2003, 08:13:51 pm »
Now we know the real reason the Stargate has a maximum up time of about 40 minutes.

   

jualdeaux

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #21 on: November 30, 2003, 08:27:42 pm »
Quote:

Now we know the real reason the Stargate has a maximum up time of about 40 minutes.

   




38 or so isn't it?  

Toasty0

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #22 on: November 30, 2003, 09:10:19 pm »
Quote:

Now we know the real reason the Stargate has a maximum up time of about 40 minutes.

   




hehehe...yeah, tis true. It only takes .Net 40 minutes to accomplish what it takes others days, weeks, months, and yes, even centuries to complete...

heheheheh  
« Last Edit: November 30, 2003, 09:11:06 pm by Toasty0 »

Malystryx_XC

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #23 on: December 01, 2003, 01:31:19 pm »
LOL...

Good find!  I remember the episode but I never payed too much attention to the code written on the board.  I'll have to go back and look for it the next time it airs!

I think maybe I should start learning C# to pick up on these things?

Scott Allen Abfalter

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #24 on: December 01, 2003, 01:58:50 pm »

That could be Java code, not just C#...  

Toasty0

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #25 on: December 01, 2003, 05:19:05 pm »
Quote:


That could be Java code, not just C#...  




That is as much Java code as the following:

Code:

{
         string ConnStr;
         string SQL;
         ConnStr =@"Data Source=YOURBrokenPuter//C#ROCKS;"+"database=pubs;integrated security=true";
         SqlConnection MySqlConn= new SqlConnection(ConnStr);
         MySqlConn.Open();
         try
         {
            SQL="byroyalty";
            SqlCommand MySqlCmd=new SqlCommand(SQL,MySqlConn);
            MySqlCmd.CommandType=CommandType.StoredProcedure;
            SqlParameter MySqlParam= new SqlParameter("@percentage", SqlDbType.Int);
            MySqlParam.Value=40;
            MySqlCmd.Parameters.Add(MySqlParam);
            SqlDataReader Reader;
            Reader= MySqlCmd.ExecuteReader();
            if (Reader.HasRows)
            {
               MyGrid.DataSource=Reader;
               MyGrid.DataBind();
            }
            else
            {
               Label Message = new Label();
               Message.Text="No rows to display";
               Page.Controls.Add(Message);
            }
         }
         finally
         {
            MySqlConn.Close();
         }
         // Put user code to initialize the page here
      }



It's C# code.

 

Best,
Jerry    

IKV Nemesis D7L

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #26 on: December 01, 2003, 05:40:21 pm »
Quote:

Quote:

Now we know the real reason the Stargate has a maximum up time of about 40 minutes.

   




hehehe...yeah, tis true. It only takes .Net 40 minutes to accomplish what it takes others days, weeks, months, and yes, even centuries to complete...

heheheheh  




Crash?