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
47 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 52

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 8

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

726 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