Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6007767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:43:45+00:00 2026-05-23T01:43:45+00:00

I use SQL Server to locally store data for statistical analysis. I create my

  • 0

I use SQL Server to locally store data for statistical analysis. I create my tables from csv files that typically have hundreds of columns. Manually prescribing column names and types would be tedious, so I use “suggest types” in the Import Wizard to pick the correct type.

This works most of the time, but frequently my csv files have a “ragged top edge” (i.e., a lot of the columns are empty for the first thousand or million lines — a lot of these files are 1+ gb, thus the need for SQL Server to facilitate subsetting joining). Because the Import Wizard only looks at up to the first 1000 rows, this can fail my import. Is there a clever workaround?

The solution I can think of is to move the last thousand or so rows to the top of the file, just below the header row. But since some of these files are 1+ gb with millions of rows, I can’t do in a text editor. Is there a way that I can outsmart the Import Wizard? Or read backwards? Or move the last thousand or so lines?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:43:46+00:00Added an answer on May 23, 2026 at 1:43 am

    It looks like you can’t set in the wizard but you can if you do it as a full SSIS solution.
    And/or the row limit of 1000 is a bug in SQL Server 2008 (not sure about R2)

    See this for more

    I have set this sample rows myself at some point but can’t remember when and what version/SP level I used.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a windows form application that manipulates data from several tables
I'm trying to use SQL Server 2000 DTS Package to download a file from
We use SQL Server 2000/2005 and Vault or SVN on most of our projects.
Has anyone attempted to use SQL Server Database as a Subversion file system back
I usually do not use Sql Server Management Studio, I usually use Linqpad to
What is the best way to use SQL Server 2008 as a development database,
Possible Duplicate: Internationalization in SSRS We use SQL Server Reporting Services for our web
Does it make sense to use SQL Server Compact for a desktop application? How
We have customers who, for unassailable reasons, cannot use SQL Server's built-in backup features
I use an sql server regularly and have recently been getting frustrated by the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.