Domanda

Sto provando a importare una tabella di oltre 82.000 righe da un database di accesso a SQL Server 2008.

Utilizzando l'importazione ed esportazione guidata di SQL Server, viene visualizzato un errore quando sono stati immessi circa 78.000 record.

Ecco l'errore:

Error 0xc0208265: Data Flow Task 1:
Failed to retrieve long data for column "members_notes".

Error 0xc020901c: Data Flow Task 1: 
There was an error with output column "members_notes" (41) on output "OLE DB Source Output" (11).
The column status returned was: "DBSTATUS_UNAVAILABLE".

Error 0xc0209029: Data Flow Task 1: 
SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.
The "output column "members_notes" (41)" failed because error code 0xC0209071 occurred, and the error row disposition on "output column "members_notes" (41)" specifies failure on error.

Error 0xc0047038: Data Flow Task 1:
SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.
The PrimeOutput method on component "Source - Query" (1) returned error code 0xC0209029. 
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.

La colonna members_notes nel database di Access è un campo memo.Nella tabella SQL Server in cui vengono trasferiti questi dati, ho definito il campo come nvarchar(MAX).

Ho cercato questo messaggio di errore e ho trovato articoli che suggerivano di ridurre il mio database SQL e cancellare i miei file temporanei sul computer mentre eseguivo l'esportazione/importazione, nessuno dei quali ha funzionato.

Qualcun'altro ha riscontrato questo problema?

È stato utile?

Soluzione

ho iniziato a cercare il campo Memo nel database di Access. L'ultima riga conteneva '#Error' nel campo memo. Quando ho cliccato in quel campo ho ricevuto il seguente messaggio:

  

"Il database Microsoft Jet   fermato il processo perché voi e   un altro utente sta tentando di cambiare   gli stessi dati nello stesso momento "

Mi sono imbattuto Compatta e ripristina il database di Access. Che ha messo un po 'di # caratteri nel campo memo per quello record specifico.

Allora ho tentato il server di importazione SQL Esportazione guidata di nuovo. Ha funzionato perfettamente che il tempo!

Altri suggerimenti

Non ho abbastanza reputazione per migliorare la tua risposta dpii, ma per me ha sicuramente funzionato.Questo problema mi stava facendo impazzire e una semplice compattazione e riparazione lo hanno risolto.Fai attenzione anche agli altri utenti che utilizzano il file contemporaneamente durante il caricamento (o mentre apri il file in Access) altrimenti potresti riscontrare questo errore

Sembra che questo è un bug in SQL Server 2005, che dovrebbe essere fissato, vedi qui

Modifica:. Per il tuo commento qui sotto, è fissato in 2008 SP1 CU5

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top