Click here to Skip to main content
15,886,840 members
Home / Discussions / Database
   

Database

 
QuestionRe: Challenging DB Quest. (Tree-Node) Pin
mr_1234525-May-06 4:37
mr_1234525-May-06 4:37 
AnswerRe: Challenging DB Quest. (Tree-Node) Pin
Dinuj Nath25-May-06 19:04
Dinuj Nath25-May-06 19:04 
GeneralRe: Challenging DB Quest. (Tree-Node) Pin
Eliee25-May-06 9:21
Eliee25-May-06 9:21 
GeneralRe: Challenging DB Quest. (Tree-Node) Pin
Dinuj Nath25-May-06 19:07
Dinuj Nath25-May-06 19:07 
QuestionRestoring a BAK file (created suing SQL Server 2000) in SQL Server 2005 Pin
spirit_kleptus24-May-06 7:27
spirit_kleptus24-May-06 7:27 
QuestionConnectionString Changes during Runtime? Pin
DEWright_CA24-May-06 5:38
DEWright_CA24-May-06 5:38 
Questionreturning a user group in MS Access Pin
achrafus24-May-06 4:07
achrafus24-May-06 4:07 
QuestionInserting lots of rows programmatically Pin
AnneThorne24-May-06 2:59
AnneThorne24-May-06 2:59 
Hi,

I know this is very easy... I just don't know how to do it:

We have the following table named Wzip_Detail

[Wzip_Detail_ID] [int] IDENTITY (1, 1) NOT NULL ,
[PostalCode] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[CountryCode] [varchar] (3) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[WarehouseNum] [int] NULL

Wzip_Detail_ID will be automatically populated.

CountryCode will always be 1
WarehouseNum will always be 1

HOWEVER:

PostalCode for row 1 will be:
00000

PostalCode for row 2 will be:
00001

PostalCode for row 3 will be:
00002

PostalCode for the last row will be:
99999

So there will be rows 00000 to 99999 incrementally a total of 100,000 rows (I think)

How do I do this programatically in SQL Query Analyzer.
Again, I'm sure it is very easy... I just don't know how to do it yet....

Thank you so much in advance for any help you can give,
Anne
AnswerRe: Inserting lots of rows programmatically Pin
john.nada24-May-06 5:33
john.nada24-May-06 5:33 
GeneralRe: Inserting lots of rows programmatically Pin
AnneThorne24-May-06 8:59
AnneThorne24-May-06 8:59 
GeneralRe: Inserting lots of rows programmatically Pin
Eric Dahlvang24-May-06 11:59
Eric Dahlvang24-May-06 11:59 
GeneralRe: Inserting lots of rows programmatically Pin
john.nada24-May-06 12:07
john.nada24-May-06 12:07 
QuestionODP.NET vs System.Data.OracleClient Pin
CooperWu24-May-06 0:11
CooperWu24-May-06 0:11 
AnswerRe: ODP.NET vs System.Data.OracleClient Pin
CooperWu24-May-06 0:36
CooperWu24-May-06 0:36 
AnswerRe: Query With Collection Values Pin
CooperWu24-May-06 0:19
CooperWu24-May-06 0:19 
QuestionParameterized query Pin
dayakar_dn23-May-06 23:50
dayakar_dn23-May-06 23:50 
AnswerRe: Parameterized query Pin
CooperWu24-May-06 0:24
CooperWu24-May-06 0:24 
AnswerRe: Parameterized query [modified] Pin
Luis Alonso Ramos24-May-06 19:49
Luis Alonso Ramos24-May-06 19:49 
Questioncreate forenkey syntex Pin
vipinpaliwal198023-May-06 22:19
vipinpaliwal198023-May-06 22:19 
AnswerRe: create forenkey syntex Pin
maryamf24-May-06 12:03
maryamf24-May-06 12:03 
AnswerRe: create forenkey syntex Pin
Colin Angus Mackay25-May-06 9:41
Colin Angus Mackay25-May-06 9:41 
GeneralRe: create forenkey syntex Pin
vipinpaliwal198025-May-06 17:54
vipinpaliwal198025-May-06 17:54 
QuestionDbf Tables & Sql Strings Pin
Vinicius Pontes23-May-06 10:11
Vinicius Pontes23-May-06 10:11 
AnswerRe: Dbf Tables & Sql Strings Pin
Eric Dahlvang24-May-06 3:06
Eric Dahlvang24-May-06 3:06 
Question-- Is it possible??? -- Pin
WetRivrRat23-May-06 9:56
WetRivrRat23-May-06 9:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.