|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
MS SQL and insert a range of numbers
I want to insert a Range of id numbers into a table use a stored procedure. The range is from 1 - 2000. There will be other fields that will be populated with the id, but it is the same value for everyone. What would the query look like that inserts the range.
Thanks Q |
|
#2
|
|||
|
|||
|
CREATE PROCEDURE titles_cursor @ID integer
as INSERT INTO MyTable (id, Description) VALUES (@ID, 'A description of part 123.') |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > MS SQL and insert a range of numbers |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|