Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

To Create Formatfile.

Posted on 2006-06-13
6
Medium Priority
?
371 Views
Last Modified: 2008-01-09
SQL2K

How to create a formatfile.

Suppose I want to create a format file C:\Mateen.fmt

If
ServerName:    sdmsrv
UserName   :    sa
Password    :    xyz

then what would be the exact syntax.

Actually I have read the help file, but I am unable to design errorfree syntax.
0
Comment
Question by:Mateen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
6 Comments
 
LVL 4

Accepted Solution

by:
batchakamal earned 1000 total points
ID: 16900154
It is nothing to do with ur server name, user name and password.

1. It is a text file with .fmt extension.
2. This is used to import the data from a text file to a table, with the format specified in the format file.
3. This is used with BULK INSERT

Put some lines of data sample and table syntax. Then I can write you the error free format file.

0
 
LVL 4

Expert Comment

by:batchakamal
ID: 16900165
It is nothing to do with the user name , server name and password.

1. Format file is used with BULK INSERT statement, to import a data file into a table.
2. This can be created using Notepad with .fmt extension
3. If you put some sample data and the table syntax, then we can help you in designing the format file without errors.
0
 
LVL 4

Expert Comment

by:batchakamal
ID: 16900172
It is nothing to do with the user name , server name and password.

1. Format file is used with BULK INSERT statement, to import a data file into a table.
2. This can be created using Notepad with .fmt extension
3. If you put some sample data and the table syntax, then we can help you in designing the format file without errors.
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
LVL 75

Assisted Solution

by:Aneesh Retnakaran
Aneesh Retnakaran earned 1000 total points
ID: 16900173
read this on  bol

mk:@MSITStore:C:\Program%20Files\Microsoft%20SQL%20Server\80\Tools\Books\adminsql.chm::/ad_impt_bcp_9yat.htm
0
 
LVL 4

Expert Comment

by:batchakamal
ID: 16900189

It is nothing to do with the user name , server name and password.

1. Format file is used with BULK INSERT statement, to import a data file into a table.
2. This can be created using Notepad with .fmt extension
3. If you put some sample data and the table syntax, then we can help you in designing the format file without errors.
0
 
LVL 4

Expert Comment

by:batchakamal
ID: 16900191

It is nothing to do with the user name , server name and password.

1. Format file is used with BULK INSERT statement, to import a data file into a table.
2. This can be created using Notepad with .fmt extension
3. If you put some sample data and the table syntax, then we can help you in designing the format file without errors.
0

Featured Post

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to shrink a transaction log file down to a reasonable size.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question