Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Open EDI file in SQL Server

Author  Topic 

rama108
Posting Yak Master

115 Posts

Posted - 2012-09-27 : 20:17:21
Is there a way to open EDI file in SQL Server and insert the data into tables?

Thanks.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-09-27 : 22:19:56
What's an EDI file?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

rama108
Posting Yak Master

115 Posts

Posted - 2012-09-28 : 10:48:40
Electronic Data Interchange (EDI) is a file based on certain standards which opened in notepad only shows some numeric or alphanumeric code (encrypted) but when converted to readable format it shows the actual text. There are many different file formats. Has anyone dealt with EDI files importing data into SQL Server?

Thanks
Go to Top of Page

sunitabeck
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2012-09-28 : 11:06:07
I know nothing about EDI format or EDI files, so everything below is general comments about binary files or proprietary format files:

1. If you simply want to store and retrieve the files in SQL Server, you can use Filestream or you can store as varbinary. Jacob Sebastian's article is a good read: http://www.simple-talk.com/sql/learn-sql-server/an-introduction-to-sql-server-filestream/

2. If you are trying to insert the data into relational tables, which you said you are, SQL Server provides no tools natively for working with EDI files, to the best of my knowledge. However, if you can find any application/converter that will convert the EDI files into XML or other non-proprietary formats, SQL Server would be able to ingest those.
Go to Top of Page
   

- Advertisement -