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 8042235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:30:28+00:00 2026-06-05T04:30:28+00:00

I have a simple database with a Persons table UserId, Name,DOB The table contains

  • 0

I have a simple database with a Persons table

UserId, Name,DOB

The table contains 750,000 rows (People).

I receive a CSV file that may contain 10 million rows

UserId, Address1, Address2, Address3, TownCity, Region, Country, 
Telephone1, Telephone2, Telephone3 

of the users current and prior contact details

This file has the usersId in it so I can match the contact details to the user.

A one to many relationship exists between person and contact details

My end goal is a query to select UserId, Name, DOB, Address1, Address2...... etc

Currently I use .net to open the csv file and read line by line and writing each record to SQL server individually (possibly 10 million sql inserts) – This is slow, so I am looking at other was of doing this.

I am experimenting with SQL 2012 FileTable/Stream – so I have the csv file stored in the FileTable and can query as such

SELECT [file_stream], [name], [path_locator], [parent_path_locator],
       [file_type], [cached_file_size], [creation_time]  
FROM [MYDB_FileTable].[dbo].[AddressFileTable]

Does anybody know if I can query the FileStream and bulk insert or any other way of working with the core csv data?

I have looked at

DECLARE @csv varchar(max)
SELECT @csv = convert(varchar(max), [file_stream])  FROM PKIFileTable

but due to the file size this does not work

Any suggestions are welcome.

  • 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-06-05T04:30:31+00:00Added an answer on June 5, 2026 at 4:30 am

    You could use SSIS for that task. It should be fairly simple to accomplish what you need.

    What is slow?

    Why was my previous answer deleted? What is going on here?

    My answer is based at the last clause : “any other way of working with the core csv data?”

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

Sidebar

Related Questions

I have an SQLite database with a simple table of Persons. Each row represents
I have a simple database named customer with a single table data.I want to
Let's say I have a MySQL database with 3 tables: table 1: Persons, with
I have a simple mvc project consisting of one table named Persons and that
I have a quite simple database query: Query q = new Query(person); q.addFilter(name, Query.FilterOperator.EQUAL,
I have a simple database with multiple tables. I can't figure out how to
Ok, i have a simple database engine (its a proprietary product written in vb6)
I have completed a simple database for a project. Only 6tables. Of the 6,
I have a simple UserControl for database paging, that uses a controller to perform
i have simple tr an td's coming from database <tr> <td > <td style=

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.