public class testComb { static void Main() { SqlConnection cn = new SqlConnection(@"server=.\sqlexpress;trusted_connection=yes;database=test"); SqlCommand cmd = new SqlCommand(); cmd.Connection = cn; cn.Open(); cmd.CommandText = "create table myGuids (guidNo int, guidValue uniqueidentifier)"; cmd.ExecuteNonQuery(); cmd.CommandText = "insert into myGuids (guidNo, guidValue) values (@guidNo, @guidValue)"; SqlParameter p1 = new SqlParameter("@guidNo",SqlDbType.Int); SqlParameter p2 = new SqlParameter("@guidValue",SqlDbType.UniqueIdentifier); cmd.Parameters.Add( p1 ); cmd.Parameters.Add( p2 ); for(int i=1;i<20;i++) { DateTime ts = DateTime.Now; p1.Value = i; p2.Value = GuidComb.NewComb(); // this is the one I refer in the link cmd.ExecuteNonQuery(); while ( ts == DateTime.Now ) {} } SqlCommand cmdSelect = new SqlCommand("select * from myGuids order by guidValue", cn); SqlDataReader reader = cmdSelect.ExecuteReader(); DataTable tbl = new DataTable(); tbl.Load(reader); cn.Close(); Form f = new ShowDataForm(tbl,"GUIDs"); f.ShowDialog(); } } public class ShowDataForm : Form { public ShowDataForm(DataTable tbl, string caption) { this.dgv = new System.Windows.Forms.DataGridView(); this.dgv.Location = new System.Drawing.Point(0, 0); this.dgv.Dock = DockStyle.Fill; this.dgv.DataSource = tbl; this.Text = caption; this.Controls.Add(this.dgv); this.ClientSize = new System.Drawing.Size(1024, 768); } private System.Windows.Forms.DataGridView dgv; }Cetin