Have you ordered your copy of Dynaverse.Net Updated OP Strategy Guide? Order here : LULU.COM
0 Members and 1 Guest are viewing this topic.
Quote:Now we know the real reason the Stargate has a maximum up time of about 40 minutes.
Quote:That could be Java code, not just C#...
{ 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 }
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