Solved

Automating data imports and exports in sql 2014

Posted on 2016-09-29
8
28 Views
Last Modified: 2016-10-03
2 part question.  

i have a fixed width file that i import daily using ssms import data tool.  i would like to start getting my teeth wet with automating this process.

i first open the text file with excel.  manipulate with excel and then import.  I thought that ssis would be the proper way to go about this.
i would like to start out with the easiest tool sql 2014 provides that can control import and exporting and automation.  would sql server data tools be the right way to start.

part 2 question... im not sure where the data tools are.  i have just about everything install for sql 2014 but don't see sql server "data tools"

i see data profile viewer and some visual studio stuff.

so 1)  best easiest way to start doing this
2) where is the dern program to complete the suggested route.

i want to use only apps provided by sql server 2014
0
Comment
Question by:jamesmetcalf74
  • 4
  • 2
  • 2
8 Comments
 
LVL 37

Expert Comment

by:Neil Russell
ID: 41822297
Before any sensible answer can be made, you need to define " manipulate with excel ..."
0
 

Author Comment

by:jamesmetcalf74
ID: 41822313
i take a text file that has column width formatted data and put each column value into its own column in excel.  then i just import the excel spreadsheet into sql with the management studio import functionality
0
 
LVL 37

Expert Comment

by:Neil Russell
ID: 41822318
Do you mean that the data is in a fixed width format? Every record occupies the same amount of line space and every char starts on the same char space?
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:jamesmetcalf74
ID: 41822321
yes... sorry i didn't make things more clear.
i kinda rushed through the explanation
0
 
LVL 37

Accepted Solution

by:
Neil Russell earned 500 total points
ID: 41822330
OK So use SSIS and create a new data flow job that uses a Flat File Source and define just like you would in excel basically.
Just make sure that in the FLat File Connection Manager that you select the FIXED WIDTH in the Format box.
0
 
LVL 42

Expert Comment

by:zephyr_hex (Megan)
ID: 41822353
I agree... SSIS is the way to go.  Build your job and schedule it using SQL Agent.
0
 
LVL 37

Assisted Solution

by:Neil Russell
Neil Russell earned 500 total points
ID: 41822371
Tools are no longer shipped with SQL 2014 media.  Download for VS is here..

Download SQL Server Data Tools (SSDT)
0
 
LVL 42

Expert Comment

by:zephyr_hex (Megan)
ID: 41827241
Were your questions answered?  If so, please mark the solution(s) that answered your question.

And of course, if you still have questions, please let us know.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP installation issues 11 59
How to share SSIS Package? 6 36
SQL Server Designer 19 39
SQL View nearest date 5 35
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…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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

785 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