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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:44:53+00:00 2026-05-23T21:44:53+00:00

Hello Everyone Iam trying to bulk insert data from .dat file(unloaded from sybase) in

  • 0

Hello Everyone Iam trying to bulk insert data from .dat file(unloaded from sybase) in to the table i created.

Here is the Table Definition:

CREATE TABLE dbo."GCK_KioskSetupOptions" (
  "SMTPIPAddress"         varchar(128) NULL
  ,"SMTPPort"            varchar(20) NULL
  ,"POP3IPAddress"         varchar(128) NULL
  ,"POP3Port"            varchar(20) NULL
  ,"AutoLogOffDelay"        integer NULL
  ,"AllowUserToPrint"        bit NOT NULL
  ,"AllowAttachment"        bit NOT NULL
  ,"MaxMessageSize"         integer NULL
  ,"BillingCodeOptionID"      integer NOT NULL
  ,"MaxMessage"           integer NULL
  ,"AllowUserToImport"       bit NOT NULL
  ,"ProtectUserWithPassword"    varchar(50) NULL
  ,"DefaultEncoding"        varchar(50) NULL
  ,"EnableMessageLimit"       bit NULL
  ,"GlobalMessageLimit"       integer NULL DEFAULT 30
  ,"AllowSetMessagePriority"    bit NOT NULL DEFAULT 0
)
go

There is only a single row ( because of empty database) in .dat file which needs to be inserted into the table mentioned above

Here is .dat file data format

‘127.0.0.1’,’25’,’127.0.0.1′,’110′,10,1,1,400,2,250,1,

Here is the Bulk Inset command

BULK
INSERT GCK_KioskSetupOptions
FROM 'C:\Program Files\Globe Wireless\WebMail\Database\Defaults\Data\404.dat'
WITH
(
  FIELDTERMINATOR = ',',
  ROWTERMINATOR = '\n'
)
GO

Running this command in SQLServer Management Studio iam getting these errors
Msg 4832, Level 16, State 1, Line 2
Bulk load: An unexpected end of file was encountered in the data file.
Msg 7399, Level 16, State 1, Line 2
The OLE DB provider “BULK” for linked server “(null)” reported an error. The provider did not give any information about the error.
Msg 7330, Level 16, State 2, Line 2
Cannot fetch a row from OLE DB provider “BULK” for linked server “(null)”.

Could anyone help me out solving this issue?.I am actually doing datamigration from Sybase SQL Anywhere 11 to SQL server 2008 R2 express and this is the first issue i am facting when trying to import data from .dat file into SQL Server 2008 r2 EXPRESS table.

Thankyou

  • 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-23T21:44:55+00:00Added an answer on May 23, 2026 at 9:44 pm

    By the looks of things there are ll fields in the sample data file but 16 columns in your table.

    I think you need to pad out the input with the defaults.

    Instead of just

    ‘127.0.0.1’,’25’,’127.0.0.1′,’110′,10,1,1,400,2,250,1,

    you need

    ‘127.0.0.1’,’25’,’127.0.0.1′,’110′,10,1,1,400,2,250,1,,,,,

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

Sidebar

Related Questions

Hello everyone I am trying to resize an image of 700kb with imagecreatefromjpeg. This
Hello again ladies and gents! OK, following on from my other question on ASP.NET
THIS PROBLEM IS NOW SOLVED. THANK YOU TO EVERYONE WHO REPLIED. Hello, I am
Hello everyone I am new to blackberry and I want a textfield that scroll
hello everyone i am new bie in iphone development i want to connect to
hello everyone it is me again! i've got few problems too. i am deveoping
Introduction : Hello Everyone, I have been looking for days for a way to
Hello I have the following error by git-fsck, which cannot be cleaned by git-gc
Hello I was writing a Regular Expression (first time in my life I might
Hello can anybody solve this please I'm creating the object in the action class

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.