title: Operation stopped while importing CSV file into SQL server
body: <p>I am trying to import CSV file to SQL server database, with no success. I am still newbie to sql server.</p>
  <p>Operation stopped...</p>
  <ul>
  <li><p>Initializing Data Flow Task (Success)</p>
  </li>
  <li><p>Initializing Connections (Success)</p>
  </li>
  <li><p>Setting SQL Command (Success)</p>
  </li>
  <li><p>Setting Source Connection (Success)</p>
  </li>
  <li><p>Setting Destination Connection (Success)</p>
  </li>
  <li><p>Validating (Success)
  Messages</p>
  <ul>
  <li>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)</li>
  </ul>
  </li>
  <li><p>Prepare for Execute (Success)</p>
  </li>
  <li><p>Pre-execute (Success)
  Messages</p>
  <ul>
  <li>Information 0x402090dc: Data Flow Task 1: The processing of file &quot;D:\test.csv&quot; has started.
  (SQL Server Import and Export Wizard)</li>
  </ul>
  </li>
  <li><p>Executing (Error)
  Messages</p>
  <ul>
  <li><p>Error 0xc002f210: Drop table(s) SQL Task 1: Executing the query &quot;drop table [dbo].[test]
  &quot; failed with the following error: &quot;Cannot drop the table 'dbo.test', because it does not exist or you do not have permission.&quot;. Possible failure reasons: Problems with the query, &quot;ResultSet&quot; property not set correctly, parameters not set correctly, or connection not established correctly.
  (SQL Server Import and Export Wizard)</p>
  </li>
  <li><p>Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for column &quot;&quot;Code&quot;&quot; returned status value 4 and status text &quot;Text was truncated or one or more characters had no match in the target code page.&quot;.
  (SQL Server Import and Export Wizard)</p>
  </li>
  <li><p>Error 0xc020902a: Data Flow Task 1: The &quot;output column &quot;&quot;Code&quot;&quot; (38)&quot; failed because truncation occurred, and the truncation row disposition on &quot;output column &quot;&quot;Code&quot;&quot; (38)&quot; specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
  (SQL Server Import and Export Wizard)</p>
  </li>
  <li><p>Error 0xc0202092: Data Flow Task 1: An error occurred while processing file &quot;D:\test.csv&quot; on data row 21.
  (SQL Server Import and Export Wizard)</p>
  </li>
  <li><p>Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component &quot;Source - test_csv&quot; (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)</p>
  </li>
  </ul>
  </li>
  <li><p>Copying to [dbo].[test] (Stopped)</p>
  </li>
  <li><p>Post-execute (Success)
  Messages</p>
  <ul>
  <li><p>Information 0x402090dd: Data Flow Task 1: The processing of file &quot;D:\test.csv&quot; has ended.
  (SQL Server Import and Export Wizard)</p>
  </li>
  <li><p>Information 0x402090df: Data Flow Task 1: The final commit for the data insertion in &quot;component &quot;Destination - test&quot; (70)&quot; has started.
  (SQL Server Import and Export Wizard)</p>
  </li>
  <li><p>Information 0x402090e0: Data Flow Task 1: The final commit for the data insertion  in &quot;component &quot;Destination - test&quot; (70)&quot; has ended.
  (SQL Server Import and Export Wizard)</p>
  </li>
  <li><p>Information 0x4004300b: Data Flow Task 1: &quot;component &quot;Destination - test&quot; (70)&quot; wrote 0 rows.
  (SQL Server Import and Export Wizard)
  </p>
  </li>
  </ul>
  </li>
  </ul>