Re: Bulk Insert With Identity Field
From: Wayne Snyder (wayne.nospam.snyder_at_mariner-usa.com)
Date: 09/20/04
- Next message: Johannes Lebek: "Re: Retrieve collation settings"
- Previous message: Wayne Snyder: "Re: Simple Bulk Insert"
- In reply to: Prabhat: "Bulk Insert With Identity Field"
- Next in thread: Prabhat: "Re: Bulk Insert With Identity Field"
- Reply: Prabhat: "Re: Bulk Insert With Identity Field"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 20 Sep 2004 07:57:12 -0400
using bulk insert there is a keepidentity parameter, using bcp it is -E...
Both are documented in books on line
-- Wayne Snyder, MCDBA, SQL Server MVP Mariner, Charlotte, NC www.mariner-usa.com (Please respond only to the newsgroups.) I support the Professional Association of SQL Server (PASS) and it's community of SQL Server professionals. www.sqlpass.org "Prabhat" <not_a_mail@hotmail.com> wrote in message news:OKa8j8unEHA.3868@TK2MSFTNGP11.phx.gbl... > Hi All, > > Can I Bulk Insert to to SQL Table with a Identity Column in it? > > My Source is a text file with 17 Columns and My Target is a SQL Server table > with 18 Columns (all 17 column of the source + 1 Identity Column as Primary > KEY). > > So In this Situation How can i Bulk Insert to the SQL Table from the text > file. Please give small example if possible. > > Also If my SQL table is have 2 More Extra Column Can I Boul Insert from the > above source? > Ex: Total 19 Columns ( all 17 columns of the source text file + 1 Identity > Column + 1 Extra column). If I want to Insert into the 17 columns and I want > the Indetity column to generate auto numbers and the Last Extra Column to be > Filled with Some "Char (1)" Value. Is that Possible? > > Thanks for any Help or suggestions > Prabhat > >
- Next message: Johannes Lebek: "Re: Retrieve collation settings"
- Previous message: Wayne Snyder: "Re: Simple Bulk Insert"
- In reply to: Prabhat: "Bulk Insert With Identity Field"
- Next in thread: Prabhat: "Re: Bulk Insert With Identity Field"
- Reply: Prabhat: "Re: Bulk Insert With Identity Field"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|