Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Kris
 
Posts: n/a
Default How to put a SQL query in a single Excel cell?

I'm creating a spreadsheet that lists different queries. When we list the
odd SQL query, we want to put the entire query in a single Excel cell that
can be copied and pasted in SQL Query Analyzer. Is there a way to copy and
paste the SQL query into the cell? We're finding that when pasting, Excel
breaks it up into several lines. Additionally, typing it out doesn't always
properly format the query (like when there are comments within the query)...
Is what I'm looking to do even possible?
  #2   Report Post  
cindee
 
Posts: n/a
Default

Kris - you'll find that Excel cells only hold 255 characters which seems like
a lot until you're copying text into them. I don't think that's going to be
a good way to list your queries. You should try Word which will maintain
your spacing and generallly look better.

"Kris" wrote:

I'm creating a spreadsheet that lists different queries. When we list the
odd SQL query, we want to put the entire query in a single Excel cell that
can be copied and pasted in SQL Query Analyzer. Is there a way to copy and
paste the SQL query into the cell? We're finding that when pasting, Excel
breaks it up into several lines. Additionally, typing it out doesn't always
properly format the query (like when there are comments within the query)...
Is what I'm looking to do even possible?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a single cell be protected in Excel 2003? Barbara Harrison Excel Worksheet Functions 2 July 26th 05 07:10 PM
Can I create an IF formula for single cell w/ dif. text in Excel? bennymichael Excel Discussion (Misc queries) 1 July 21st 05 08:59 PM
Returning data to Excel sheet from MS query SNB Excel Discussion (Misc queries) 0 April 27th 05 01:27 AM
how can I split a single cell diagonally in Excel 2000 Forrest Excel Discussion (Misc queries) 2 January 27th 05 11:47 PM
how do i set up a single cell continual entry in excel to total f. mike@swallow Excel Discussion (Misc queries) 1 December 7th 04 12:29 PM


All times are GMT +1. The time now is 09:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"