Solved

How to remain the SQL script format if we copy the SQL script from SQL Managment studio to SSIS OLE DB Source Editor

Posted on 2016-07-20
4
45 Views
Last Modified: 2016-07-21
Hi,

As per the 'Title', please let me know how we retain same script format when we copy a SQL script from SSMS to SSIS OLE DB Source Editor.

Thanks.
0
Comment
Question by:ken hanse
[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 Comments
 
LVL 51

Assisted Solution

by:Ryan Chong
Ryan Chong earned 125 total points
ID: 41722074
the format shouldn't be changed... if you not sure of this, you can try copy the scripts from SSMS to a notepad and then from notepad copy it to SSIS OLE DB Source Editor
0
 
LVL 7

Assisted Solution

by:Dung Dinh
Dung Dinh earned 125 total points
ID: 41722113
I think it is same and don't need to change anything :)
0
 
LVL 13

Accepted Solution

by:
Nakul Vachhrajani earned 250 total points
ID: 41722176
What is the issue that you are facing? Is it that the statements become misaligned? If yes, try doing this:
1. Before you copy from SSMS, select everything in the query window
2. Go to Edit -> Advanced -> Untabify Selected Lines
3. Now copy and paste to the OLE DB task in SSIS

The issue with maintaining alignments is typically that tabs are ultimately a single character and therefore occupy only a single space in some editors. One should always use spaces instead of tabs if editing is to be done in multiple environments and tools.
0
 

Author Comment

by:ken hanse
ID: 41724084
three helpful answers
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Lessons learned during ten years of interviewing for SQL Server Integration Services (SSIS) and other Extract-Transform-Load (ETL) contract roles and two years of staff manager interviewing contractors.
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 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.
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

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