Be sure to check out the Dynaverse.Net Repository, the most comprehensive SFC library around !! ftp.dynaverse.net
0 Members and 2 Guests 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