回答

收藏

将5 gig文件导入表出错

技术问答 技术问答 245 人阅读 | 0 人回复 | 2023-09-14

我试图插入大量的表:3 k) G4 L& e6 z. y4 K
use SalesDWHgoBULK INSERT dbo.npi FROM 'S:\tmp\npi.csv' WITH (FIELDTERMINATOR=',',ROWTERMINATOR='\n',lastrow=200,firstrow=2)并得到这个错误:8 Q+ \$ C6 ~* ?
Msg 4866,Level 16,State 8,Line 3The bulk load failed. The column is too long in the data file for row 1,column 329. Verify that the field terminator and row terminator are specified correctly.Msg 7301,Level 16,State 2,Line 3Cannot obtain the required interface ("IID_IColumnsInfo") from OLE DB provider "BULK" for linked server "(null)".我也试着用sql导入和导出导入导入文件。它被逗号分开,出现以下错误:+ {- c% }. o% k* w
Executing (Error)MessagesError 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for column "Other Provider Identifier Issuer_5" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.". (SQL Server Import and Export Wizard)Error 0xc020902a: Data Flow Task 1: The "output column "Other Provider Identifier Issuer_5" (514)" failed because truncation occurred,and the truncation row disposition on "output column "Other Provider Identifier Issuer_5" (514)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component. (SQL Server Import and Export Wizard)Error 0xc0202092: Data Flow Task 1: An error occurred while processing file "S:\tmp\nppes\npidata_20050523-20111114.csv" on data row 79. (SQL Server Import and Export Wizard)Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "Source - npidata_20050523-20111114_csv" (1) returned error code 0xC0202092.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component,but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure. (SQL Server Import and Export Wizard)我知道我的领域绝对足够大。这是手表create语句:; ?" z3 H- A$ |- Z
USE [SalesDWH]GO/****** Object:  Table [dbo].[npi]    Script Date: 15:28:42******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOSET ANSI_PADDING ONGOCREATE TABLE [dbo].[npi](    [NPI] [varchar](80) NULL,   [Entity Type Code] [varchar](80) NULL,   [Replacement NPI] [varchar](80) NULL,   [Employer Identification Number (EIN)] [varchar](80) NULL,   [Provider Organization Name (Legal Business Name)] [varchar](80) NULL,            [Provider Last Name (Legal Name)] [varchar](80) NULL,   [Provider First Name] [varchar](80) NULL,   [Provider Middle Name] [varchar](80) NULL,   [Provider Name Prefix Text] [varchar](80) NULL,   [Provider Name Suffix Text] [varchar](80) NULL,   [Provider Credential Text] [varchar](80) NULL,   [Provider Other Organization Name] [varchar](80) NULL,   [Provider Other Organization Name Type Code] [varchar](80) NULL,            [Provider Other Last Name] [varchar](80) NULL,   [Provider Other First Name] [varchar](80) NULL,   [Provider Other Middle Name] [varchar](80) NULL,   [Provider Other Name Prefix Text] [varchar](80) NULL,   [Provider Other Name Suffix Text] [varchar](80) NULL,   [Provider Other Credential Text] [varchar](80) NULL,   [Provider Other Last Name Type Code] [varchar](80) NULL,   [Provider First Line Business Mailing Address] [varchar](80) NULL,            [Provider Second Line Business Mailing Address] [varchar](80) NULL,   [Provider Business Mailing Address City Name] [varchar](80) NULL,   [Provider Business Mailing Address State Name] [varchar](80) NULL,   [Provider Business Mailing Address Postal Code] [varchar](80) NULL,   [Provider Business Mailing Address Country Code (If outside U S )] [varchar](80) NULL,   [Provider Business Mailing Address Telephone Number] [varchar](80) NULL,            [Provider Business Mailing Address Fax Number] [varchar](80) NULL,   [Provider First Line Business Practice Location Address] [varchar](80) NULL,   [Provider Second Line Business Practice Location Address] [varchar](80) NULL,   [Provider Business Practice Location Address City Name] [varchar](80) NULL,   [Provider Business Practice Location Address State Name] [varchar](80) NULL,   [Provider Business Practice Location Address Postal Code] [varchar](80) NULL,            [Provider Business Practice Location Address Country Code (If outside U S )] [varchar](80) NULL,   [Provider Business Practice Location Address Telephone Number] [varchar](80) NULL,   [Provider Business Practice Location Address Fax Number] [varchar](80) NULL,   [Provider Enumeration Date] [varchar](80) NULL,   [Last Update Date] [varchar](80) NULL,   [NPI Deactivation Reason Code] [varchar](80) NULL,            [NPI Deactivation Date] [varchar](80) NULL,   [NPI Reactivation Date] [varchar](80) NULL,   [Provider Gender Code] [varchar](80) NULL,   [Authorized Official Last Name] [varchar](80) NULL,   [Authorized Official First Name] [varchar](80) NULL,   [Authorized Official Middle Name] [varchar](80) NULL,
& ~7 x( \' G, H    [Authorized Official Title or Position] [varchar](80) NULL,
/ [% {, s; j2 {1 l) }9 l    [Authorized Official Telephone Number] [varchar](80) NULL,
" r' v- i" U/ G* Q7 }1 y    [Healthcare Provider Taxonomy Code_1] [varchar](80) NULL,
4 q! Y0 ]1 M% h, l% w  y    [Provider License Number_1] [varchar](80) NULL,: {, q6 c9 l+ K7 j4 T1 m2 X
    [Provider License Number State Code_1] [varchar](80) NULL,
9 @0 A7 m/ N$ V5 M1 s5 ^! h& F    [Healthcare Provider Primary Taxonomy Switch_1] [varchar](80) NULL,
! a) Q! c; I3 s4 l! L  \  _    [Healthcare Provider Taxonomy Code_2] [varchar](80) NULL,
& H3 J; H7 Z5 K3 e' `) k' \    [Provider License Number_2] [varchar](80) NULL,
6 K8 k, ~: f" c( ?& l% q    [Provider License Number State Code_2] [varchar](80) NULL,
! j/ W8 N& o$ {( R' w    [Healthcare Provider Primary Taxonomy Switch_2] [varchar](80) NULL,
, H$ {1 k# v# O( A+ v$ }    [Healthcare Provider Taxonomy Code_3] [varchar](80) NULL,5 ?+ R! w# e0 j) e! _, u$ q% i8 a
    [Provider License Number_3] [varchar](80) NULL,2 Y9 D5 f0 B3 U' X; b
    [Provider License Number State Code_3] [varchar](80) NULL,
2 }  u7 v4 m5 N1 P    [Healthcare Provider Primary Taxonomy Switch_3] [varchar](80) NULL,
  D% Y" j$ }( i1 K0 G9 b5 x    [Healthcare Provider Taxonomy Code_4] [varchar](80) NULL,! [7 z- [8 p9 v1 Z! M* N
    [Provider License Number_4] [varchar](80) NULL,; s3 E4 m! U& ?2 S# G# [; s8 m
    [Provider License Number State Code_4] [varchar](80) NULL,
2 ?" l( r" r$ D& y- l3 t$ R% v    [Healthcare Provider Primary Taxonomy Switch_4] [varchar](80) NULL,# a3 _; t5 p! Y- ]8 f# t
    [Healthcare Provider Taxonomy Code_5] [varchar](80) NULL,( |* u4 _9 _, n7 B; K. a9 A
    [Provider License Number_5] [varchar](80) NULL,
+ G5 A# R/ D1 t' }    [Provider License Number State Code_5] [varchar](80) NULL,
$ r. b, N0 S: f( F: {; @    [Healthcare Provider Primary Taxonomy Switch_5] [varchar](80) NULL,
7 N$ D# O( D4 D3 |0 [    [Healthcare Provider Taxonomy Code_6] [varchar](80) NULL,, p* Q0 h  ~$ b  O7 J' r' Z( r
    [Provider License Number_6] [varchar](80) NULL,* D0 G  ?7 I, p5 J4 @! }
    [Provider License Number State Code_6] [varchar](80) NULL,
  n( \1 R1 B3 I* ^    [Healthcare Provider Primary Taxonomy Switch_6] [varchar](80) NULL,; h$ a) O' t% n7 t  Z' C6 s
    [Healthcare Provider Taxonomy Code_7] [varchar](80) NULL,
( R/ [9 ~3 l9 \2 o$ C' w  B    [Provider License Number_7] [varchar](80) NULL,- L. s/ o% v' e' R+ _, {
    [Provider License Number State Code_7] [varchar](80) NULL,8 p3 S0 @! d9 x3 g( m
    [Healthcare Provider Primary Taxonomy Switch_7] [varchar](80) NULL,- M" N+ h9 N! l9 ?  Z' b
    [Healthcare Provider Taxonomy Code_8] [varchar](80) NULL,
2 K0 O  F; l) I4 h) p    [Provider License Number_8] [varchar](80) NULL,
% `* S6 \3 R' G4 m. }) P+ x" K) o    [Provider License Number State Code_8] [varchar](80) NULL,2 j% r/ J/ T( e* [5 B: A. K
    [Healthcare Provider Primary Taxonomy Switch_8] [varchar](80) NULL,
6 X9 n0 J# @2 Q) W2 n8 N3 t. E    [Healthcare Provider Taxonomy Code_9] [varchar](80) NULL,) Q2 t: {$ R/ T
    [Provider License Number_9] [varchar](80) NULL,
, j! |9 M9 S+ n; e; p7 u  O    [Provider License Number State Code_9] [varchar](80) NULL,
. l9 j; \- }1 ?8 o    [Healthcare Provider Primary Taxonomy Switch_9] [varchar](80) NULL,
6 L7 S* `) S# q4 }7 _% w    [Healthcare Provider Taxonomy Code_10] [varchar](80) NULL,
) `2 }" d; q. y2 l    [Provider License Number_10] [varchar](80) NULL,2 a0 y2 U( T2 ?& }& o; l
    [Provider License Number State Code_10] [varchar](80) NULL,
1 C! a# c& T" s, d4 r: X    [Healthcare Provider Primary Taxonomy Switch_10] [varchar](80) NULL,
/ J2 e  t; r  U0 O    [Healthcare Provider Taxonomy Code_11] [varchar](80) NULL,
9 ~# c* G6 l5 Q! m    [Provider License Number_11] [varchar](80) NULL,
* W, |6 w. J/ n! v/ C- h: E: L    [Provider License Number State Code_11] [varchar](80) NULL,2 r/ L% b5 b( k" _- e
    [Healthcare Provider Primary Taxonomy Switch_11] [varchar](80) NULL,
3 P- ~& g) M! V3 F% k    [Healthcare Provider Taxonomy Code_12] [varchar](80) NULL,
$ |* G6 x; z3 ?. i$ @* V, @' @    [Provider License Number_12] [varchar](80) NULL," j# }! I+ a' e' P5 m
    [Provider License Number State Code_12] [varchar](80) NULL,; k& q5 x* m9 c: B8 P( a/ Q
    [Healthcare Provider Primary Taxonomy Switch_12] [varchar](80) NULL,
1 q" I5 Y& Q1 V$ Q* N* ]    [Healthcare Provider Taxonomy Code_13] [varchar](80) NULL,
; L0 E4 P% x" V' m: u    [Provider License Number_13] [varchar](80) NULL,
; _# U9 v' J( V* I2 c! n  u    [Provider License Number State Code_13] [varchar](80) NULL,& w, w: {  W% x5 A- b6 Q
    [Healthcare Provider Primary Taxonomy Switch_13] [varchar](80) NULL,/ _5 v( s0 o; T8 P
    [Healthcare Provider Taxonomy Code_14] [varchar](80) NULL,
2 Q6 _* S' d; s2 c# g' @    [Provider License Number_14] [varchar](80) NULL,
  y% Y2 n; b& T* {+ `) v    [Provider License Number State Code_14] [varchar](80) NULL,
$ C5 V; K+ w7 L6 D" E    [Healthcare Provider Primary Taxonomy Switch_14] [varchar](80) NULL,
4 A; k7 L1 K1 B/ T' [0 ?& U    [Healthcare Provider Taxonomy Code_15] [varchar](80) NULL,
. O0 b. W& C3 u! \; p& a    [Provider License Number_15] [varchar](80) NULL,! A9 j- @7 f* j) ], n3 T) Z
    [Provider License Number State Code_15] [varchar](80) NULL,1 L' Z" `. Y  W4 H! j. K: I
    [Healthcare Provider Primary Taxonomy Switch_15] [varchar](80) NULL,4 z4 \. _& ?- h  ]$ M3 Z1 H( B
    [Other Provider Identifier_1] [varchar](80) NULL,2 O" L1 i# b  x7 S  |3 k. v
    [Other Provider Identifier Type Code_1] [varchar](80) NULL,: X/ F4 {. Q) y# t7 k& A
    [Other Provider Identifier State_1] [varchar](80) NULL,
: b0 j+ g% j8 b" s* u, z* ?. [    [Other Provider Identifier Issuer_1] [varchar](80) NULL,
  I; I( Q* q% U    [Other Provider Identifier_2] [varchar](80) NULL,
: k- T4 d" Y, G    [Other Provider Identifier Type Code_2] [varchar](80) NULL,3 {5 h+ c- t8 X; w, d- t
    [Other Provider Identifier State_2] [varchar](80) NULL,8 I- T. {* }7 `; e5 D& e2 y3 L; t" y; C* [
    [Other Provider Identifier Issuer_2] [varchar](80) NULL,
% e$ r6 j) l- d5 U- f% r" A' G2 ]    [Other Provider Identifier_3] [varchar](80) NULL,! U# \: g# X6 Y5 b4 G" y; B4 d
    [Other Provider Identifier Type Code_3] [varchar](80) NULL,' W% D# t/ l; W+ O
    [Other Provider Identifier State_3] [varchar](80) NULL,* E5 l9 c( y. G: p
    [Other Provider Identifier Issuer_3] [varchar](80) NULL,4 t1 C: o, M$ @2 ?) y' R
    [Other Provider Identifier_4] [varchar](80) NULL,% m/ @$ N% ~9 J. f7 ~8 g- {
    [Other Provider Identifier Type Code_4] [varchar](80) NULL,
" O/ m' P  G0 g1 a3 V, K    [Other Provider Identifier State_4] [varchar](80) NULL,
) _/ i; c/ U: U8 |" ?    [Other Provider Identifier Issuer_4] [varchar](80) NULL,
9 q, Z8 S/ }1 w. D. W/ ~    [Other Provider Identifier_5] [varchar](80) NULL,: ?+ t" ?6 z+ W! Z
    [Other Provider Identifier Type Code_5] [varchar](80) NULL,* [( u/ @* \$ Z* P/ V8 y
[Other Provider Identifier State_5] [varchar](80) NULL,+ C- j. N  Y3 G
    [Other Provider Identifier Issuer_5] [varchar](80) NULL,
' w. z" Y$ X3 h) |3 \    [Other Provider Identifier_6] [varchar](80) NULL,4 [6 q# w9 V+ c
    [Other Provider Identifier Type Code_6] [varchar](80) NULL,
' }' h1 A3 q* `: M. \    [Other Provider Identifier State_6] [varchar](80) NULL,, H9 L  P; Y8 m- y
    [Other Provider Identifier Issuer_6] [varchar](80) NULL,  @7 C( y9 i$ P# P; g6 {
    [Other Provider Identifier_7] [varchar](80) NULL," W! c! d* o$ r
    [Other Provider Identifier Type Code_7] [varchar](80) NULL,4 V# V$ _) j8 U. R. |$ @
    [Other Provider Identifier State_7] [varchar](80) NULL,2 y) k! s1 c9 {* L% L
    [Other Provider Identifier Issuer_7] [varchar](80) NULL,
- }/ _- F0 R$ q: d  n7 B    [Other Provider Identifier_8] [varchar](80) NULL,
; P9 x+ X4 ]# E# ?0 Q6 W    [Other Provider Identifier Type Code_8] [varchar](80) NULL,0 {" c  W& u  x& }- Z
    [Other Provider Identifier State_8] [varchar](80) NULL,1 K2 j: B4 h; P' l; B# D0 ]& }
    [Other Provider Identifier Issuer_8] [varchar](80) NULL,
* O" c- a% `/ Q    [Other Provider Identifier_9] [varchar](80) NULL,
+ S4 }6 E$ _- I/ W1 P, A/ w    [Other Provider Identifier Type Code_9] [varchar](80) NULL,7 v9 P$ [% W# J- Y6 h8 k, y( D
    [Other Provider Identifier State_9] [varchar](80) NULL,
- [  R- X9 V/ V! B* P    [Other Provider Identifier Issuer_9] [varchar](80) NULL,
  [) Y/ R: Z3 z    [Other Provider Identifier_10] [varchar](80) NULL,
6 {7 j, f- |! N; V4 p' x. |    [Other Provider Identifier Type Code_10] [varchar](80) NULL,0 Z( w3 A, ]( N  ~: G% Y: X4 r
    [Other Provider Identifier State_10] [varchar](80) NULL,
: z$ M0 E" F+ o. c) m* A    [Other Provider Identifier Issuer_10] [varchar](80) NULL,
+ ?9 t6 @0 {6 J6 g* c2 S    [Other Provider Identifier_11] [varchar](80) NULL,3 D( s7 {9 _+ }- M% E) x( C2 \
    [Other Provider Identifier Type Code_11] [varchar](80) NULL,- Z: l- k' \1 U. @. a7 ]2 Q
    [Other Provider Identifier State_11] [varchar](80) NULL,; f1 i4 M0 o' L
    [Other Provider Identifier Issuer_11] [varchar](80) NULL,
+ Z$ h: n7 }# U: D    [Other Provider Identifier_12] [varchar](80) NULL,5 z- R. p6 @* k2 L7 ~0 B4 k
    [Other Provider Identifier Type Code_12] [varchar](80) NULL,
) L' l  C9 c/ J- W    [Other Provider Identifier State_12] [varchar](80) NULL,* g4 q1 R$ V7 c0 s9 d
    [Other Provider Identifier Issuer_12] [varchar](80) NULL,
3 H, A2 A$ G  H- m7 P8 d8 G    [Other Provider Identifier_13] [varchar](80) NULL,* D, g/ O' I9 C* j9 C2 I" s8 o+ Y% a
    [Other Provider Identifier Type Code_13] [varchar](80) NULL,( K; N4 V2 |* u* U* ]$ g
    [Other Provider Identifier State_13] [varchar](80) NULL,
8 u8 V$ Y; z$ l3 z" @# \    [Other Provider Identifier Issuer_13] [varchar](80) NULL,
; e$ Y+ l3 u/ D* q/ U) x% \  |$ l    [Other Provider Identifier_14] [varchar](80) NULL,  j9 o9 O) C/ p! M% O& n- Y
    [Other Provider Identifier Type Code_14] [varchar](80) NULL,( V( d0 r! _6 B! @2 C
    [Other Provider Identifier State_14] [varchar](80) NULL,, j. Q8 F9 W+ r
    [Other Provider Identifier Issuer_14] [varchar](80) NULL,
( d1 i6 Y% W9 N5 V    [Other Provider Identifier_15] [varchar](80) NULL,# c! M- {4 `# B$ V
    [Other Provider Identifier Type Code_15] [varchar](80) NULL,
2 ~* G$ K  l6 `% {    [Other Provider Identifier State_15] [varchar](80) NULL,
& {, ^2 e+ s& [3 u, D    [Other Provider Identifier Issuer_15] [varchar](80) NULL,
+ m' ?: V6 [0 ?" z    [Other Provider Identifier_16] [varchar](80) NULL,
; b  I1 _* Y3 H4 E; E% k  g    [Other Provider Identifier Type Code_16] [varchar](80) NULL,
# m: c. a& o" i" K5 g- _0 X0 p    [Other Provider Identifier State_16] [varchar](80) NULL,5 M) A' b4 G* }0 c
    [Other Provider Identifier Issuer_16] [varchar](80) NULL,+ \4 Y8 D7 y$ }2 m5 k4 N; Z
    [Other Provider Identifier_17] [varchar](80) NULL,& t7 w* E" `) P7 m2 }' ]
    [Other Provider Identifier Type Code_17] [varchar](80) NULL,
0 P0 [  T  @) R' o3 `( G    [Other Provider Identifier State_17] [varchar](80) NULL,
4 n1 m7 w* H5 ]+ T# ?6 y: C    [Other Provider Identifier Issuer_17] [varchar](80) NULL,6 n& s2 p* d8 {& y3 s
    [Other Provider Identifier_18] [varchar](80) NULL,6 b7 _! Q* F& h
    [Other Provider Identifier Type Code_18] [varchar](80) NULL,
+ a3 }: w& d& w* L0 x+ w* N8 |0 D    [Other Provider Identifier State_18] [varchar](80) NULL,
3 C8 |3 a9 `: ^! B7 e: ]* l    [Other Provider Identifier Issuer_18] [varchar](80) NULL,
. M" T3 A3 n- Z$ C! w    [Other Provider Identifier_19] [varchar](80) NULL,  H+ w- q1 o0 X6 i  ?
    [Other Provider Identifier Type Code_19] [varchar](80) NULL,, c8 O1 |3 a6 U
    [Other Provider Identifier State_19] [varchar](80) NULL,
" D+ z1 k* [* S5 I" O; D, R" @    [Other Provider Identifier Issuer_19] [varchar](80) NULL,/ r) ?0 q1 n: d7 Y) P
    [Other Provider Identifier_20] [varchar](80) NULL,6 K3 H9 B( t( O
    [Other Provider Identifier Type Code_20] [varchar](80) NULL,
0 [! L; x8 d7 W+ J+ @8 G8 E# x1 }. P6 _    [Other Provider Identifier State_20] [varchar](80) NULL,
% z8 Q! a4 c3 j6 A+ R8 r3 T8 o8 [    [Other Provider Identifier Issuer_20] [varchar](80) NULL,% }' r0 S1 M4 |5 C8 D; H7 L3 _* \# e, l
    [Other Provider Identifier_21] [varchar](80) NULL,$ z1 g' W0 i. g: v0 J' k- |
    [Other Provider Identifier Type Code_21] [varchar](80) NULL,+ X$ J. ?9 N! a5 R6 _
    [Other Provider Identifier State_21] [varchar](80) NULL,
' i/ R% z0 Z: r  q, {/ b7 v    [Other Provider Identifier Issuer_21] [varchar](80) NULL,  S# C/ u, j- s9 a
    [Other Provider Identifier_22] [varchar](80) NULL,
+ c; l: Z" G; t3 c    [Other Provider Identifier Type Code_22] [varchar](80) NULL,
% O% r4 k6 I; B. G0 ~9 ]    [Other Provider Identifier State_22] [varchar](80) NULL,
( S3 e8 t4 O3 v4 G2 y& J    [Other Provider Identifier Issuer_22] [varchar](80) NULL,
+ X7 F0 {8 ~% j+ W    [Other Provider Identifier_23] [varchar](80) NULL,
5 |- h5 a7 a& f# l    [Other Provider Identifier Type Code_23] [varchar](80) NULL,
" ?' I9 M$ V1 i$ w    [Other Provider Identifier State_23] [varchar](80) NULL,
) c: Q7 e4 y) ~3 F" G    [Other Provider Identifier Issuer_23] [varchar](80) NULL,/ T1 x5 D, c! w! B/ x! |
    [Other Provider Identifier_24] [varchar](80) NULL,
: r) R$ m1 ]5 N5 T    [Other Provider Identifier Type Code_24] [varchar](80) NULL,
1 ?- C, [9 ]8 V7 ^  C( {$ U5 [    [Other Provider Identifier State_24] [varchar](80) NULL,
3 F( `4 G) O) o. ?1 K2 @9 W; C    [Other Provider Identifier Issuer_24] [varchar](80) NULL,6 \. r7 h6 b& J- r
    [Other Provider Identifier_25] [varchar](80) NULL,
6 b+ @2 i) g3 {# D1 O: p    [Other Provider Identifier Type Code_25] [varchar](80) NULL,# M; X! u8 @) m( _
    [Other Provider Identifier State_25] [varchar](80) NULL,2 J# L+ Z. E% x, ^( z, D3 k
    [Other Provider Identifier Issuer_25] [varchar](80) NULL,
! m( a8 k; m/ V/ U; K) f; V    [Other Provider Identifier_26] [var
3 j: Q  _5 i6 \# rchar](80) NULL,
8 q1 h# a  @  [$ L+ F: |: R    [Other Provider Identifier Type Code_26] [varchar](80) NULL,4 p/ ?  M, Q0 m
    [Other Provider Identifier State_26] [varchar](80) NULL,
+ A% x5 R, K2 }$ s    [Other Provider Identifier Issuer_26] [varchar](80) NULL,1 E' p- o) ~, F2 _
    [Other Provider Identifier_27] [varchar](80) NULL,' t$ w( k# }8 a8 l6 ^
    [Other Provider Identifier Type Code_27] [varchar](80) NULL,, f$ O/ O" t' F
    [Other Provider Identifier State_27] [varchar](80) NULL,
+ }" ~& E9 l0 W$ k7 e! _; K% R    [Other Provider Identifier Issuer_27] [varchar](80) NULL,* b7 r& i) t0 x
    [Other Provider Identifier_28] [varchar](80) NULL,2 C7 S/ N6 d& j8 n# K# h: G' x
    [Other Provider Identifier Type Code_28] [varchar](80) NULL,$ P9 E8 r: k# ]/ {. H( \* y* N, I  u
    [Other Provider Identifier State_28] [varchar](80) NULL,4 M7 `# n: d4 }8 [; u, }1 S
    [Other Provider Identifier Issuer_28] [varchar](80) NULL,# ]5 y( c, C% h! y9 u) m4 |
    [Other Provider Identifier_29] [varchar](80) NULL,& h8 O$ M( x" ]  X; M
    [Other Provider Identifier Type Code_29] [varchar](80) NULL,( D$ L* I" c: F+ V
    [Other Provider Identifier State_29] [varchar](80) NULL,) c: }. Y  s  b6 C% p1 |" l
    [Other Provider Identifier Issuer_29] [varchar](80) NULL,
$ N% d* c+ B  G% W  @( i' z; c    [Other Provider Identifier_30] [varchar](80) NULL,
" B$ T& Q7 Y9 G: C- F7 F    [Other Provider Identifier Type Code_30] [varchar](80) NULL,
7 V6 U8 d' K/ y" d7 @5 ~! Y/ l4 x    [Other Provider Identifier State_30] [varchar](80) NULL,
+ q/ @1 n" m: W! N2 I# \8 K    [Other Provider Identifier Issuer_30] [varchar](80) NULL,
) J: M- H2 j7 G4 B5 R    [Other Provider Identifier_31] [varchar](80) NULL,
9 W! X9 I4 S# R/ H; j2 m& c& B# j    [Other Provider Identifier Type Code_31] [varchar](80) NULL,+ I0 {& ]* R- X. `0 D2 R1 N" ~! f
    [Other Provider Identifier State_31] [varchar](80) NULL,8 o' u7 s3 \# s5 o5 b$ G1 e/ F
    [Other Provider Identifier Issuer_31] [varchar](80) NULL,
' k. B- I/ `5 }' y; L( c8 f3 L0 u1 h( c1 i    [Other Provider Identifier_32] [varchar](80) NULL,
+ S( f  h1 U+ n  V$ F% z  s, e: x    [Other Provider Identifier Type Code_32] [varchar](80) NULL,
, b  j5 C6 j$ B1 K2 [    [Other Provider Identifier State_32] [varchar](80) NULL,
# A8 A7 G! ]) E5 {5 F( o    [Other Provider Identifier Issuer_32] [varchar](80) NULL,- G( a7 l" B! q$ `
    [Other Provider Identifier_33] [varchar](80) NULL,
; z5 r, M% e  `! ]8 \0 ]    [Other Provider Identifier Type Code_33] [varchar](80) NULL,
( O7 o( O: Z# x0 j  U  M    [Other Provider Identifier State_33] [varchar](80) NULL,
: c$ H  k& o# A4 f0 j9 @  u; w, Z    [Other Provider Identifier Issuer_33] [varchar](80) NULL,* i+ d. [1 o8 ^$ m: C( d( p
    [Other Provider Identifier_34] [varchar](80) NULL,+ ?+ s% Z# I0 p' L: Z3 g) M( q/ d
    [Other Provider Identifier Type Code_34] [varchar](80) NULL," T0 Y" \7 T: p) N1 M
    [Other Provider Identifier State_34] [varchar](80) NULL," W7 c' A! o% [/ d( z
    [Other Provider Identifier Issuer_34] [varchar](80) NULL,; x; }" J' b9 i* X3 w7 |
    [Other Provider Identifier_35] [varchar](80) NULL,
) g; f' j$ H; s  n9 z/ t    [Other Provider Identifier Type Code_35] [varchar](80) NULL,
2 ?! c- v2 z( b0 {1 E0 M* c    [Other Provider Identifier State_35] [varchar](80) NULL,' ~, p: d$ o7 Z+ }# F4 N
    [Other Provider Identifier Issuer_35] [varchar](80) NULL,
) L, u2 j6 m; c: R" p. t. e    [Other Provider Identifier_36] [varchar](80) NULL,# P* g9 j9 w& C8 j  I
    [Other Provider Identifier Type Code_36] [varchar](80) NULL,8 [# N2 q, v3 [
    [Other Provider Identifier State_36] [varchar](80) NULL,) @& X2 G6 @9 q* _
    [Other Provider Identifier Issuer_36] [varchar](80) NULL,/ m  M7 |' X) v7 s' K# E  o
    [Other Provider Identifier_37] [varchar](80) NULL,
) I$ q- ~3 k' _$ s+ b* Y' w  ~- u    [Other Provider Identifier Type Code_37] [varchar](80) NULL,% _* v1 H0 V3 y
    [Other Provider Identifier State_37] [varchar](80) NULL,. w  Y/ A& A+ U: F7 s
    [Other Provider Identifier Issuer_37] [varchar](80) NULL,
. v- w- X- [+ _4 o. D  O/ Z) P  `    [Other Provider Identifier_38] [varchar](80) NULL,' x6 ?0 d5 E6 g5 `3 S( b, f7 f
    [Other Provider Identifier Type Code_38] [varchar](80) NULL,# C( c  S/ X* u. N" B
    [Other Provider Identifier State_38] [varchar](80) NULL,
1 N7 C3 C8 d8 i: }/ \    [Other Provider Identifier Issuer_38] [varchar](80) NULL,$ B$ Y2 i% U" l& l  |% Q5 T
    [Other Provider Identifier_39] [varchar](80) NULL,- N( I& ~' N4 B# P4 p. v- I! h+ a/ w
    [Other Provider Identifier Type Code_39] [varchar](80) NULL,
+ s& B( S, H# z* R9 [& B    [Other Provider Identifier State_39] [varchar](80) NULL,$ U; n; x2 `& t/ f
    [Other Provider Identifier Issuer_39] [varchar](80) NULL,# O5 u& [* S* x2 W
    [Other Provider Identifier_40] [varchar](80) NULL,1 y$ ~, e& J; M
    [Other Provider Identifier Type Code_40] [varchar](80) NULL,' b9 n/ Z! T0 E; ?# v4 y4 D& `
    [Other Provider Identifier State_40] [varchar](80) NULL,
$ @' U7 ~; E/ Q2 m; ]1 ]1 [    [Other Provider Identifier Issuer_40] [varchar](80) NULL,
; T: ~  |) H  w1 g    [Other Provider Identifier_41] [varchar](80) NULL,( `/ S& B: a  s0 y3 U/ @8 [
    [Other Provider Identifier Type Code_41] [varchar](80) NULL,
# w1 j' l9 i  B5 @% V    [Other Provider Identifier State_41] [varchar](80) NULL,8 v3 Q& P) u, M9 _+ O/ v
    [Other Provider Identifier Issuer_41] [varchar](80) NULL,
* _( m: D# B# l, P1 Z    [Other Provider Identifier_42] [varchar](80) NULL,
1 `, Q+ k2 j+ v, ~5 Q    [Other Provider Identifier Type Code_42] [varchar](80) NULL,
! v+ G3 B, P$ c3 _, q7 Z    [Other Provider Identifier State_42] [varchar](80) NULL,. k7 Z6 [; |6 b5 \
    [Other Provider Identifier Issuer_42] [varchar](80) NULL,9 W' q+ f5 L) h* Q% H% m
    [Other Provider Identifier_43] [varchar](80) NULL,
3 F5 V; X3 ?( F; O1 q    [Other Provider Identifier Type Code_43] [varchar](80) NULL,/ L( x+ V' a$ C+ `" G! r: C) d
    [Other Provider Identifier State_43] [varchar](80) NULL,
' j# t& |& \0 f9 d9 O; a    [Other Provider Identifier Issuer_43] [varchar](80) NULL,4 }2 A* n4 r$ ?' n0 a
    [Other Provider Identifier_44] [varchar](80) NULL,
, m1 u( n' t8 Y. q' q    [Other Provider Identifier Type Code_44] [varchar](80) NULL,, `4 ^3 B9 _! R
    [Other Provider Identifier State_44] [varchar](80) NULL,$ s1 y1 v& B( D6 m6 Z/ }5 Z3 j
    [Other Provider Identifier Issuer_44] [varchar](80) NULL,5 N2 A8 y' \% |
    [Other Provider Identifier_45] [varchar](80) NULL,
. r5 D; C( V  K  u/ J& o/ A& @    [Other Provider Identifier Type Code_45] [varchar](80) NULL,
- w0 H; l- f' }+ P$ i    [Other Provider Identifier State_45] [varchar](80) NULL,
5 Z/ |/ q3 x7 v# I7 @0 V7 i; K    [Other Provider Identifier Issuer_45] [varchar](80) NULL,6 E  G# y# V( q9 N* T1 Q
    [Other Provider Identifier_46] [varchar](80) NULL,
% X; U* v3 i, h2 i# j& l    [Other Provider Identifier Type Code_46] [varchar](80) NULL,0 `6 U5 G, y& g6 }  W. L
    [Other Provider Identifier State_46] [varchar](80) NULL+ G; W0 b* U8 T' E  D6 X3 ]
,   [Other Provider Identifier Issuer_46] [varchar](80) NULL,   [Other Provider Identifier_47] [varchar](80) NULL,   [Other Provider Identifier Type Code_47] [varchar](80) NULL,   [Other Provider Identifier State_47] [varchar](80) NULL,   [Other Provider Identifier Issuer_47] [varchar](80) NULL,   [Other Provider Identifier_48] [varchar](80) NULL,   [Other Provider Identifier Type Code_48] [varchar](80) NULL,            [Other Provider Identifier State_48] [varchar](80) NULL,   [Other Provider Identifier Issuer_48] [varchar](80) NULL,   [Other Provider Identifier_49] [varchar](80) NULL,   [Other Provider Identifier Type Code_49] [varchar](80) NULL,   [Other Provider Identifier State_49] [varchar](80) NULL,   [Other Provider Identifier Issuer_49] [varchar](80) NULL,   [Other Provider Identifier_50] [varchar](80) NULL,            [Other Provider Identifier Type Code_50] [varchar](80) NULL,   [Other Provider Identifier State_50] [varchar](80) NULL,   [Other Provider Identifier Issuer_50] [varchar](80) NULL,   [Is Sole Proprietor] [varchar](80) NULL,   [Is Organization Subpart] [varchar](80) NULL,   [Parent Organization LBN] [varchar](80) NULL,   [Parent Organization TIN] [varchar](80) NULL,   [Authorized Official Name Prefix Text] [varchar](80) NULL,            [Authorized Official Name Suffix Text] [varchar](80) NULL,   [Authorized Official Credential Text] [varchar](80) NULL,   [Healthcare Provider Taxonomy Group_1] [varchar](80) NULL,   [Healthcare Provider Taxonomy Group_2] [varchar](80) NULL,   [Healthcare Provider Taxonomy Group_3] [varchar](80) NULL,   [Healthcare Provider Taxonomy Group_4] [varchar](80) NULL,   [Healthcare Provider Taxonomy Group_5] [varchar](80) NULL,            [Healthcare Provider Taxonomy Group_6] [varchar](80) NULL,   [Healthcare Provider Taxonomy Group_7] [varchar](80) NULL,   [Healthcare Provider Taxonomy Group_8] [varchar](80) NULL,   [Healthcare Provider Taxonomy Group_9] [varchar](80) NULL,   [Healthcare Provider Taxonomy Group_10] [varchar](80) NULL,   [Healthcare Provider Taxonomy Group_11] [varchar](80) NULL,   [Healthcare Provider Taxonomy Group_12] [varchar](80) NULL,            [Healthcare Provider Taxonomy Group_13] [varchar](80) NULL,   [Healthcare Provider Taxonomy Group_14] [varchar](80) NULL,   [Healthcare Provider Taxonomy Group_15] [varchar](80) NULL) ON [PRIMARY]GOSET ANSI_PADDING OFFGO我肯定知道没有超过80个字符。我也试图把它改成500个字符,但我仍然遇到同样的错误。
* `& p5 t6 L8 o9 I我做错了什么?
3 T; X, s: j0 u3 {) S# a/ g为何不能导入此文件?
: O- |' h3 s% I: w139236748349、 1、 1GRUrt3NERT”,“ GEORGE”,“ M”,“
  Y, q: O% A$ e& ^, R6 T8 BDR。MD” ,“”,“”,“”,“”,“”,“”,“”,“7234900 FANNIN ST”,“ SUITE4 \+ i& P- e) [. [
休斯顿、 TX US
) A7 B0 x5 S: f. {3 J6 V713g25127082”,“ 792300 FANNIN ST”,“ SUITE 423400,休斯顿, TX”,“
6 F. h, j6 y0 s" v# x# U4 q, W7705ef242900”,“ US 71322512700ff 05 / 23/2005: M% E9 s. X3 u. c1 k
M“,” 207VE0f2f102X“,” E02f945“,” TX“,”
4 U# Q2 O6 q' |6 Z8 p5 c# n6 PY$ S0 ^' R$ X- ?- S7 g5 \9 y
- n( l0 `+ R, [/ o8 p1 M1 I
f4380J 04TX”,“ FT.BEND /
* P7 A$ {9 P& C' w& h! e% _MONT”,“ B2f33159, 02TXJ 04TX”,“ BRAZORIA”,“
2 R4 \8 S; s, b1 S) ]1 \- o  ~8dd2047G 01TX ,蓝十字和蓝盾sd2282JTX“,” HARRIS
' d  P/ y2 m2 ]/ V+ H  C% v3 kCOUNTY
' d6 c% h% o. K+ Y
. ~% l/ T; n6 [3 ^: z& p9 l
" m+ V( `/ t6 K: h# u
% Y, B+ n1 g8 c( w9 r9 B. Z
6 H2 t; A! }/ Y% b& T. X  k% R! s$ @- P
N6 ?" H1 @+ o) r3 P( _
只是更新…我把所有的字段都改成 nvarchar(max)
4 O- P3 \. E6 Y这个可怕的错误仍然存在:, w- S4 }2 I$ O2 q5 R) n( N, [
Operation stopped...- Initializing Data Flow Task (Success)- Initializing Connections (Success)- Setting SQL Command (Success)- Setting Source Connection (Success)- Setting Destination Connection (Success)- Validating (Success)    Messages    * Warning 0x80049304: Data Flow Task 1: Warning: Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available.  To resolve,run this package as an administrator,or on the system's console.     (SQL Server Import and Export Wizard)- Prepare for Execute (Success)- Pre-execute (Success)    Messages    * Information 0x402090dc: Data Flow Task 1: The processing of file "S:\tmp\nppes\npidata_20050523-20111114.csv" has started.     (SQL Server Import and Export Wizard)- Executing (Error)    Messages    * Error 0xc02020a1: Data Flow Task 1: Data    but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.     (SQL Server Import and Export Wizard)- Copying to [dbo].[npidata_20050523-20111114] (Stopped)- Post-execute (Success)    Messages    * Information 0x402090dd: Data Flow Task 1: The processing of file "S:\tmp\nppes\npidata_20050523-20111114.csv" has ended.     (SQL Server Import and Export Wizard)    * Information 0x402090df: Data Flow Task 1: The final commit for the data insertion in "component "Destination - npidata_20050523-20111114" (1326)" has started.     (SQL Server Import and Export Wizard)    * Information 0x402090e0: Data Flow Task 1: The final commit for the data insertion  in "component "Destination - npidata_20050523-20111114" (1326)" has ended.     (SQL Server Import and Export Wizard)    * Information 0x4004300b: Data Flow Task 1: "component "Destination - npidata_20050523-20111114" (1326)" wrote 58 rows.     (SQL Server Import and Export Wizard)                but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.     (SQL Server Import and Export Wizard)- Copying to [dbo].[npidata_20050523-20111114] (Stopped)- Post-execute (Success)    Messages    * Information 0x402090dd: Data Flow Task 1: The processing of file "S:\tmp\nppes\npidata_20050523-20111114.csv" has ended.     (SQL Server Import and Export Wizard)    * Information 0x402090df: Data Flow Task 1: The final commit for the data insertion in "component "Destination - npidata_20050523-20111114" (1326)" has started.     (SQL Server Import and Export Wizard)    * Information 0x402090e0: Data Flow Task 1: The final commit for the data insertion  in "component "Destination - npidata_20050523-20111114" (1326)" has ended.     (SQL Server Import and Export Wizard)    * Information 0x4004300b: Data Flow Task 1: "component "Destination - npidata_20050523-20111114" (1326)" wrote 58 rows.     (SQL Server Import and Export Wizard)               
+ Q) @/ B6 \! U7 S    解决方案:                                                               
1 b& ]* f$ P. I( e/ Z                                                                我看到你使用导入向导(它会造一个SSIS包)。4 e7 T  V* @0 [1 ~
你可以试试SSIS加载此文件:
  g% i# f2 H: V执行数据流任务6 i1 E. L. V! K: _* \# c9 J
制作平面文件源,指向csv。根据您的配置设置参数。
  I7 {* w/ |( u& ?% t4 j2 u设置错误输出,在截止时重定向
; j, D" o' B/ [2 V( r4 \在错误输出中添加数据读取器目标,并在数据读取器路径上添加数据读取器。
" m" p/ |: V: k+ r# X" p6 v, G' h2 A将常规输出发送到另一个数据读取器; u6 l& {+ G9 L& I" ]
运行程序包
现在,你应该检查是否有某种原因SSIS(导入)认为有80多个字符。你应该很快就能识别出错误。
' g2 U; Q. _' J: {  W. I# c另外,如果csv文件中有329列,请检查您的行终止符?
分享到:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则