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
43 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
4 Comments
 
LVL 50

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 12

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

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.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

803 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