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

x
?
Solved

Automating data imports and exports in sql 2014

Posted on 2016-09-29
8
Medium Priority
?
36 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
[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
  • 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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 2000 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 44

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 2000 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 44

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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…
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
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…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

730 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