Posted on: 9/15/2014 1:40:11 PM | Views : 381

Hi,
I want to set a counter of a version of a table that I create. I have a counter which I use in the name of the version of the table, but it always starts from the same number whenever the page is opened. I want it to continue counting from the last number of the version that is saved in the name of the table.
Can anybody help me please how to do this?
ex. I have this for creating a table with the same name but different version number.
q++; try { conn.Open(); SqlCommand saveasTable = new SqlCommand("Saveas", conn); saveasTable.CommandType = CommandType.StoredProcedure; SqlParameter saveasParameter = new SqlParameter("@i", SqlDbType.NVarChar); saveasParameter.Direction = ParameterDirection.Input; saveasParameter.Value = q.ToString ...

Go to the complete details ...