c# - How to insert range of datas from asp.net textboxes into SQL Server -


i have 2 textboxes startno , endno , column number in sql server. want insert values between startno , endno. if enter 1 in startno textbox , 10 in endno textbox, values (1, 2, ..., 10) should inserted in sql server column number.

in c# use for(i = 1; <= 10; i++)... how in t-sql, or there for statement in stored procedures?

either need use c# loop , execute statement multiple times, using sql bulk copy method if number of columns can large or lastly can build values section comma delimited string , pass in stored procedure , execute dynamic sql.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -