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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:41:52+00:00 2026-06-03T02:41:52+00:00

I am quite new with SQL Server. I have got a .txt file with

  • 0

I am quite new with SQL Server.
I have got a .txt file with values separated like this:

20120101;001;2;0;0;0;0;0;8
20120102;002;3;0;0;0;0;0;8
20120103;003;4;0;0;0;0;0;8
...

This file is in a server and I need to import this file everyday at the same hour autommaticaly, and update the changes (the file is changing every day). I was thinking in making a function to do it but I don’t know if it is even possible.

Any help would be appreciated. Thanks in advance.

  • 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-03T02:41:54+00:00Added an answer on June 3, 2026 at 2:41 am
    insert into your_table
      SELECT a.*  
      FROM OPENROWSET( BULK 'c:\input.csv', FORMATFILE = 'c:\Format.fmt') AS a;
    

    Exaample Format.fmt

    9.0
    6
    1       SQLCHAR     0     15   ";"      1     col1      SQL_Latin1_General_CP1_CI_AS
    2       SQLCHAR     0     25   ";"      2     col2      SQL_Latin1_General_CP1_CI_AS
    3       SQLCHAR     0     6    ";"      3     col3      SQL_Latin1_General_CP1_CI_AS
    4       SQLCHAR     0     5    ";"      4     col4      SQL_Latin1_General_CP1_CI_AS
    5       SQLCHAR     0     15   ";"      5     col5      SQL_Latin1_General_CP1_CI_AS
    6       SQLCHAR     0     100  "\r\n"   6     col6      SQL_Latin1_General_CP1_CI_AS
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm quite new to sql and I'm having trouble writing this i have a
I'm quite new to Microsoft SQL Server. I have some experience with MySQL, and
Iam quite new to functions in SQL and I would like to create a
I'm quite to new to SQL Server, and I'm having difficulties creating a data
I am quite new to using sql profiler. I have a scenario in my
I'm quite new to SQL Server and was wondering what the difference between the
I have a SQL Server that's currently x86, and I'd like to upgrade it
We have a database called AVL in SQL Server 2008 R2 SE. This database
I am quite new with Linq to SQL and MVC but I follow the
How do I prevent SQL injection when it comes to ColdFusion? I'm quite new

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.