Solved

To Create Formatfile.

Posted on 2006-06-13
6
366 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
  • 5
6 Comments
 
LVL 4

Accepted Solution

by:
batchakamal earned 250 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 75

Assisted Solution

by:Aneesh Retnakaran
Aneesh Retnakaran earned 250 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Multiple functions in SQL select statement 4 27
Row insertion failed. Array 5 45
SQL R 21 22
reccommendations for a free msft sql query manager? 4 25
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

791 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