dbTalk Databases Forums  

How to create flat file schema

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss How to create flat file schema in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Deborah Bohannon
 
Posts: n/a

Default How to create flat file schema - 02-03-2004 , 01:45 PM






I often receive data from trading partners in a tab delimited or fixed width
text file. I often receive a schema document which I use to create my DTS
package to automate the import of these files.

My question is this: How can I generate a schema document like this when I
am asked to provide a file layout to these vendors?

I'm not sure if this is the right group to ask this, but thanks in advance
for any insight.

Deborah



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: How to create flat file schema - 02-03-2004 , 02:15 PM






And what would you want it to look like?

Have you looked at BCP to create a fomat file for you?

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Deborah Bohannon" <dbohannon (AT) nationalDONOTSENDHEREcareanetwork (DOT) com> wrote
in message news:ehRMP4o6DHA.2572 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Quote:
I often receive data from trading partners in a tab delimited or fixed
width
text file. I often receive a schema document which I use to create my DTS
package to automate the import of these files.

My question is this: How can I generate a schema document like this when
I
am asked to provide a file layout to these vendors?

I'm not sure if this is the right group to ask this, but thanks in advance
for any insight.

Deborah





Reply With Quote
  #3  
Old   
Deborah Bohannon
 
Posts: n/a

Default Re: How to create flat file schema - 02-03-2004 , 02:42 PM



An example of what I receive, that I would like to create something similar
is this:
ClientNumber X(19)
Client_CLM_ID 9(11)
Provider_ID X(09)
Provider_Name X(50)
Provider_Add1 X(35)
Provider_City X(20)
Provider_State X(2)
Claim_TYPE X(03)
Claim_Total 9(12)

I haven't used BCP in several years. Can it create a schema of a file?

Thanks,
Deborah


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
And what would you want it to look like?

Have you looked at BCP to create a fomat file for you?

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Deborah Bohannon" <dbohannon (AT) nationalDONOTSENDHEREcareanetwork (DOT) com> wrote
in message news:ehRMP4o6DHA.2572 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
I often receive data from trading partners in a tab delimited or fixed
width
text file. I often receive a schema document which I use to create my
DTS
package to automate the import of these files.

My question is this: How can I generate a schema document like this
when
I
am asked to provide a file layout to these vendors?

I'm not sure if this is the right group to ask this, but thanks in
advance
for any insight.

Deborah







Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: How to create flat file schema - 02-03-2004 , 02:52 PM



By all accounts yes.

mk:@MSITStore:C:\Program%20Files\Microsoft%20SQL%2 0Server\80\Tools\Books\cop
rompt.chm::/cp_bcp_61et.htm

in | out | queryout | format

Specifies the direction of the bulk copy. in copies from a file into the
database table or view. out copies from the database table or view to a
file. queryout must be specified only when bulk copying data from a query.
format creates a format file based on the option specified (-n, -c, -w, -6,
or -N) and the table or view delimiters. If format is used, the -f option
must be specified as well.


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Deborah Bohannon" <dbohannon (AT) nationalDONOTSENDHEREcareanetwork (DOT) com> wrote
in message news:uOrKEYp6DHA.2480 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Quote:
An example of what I receive, that I would like to create something
similar
is this:
ClientNumber X(19)
Client_CLM_ID 9(11)
Provider_ID X(09)
Provider_Name X(50)
Provider_Add1 X(35)
Provider_City X(20)
Provider_State X(2)
Claim_TYPE X(03)
Claim_Total 9(12)

I haven't used BCP in several years. Can it create a schema of a file?

Thanks,
Deborah


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:eCf5BIp6DHA.1752 (AT) tk2msftngp13 (DOT) phx.gbl...
And what would you want it to look like?

Have you looked at BCP to create a fomat file for you?

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Deborah Bohannon" <dbohannon (AT) nationalDONOTSENDHEREcareanetwork (DOT) com
wrote
in message news:ehRMP4o6DHA.2572 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
I often receive data from trading partners in a tab delimited or fixed
width
text file. I often receive a schema document which I use to create my
DTS
package to automate the import of these files.

My question is this: How can I generate a schema document like this
when
I
am asked to provide a file layout to these vendors?

I'm not sure if this is the right group to ask this, but thanks in
advance
for any insight.

Deborah









Reply With Quote
  #5  
Old   
Deborah Bohannon
 
Posts: n/a

Default Re: How to create flat file schema - 02-04-2004 , 09:59 AM



Thanks very much for the response. I will do some practicing with BCP.

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
By all accounts yes.


mk:@MSITStore:C:\Program%20Files\Microsoft%20SQL%2 0Server\80\Tools\Books\cop
rompt.chm::/cp_bcp_61et.htm

in | out | queryout | format

Specifies the direction of the bulk copy. in copies from a file into the
database table or view. out copies from the database table or view to a
file. queryout must be specified only when bulk copying data from a query.
format creates a format file based on the option specified
(-n, -c, -w, -6,
or -N) and the table or view delimiters. If format is used, the -f option
must be specified as well.


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Deborah Bohannon" <dbohannon (AT) nationalDONOTSENDHEREcareanetwork (DOT) com> wrote
in message news:uOrKEYp6DHA.2480 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
An example of what I receive, that I would like to create something
similar
is this:
ClientNumber X(19)
Client_CLM_ID 9(11)
Provider_ID X(09)
Provider_Name X(50)
Provider_Add1 X(35)
Provider_City X(20)
Provider_State X(2)
Claim_TYPE X(03)
Claim_Total 9(12)

I haven't used BCP in several years. Can it create a schema of a file?

Thanks,
Deborah


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:eCf5BIp6DHA.1752 (AT) tk2msftngp13 (DOT) phx.gbl...
And what would you want it to look like?

Have you looked at BCP to create a fomat file for you?

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Deborah Bohannon" <dbohannon (AT) nationalDONOTSENDHEREcareanetwork (DOT) com
wrote
in message news:ehRMP4o6DHA.2572 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
I often receive data from trading partners in a tab delimited or
fixed
width
text file. I often receive a schema document which I use to create
my
DTS
package to automate the import of these files.

My question is this: How can I generate a schema document like this
when
I
am asked to provide a file layout to these vendors?

I'm not sure if this is the right group to ask this, but thanks in
advance
for any insight.

Deborah











Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.