Reply
 
Thread Tools Display Modes
  #1   Report Post  
Philippe Pons
 
Posts: n/a
Default [Mail merge] Pb with a datasource from a remote server

Hi all,

My datasource comes from a SQL Server DataBase.

If the DB is on my pc, no pb to get the data

If the DB is on a remote server, I contact the server using it's IP address,
using the Data Connection Wizard.
If I use the query with Excel, i can get the data.
But Word says: Word was not able to open the DataSource

Any help woul be greatly appreciated.

Philippe


  #2   Report Post  
Peter Jamieson
 
Posts: n/a
Default

Which version of Word are you using?

Are you using OLEDB or ODBC to connect?

Are you using WIndows Integrated Security or SQL Server security? If you are
using the latter, you have to specify the username and password and ensure
that they are saved in the .odc file that is created when you use OLEDB to
connect. (And note that that makes them visible in a text file)

Peter Jamieson
"Philippe Pons" wrote in message
...
Hi all,

My datasource comes from a SQL Server DataBase.

If the DB is on my pc, no pb to get the data

If the DB is on a remote server, I contact the server using it's IP
address,
using the Data Connection Wizard.
If I use the query with Excel, i can get the data.
But Word says: Word was not able to open the DataSource

Any help woul be greatly appreciated.

Philippe




  #3   Report Post  
Philippe Pons
 
Posts: n/a
Default

Thank's for your answer, Peter.

I'm using Word2002.(A French and an English version)
The server is located in a Hosting Company.
I have to use the username and pwd they gave me.

With th econnection wizzard, I select the db, then I check the connection
with the server and it's ok
I can then select which table I need.

I validate and word tells me it can't open the source.

If I do the same with Excel, no problem, I can query which ever table I
want.

A bug in Word?



"Peter Jamieson" a écrit dans le message de
...
Which version of Word are you using?

Are you using OLEDB or ODBC to connect?

Are you using WIndows Integrated Security or SQL Server security? If you

are
using the latter, you have to specify the username and password and ensure
that they are saved in the .odc file that is created when you use OLEDB to
connect. (And note that that makes them visible in a text file)

Peter Jamieson
"Philippe Pons" wrote in message
...
Hi all,

My datasource comes from a SQL Server DataBase.

If the DB is on my pc, no pb to get the data

If the DB is on a remote server, I contact the server using it's IP
address,
using the Data Connection Wizard.
If I use the query with Excel, i can get the data.
But Word says: Word was not able to open the DataSource

Any help woul be greatly appreciated.

Philippe






  #4   Report Post  
Peter Jamieson
 
Posts: n/a
Default

If you get to a point in the connection dialogue with title

"Save Data Connection File and Finish"

make sure you check "Save Password in File"

If I do the same with Excel, no problem, I can query which ever table I
want.

A bug in Word?


If anything, a design problem I think. In fact, as far as I know, Excel
still uses ODBC to connect to SQL Server databases, in Word XP now uses
OLEDB by default. You can use ODBC in Word by using Tools|MS Query when you
reach the Select Data Source dialog box. However, Word still tends to lose
the password - everything appears to assume that you are using Windows
Authentication.

Peter Jamieson

"Philippe Pons" wrote in message
...
Thank's for your answer, Peter.

I'm using Word2002.(A French and an English version)
The server is located in a Hosting Company.
I have to use the username and pwd they gave me.

With th econnection wizzard, I select the db, then I check the connection
with the server and it's ok
I can then select which table I need.

I validate and word tells me it can't open the source.

If I do the same with Excel, no problem, I can query which ever table I
want.

A bug in Word?



"Peter Jamieson" a écrit dans le message
de
...
Which version of Word are you using?

Are you using OLEDB or ODBC to connect?

Are you using WIndows Integrated Security or SQL Server security? If you

are
using the latter, you have to specify the username and password and
ensure
that they are saved in the .odc file that is created when you use OLEDB
to
connect. (And note that that makes them visible in a text file)

Peter Jamieson
"Philippe Pons" wrote in message
...
Hi all,

My datasource comes from a SQL Server DataBase.

If the DB is on my pc, no pb to get the data

If the DB is on a remote server, I contact the server using it's IP
address,
using the Data Connection Wizard.
If I use the query with Excel, i can get the data.
But Word says: Word was not able to open the DataSource

Any help woul be greatly appreciated.

Philippe








  #5   Report Post  
Philippe Pons
 
Posts: n/a
Default

Petre,

I checked "Save Password in File", and it fixed the problem.

Thank you very much, and have a good week.

Philippe

"Peter Jamieson" a écrit dans le message de
...
If you get to a point in the connection dialogue with title

"Save Data Connection File and Finish"

make sure you check "Save Password in File"

If I do the same with Excel, no problem, I can query which ever table I
want.

A bug in Word?


If anything, a design problem I think. In fact, as far as I know, Excel
still uses ODBC to connect to SQL Server databases, in Word XP now uses
OLEDB by default. You can use ODBC in Word by using Tools|MS Query when

you
reach the Select Data Source dialog box. However, Word still tends to lose
the password - everything appears to assume that you are using Windows
Authentication.

Peter Jamieson

"Philippe Pons" wrote in message
...
Thank's for your answer, Peter.

I'm using Word2002.(A French and an English version)
The server is located in a Hosting Company.
I have to use the username and pwd they gave me.

With th econnection wizzard, I select the db, then I check the

connection
with the server and it's ok
I can then select which table I need.

I validate and word tells me it can't open the source.

If I do the same with Excel, no problem, I can query which ever table I
want.

A bug in Word?



"Peter Jamieson" a écrit dans le

message
de
...
Which version of Word are you using?

Are you using OLEDB or ODBC to connect?

Are you using WIndows Integrated Security or SQL Server security? If

you
are
using the latter, you have to specify the username and password and
ensure
that they are saved in the .odc file that is created when you use OLEDB
to
connect. (And note that that makes them visible in a text file)

Peter Jamieson
"Philippe Pons" wrote in message
...
Hi all,

My datasource comes from a SQL Server DataBase.

If the DB is on my pc, no pb to get the data

If the DB is on a remote server, I contact the server using it's IP
address,
using the Data Connection Wizard.
If I use the query with Excel, i can get the data.
But Word says: Word was not able to open the DataSource

Any help woul be greatly appreciated.

Philippe










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
Using Secured Access Database as Datasource Josh Mailmerge 2 January 18th 05 01:33 PM
cant open mailmerge datasource saj via OfficeKB.com Mailmerge 0 January 5th 05 03:19 PM
word 97 mailmerge with paradox files as datasource saj via OfficeKB.com Mailmerge 0 December 24th 04 12:14 PM


All times are GMT +1. The time now is 09:52 AM.

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"