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
41 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 49

Assisted Solution

by:Ryan Chong
Ryan Chong earned 125 total points
Comment Utility
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
Comment Utility
I think it is same and don't need to change anything :)
0
 
LVL 11

Accepted Solution

by:
Nakul Vachhrajani earned 250 total points
Comment Utility
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
Comment Utility
three helpful answers
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
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.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now