473,395 Members | 1,526 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Help: MS-Word apostrophes in Query Analyzer

After creating an IN clause from a bunch of character strings created by a
Word macro, Query Analyzer complains about a syntax error. The macro takes a
column full of character strings and wraps apostrophes (single-quotes)
around each string and adds a comma to the end of each line, ready to paste
into a Query Analyzer session. The problem is that Query Analyzer doesn't
recognize the MS-Word apostrophes. It has nothing to do with the standard
apostrophe/quote problems that some people face when dealing with embedded
quotes.

Can anyone suggest how to produce single-quote characters in MS-Word that
Query Analyzer understands?

Thank you.
Jul 20 '05 #1
2 3077
Hi

If this is passed to a stored procedure then you could try the REPLACE
function to alter the affending characters? If you want to insert the
correct character the try Insert/Symbol from the menus and choose ascii
character 27. You could set up a shortcut to do this.

John

"Poster" <Po****@hotmail.com> wrote in message
news:40********@news.chariot.net.au...
After creating an IN clause from a bunch of character strings created by a
Word macro, Query Analyzer complains about a syntax error. The macro takes a column full of character strings and wraps apostrophes (single-quotes)
around each string and adds a comma to the end of each line, ready to paste into a Query Analyzer session. The problem is that Query Analyzer doesn't
recognize the MS-Word apostrophes. It has nothing to do with the standard
apostrophe/quote problems that some people face when dealing with embedded
quotes.

Can anyone suggest how to produce single-quote characters in MS-Word that
Query Analyzer understands?

Thank you.

Jul 20 '05 #2
Poster (Po****@hotmail.com) writes:
After creating an IN clause from a bunch of character strings created by
a Word macro, Query Analyzer complains about a syntax error. The macro
takes a column full of character strings and wraps apostrophes
(single-quotes) around each string and adds a comma to the end of each
line, ready to paste into a Query Analyzer session. The problem is that
Query Analyzer doesn't recognize the MS-Word apostrophes.


As John said, you need to run a Search/Replace somewhere to fix those
"smart" quotes. The best place is probably in the Word macro...

You can also tell Word not to use "smart quotes". ToolS->AutoCorrect
and then the AutoFormat tab, uncheck '"Straight qutoes" with "smart
quotes"'.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rob Cheshire | last post by:
Hi to all, I need some help deciding on the best database system for our specific application. OPTIONAL INFO: We currently have 2 separate projects that need to be updated from dos-based dBase. ...
2
by: salah961 | last post by:
Hi For example, if I have one of the numbers 6.4, 6.3, 6.2, 6.1 I want the number to be 6 and if the number is 6.6, 6.7, 6.8, 6.9 I want the number to be 7 but I want the number 6.5 without any...
5
by: Benne Smith | last post by:
Hi, I have three enviroments; a development, a testing and a production enviroment. I'm making a big application (.exe), which uses alot of different webservices. I don't use the webservices...
2
by: trialproduct2004 | last post by:
Hi all, i am having c# application. I have bunch of URL's which i want to validate. that means i want to check whether those url's are valid or not. When i start processing url's one by on...
1
by: john | last post by:
Hello, I am trying to convert a project from vb6 to vb.net. The code is a sample from an sdk for Canon digital camera's. I have gotten most of the issues resolved, but there are some that I am...
5
by: Steve | last post by:
I have written a help file (chm) for a DLL and referenced it using Help.ShowHelp My expectation is that a developer using my DLL would be able to access this help file during his development time...
1
by: mkhalid | last post by:
Hi... I am doing an assignment of MS access. I have made 3 tables (One joining table for M:M relationship). When I was trying to make a form (a form with subform) to update the fields, an error...
2
by: Ryan Liu | last post by:
Hi, I installed VS 2005, also its msdn library. But when I click on Start - Program Filees - Microsoft Developer Network - MSDN Library for Visual Studio 2005, it gives me error:
1
by: trunxnirvana007 | last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' 'UPGRADE_WARNING: Couldn't resolve...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.