Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
David Clifford David Clifford is offline
external usenet poster
 
Posts: 2
Default Mail Merge using SQL Server 2005

Hello all.

I am using SQL server 2005 and Word 2000. Previously, I have used Access
2000 to create a query to merge names and addresses on a Word 200 document.
No porblems.

It is a simple query..."Select ID, Forename, Surname, Address1...etc"

I am now using SQL Server 2005, and I want to Mail Merge the same addresses
etc. I set up the query, no problem. I select my datasource (SQL Server
database), no problems, I select the fields, no problems, I run the
merge...no data, just blank lines for nvarchar fields, and strange numbers
for integer fields.

Obviously something is wrong. I re-run the same query from Access 2000, Mail
Merge, no problems.

Any suggestions? I ahve tried this Merge now about 10 times, same result.

Thank you for any help that you may offer.

Regards

David




  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson[_2_] Peter Jamieson[_2_] is offline
external usenet poster
 
Posts: 7
Default Mail Merge using SQL Server 2005

The problem is that Word 2000 can only se ODBC to connect to SQL Server, and
ODBC does not pass the Unicode data in your NVARCHAR fields along. FWIW
later versions of Word can use OLE DB which does that properly, but for the
moment you either have to:
a. change your NVARCHAR fiels to VARCHAR fields (which means you may lose
data if you are actuall using the Unicode features provided by NVARCHAR) or
b. create a SQL Server View that converts each NVARCHAR field into a
VARCHAR field (there are SQL Server Transact-SQL functions called CAST and
CONVERT that do that - you probably need CONVERT). Again, you will lose
data, but only when you are doing your merge.

Peter Jamieson


On 01/10/2008 13:43, in article ,
"David Clifford" someone@microso wrote:

Hello all.

I am using SQL server 2005 and Word 2000. Previously, I have used Access
2000 to create a query to merge names and addresses on a Word 200 document.
No porblems.

It is a simple query..."Select ID, Forename, Surname, Address1...etc"

I am now using SQL Server 2005, and I want to Mail Merge the same addresses
etc. I set up the query, no problem. I select my datasource (SQL Server
database), no problems, I select the fields, no problems, I run the
merge...no data, just blank lines for nvarchar fields, and strange numbers
for integer fields.

Obviously something is wrong. I re-run the same query from Access 2000, Mail
Merge, no problems.

Any suggestions? I ahve tried this Merge now about 10 times, same result.

Thank you for any help that you may offer.

Regards

David





  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
David Clifford David Clifford is offline
external usenet poster
 
Posts: 2
Default Mail Merge using SQL Server 2005

Thank you very much Peter, that was a vey concise and helpful answer. I
think that I will play with the Convert function and see what happens.
Thanks for your time and help.

Regards

David

"Peter Jamieson" wrote in message
...
The problem is that Word 2000 can only se ODBC to connect to SQL Server,
and
ODBC does not pass the Unicode data in your NVARCHAR fields along. FWIW
later versions of Word can use OLE DB which does that properly, but for
the
moment you either have to:
a. change your NVARCHAR fiels to VARCHAR fields (which means you may lose
data if you are actuall using the Unicode features provided by NVARCHAR)
or
b. create a SQL Server View that converts each NVARCHAR field into a
VARCHAR field (there are SQL Server Transact-SQL functions called CAST and
CONVERT that do that - you probably need CONVERT). Again, you will lose
data, but only when you are doing your merge.

Peter Jamieson


On 01/10/2008 13:43, in article ,
"David Clifford" someone@microso wrote:

Hello all.

I am using SQL server 2005 and Word 2000. Previously, I have used Access
2000 to create a query to merge names and addresses on a Word 200
document.
No porblems.

It is a simple query..."Select ID, Forename, Surname, Address1...etc"

I am now using SQL Server 2005, and I want to Mail Merge the same
addresses
etc. I set up the query, no problem. I select my datasource (SQL Server
database), no problems, I select the fields, no problems, I run the
merge...no data, just blank lines for nvarchar fields, and strange
numbers
for integer fields.

Obviously something is wrong. I re-run the same query from Access 2000,
Mail
Merge, no problems.

Any suggestions? I ahve tried this Merge now about 10 times, same result.

Thank you for any help that you may offer.

Regards

David







Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tablet PC 2005 SP3 and Word 2007 Mail Merge Phil F[_2_] Mailmerge 6 July 27th 08 12:41 AM
Mail merge with Word 2003 and SQL 2005 on a date and time field. [email protected] Mailmerge 4 June 13th 07 06:10 PM
Mail Merge using Lotus Notes Mail Server SEL Mailmerge 0 January 4th 06 11:31 PM
Mail Merge with SQL Server NKYBred Microsoft Word Help 0 September 30th 05 03:04 PM
mail merge documents moved from one server to another server don't Derek Ruesch Mailmerge 0 September 8th 05 06:36 PM


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

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"