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

  • Home
  • SEARCH
  • 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 8659309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:59:05+00:00 2026-06-12T15:59:05+00:00

I have a small issue with using bcp import tool. This is the case

  • 0

I have a small issue with using bcp import tool. This is the case I have a .csv data file (field separator if | character) and format file. I can import data into the table successfully, but it is importing NULL value instead of empty strings in data file. consider below as sample record in data file

col1|col2|||col5|col6

I got output like below

col1 col2 NULL NULL col5 col6

but I am expecting below output

col1 col2  (empty string) (empty string) col5 col6 

in my table definition, default values are empty string, is this due to an issue with data file (bcp data exporting command) or my data importing bcp command.

this is the command I used to import data
bcp [database].[table] in M:\data\xx.csv -f M:\format\XX.FMT -S serverName -T

Thanks and All reply 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-12T15:59:06+00:00Added an answer on June 12, 2026 at 3:59 pm

    I believe you have to create the column of the table to have default value empty string “”

    For example:

    create table mytable (
      col1 varchar(10) default ""
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a small issue which my text field insist to inhert the CSS
I'm having a small and weird issue using Hibernate. I have two tables: SERVICE
I am using Magento and I'm trying to fix a small issue I have
I have a small issue logging in with a webservice being hosted using HTML
I´ve just started using ASIHTTPRequest for iOs and I have a small issue with
I have a small issue. I am trying to pull some data from my
I'm using a jquery contextMenu plug-in and have a small issue I'm trying to
I just started to using sass/scss and i have a small issue. Let's assume
I have a small PL/SQL script that I'm using to try and copy data
I have a small issue binding the values into a dropdown using LINQ in

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.