SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Scripts: SQLcode displays in 1 line


Scripts: SQLcode displays in 1 line

Author
Message
Rhox
Rhox
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1046 Visits: 481
I try to submit a script.
But when I paste the code it's displayed as 1 line.

Tried to copy/paste it from SSMS, notepad, MS Word,... but always 1 line

How can I properly paste my code (readeable) before I publish it?
Steve Jones
Steve Jones
SSC Guru
SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)

Group: Administrators
Points: 150356 Visits: 19453
I would try pasting it in notepad, and ensure it has the line breaks, then cut/paste from notepad (after saving) to the form.

Are you pasting in the script code box or the description box? Which browser?

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
Rhox
Rhox
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1046 Visits: 481
I've tried to use Notepad, but still 1 line in the code box.
I use IE9.
When I'm at work, I will try to use Chrome...
Ninja's_RGR'us
Ninja's_RGR'us
SSC Guru
SSC Guru (69K reputation)SSC Guru (69K reputation)SSC Guru (69K reputation)SSC Guru (69K reputation)SSC Guru (69K reputation)SSC Guru (69K reputation)SSC Guru (69K reputation)SSC Guru (69K reputation)

Group: General Forum Members
Points: 69479 Visits: 9671
Rhox (11/2/2011)
I've tried to use Notepad, but still 1 line in the code box.
I use IE9.
When I'm at work, I will try to use Chrome...



I have that same problem when I open .txt attachements on this site. The browser treats the file as html and that completely screws up any formatting.


Not sure if this is what you are doing but it may help.
Rhox
Rhox
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1046 Visits: 481
Rhox (11/2/2011)
I've tried to use Notepad, but still 1 line in the code box.
I use IE9.
When I'm at work, I will try to use Chrome...


Even in Chrome, I can not paste into the SQL code box Sad
michaellascuola
michaellascuola
Forum Newbie
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: General Forum Members
Points: 4 Visits: 181
I'm having the same issue. I bullheadedly tried to make it work entering the script one line at a time, using different browsers, using a browser via remote control software. Even wrote an autohotkey script.

I've been trying to paste a stupid 51-line script for more than an hour.

How can such an advanced website in such an advanced society prevent a 20+ year old technology like paste?
Steve Jones
Steve Jones
SSC Guru
SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)

Group: Administrators
Points: 150356 Visits: 19453
It's got to be a security thing. I've pasted in scripts today from both SSMS and Notepad, with FF and Chrome, and they work.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search