A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

[Mail merge] Pb with a datasource from a remote server



 
 
Thread Tools Display Modes
  #1  
Old May 7th, 2005, 10:28 AM
Philippe Pons
external usenet poster
 
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  
Old May 7th, 2005, 11:05 PM
Peter Jamieson
external usenet poster
 
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  
Old May 8th, 2005, 08:00 AM
Philippe Pons
external usenet poster
 
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  
Old May 8th, 2005, 02:24 PM
Peter Jamieson
external usenet poster
 
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  
Old May 8th, 2005, 05:05 PM
Philippe Pons
external usenet poster
 
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










 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
remote users not able to access outlook ddismore General Discussion 1 May 6th, 2005 05:29 PM
DAPs, migration from Desktop to remote Server, dynamic pages, DAP LimitToList? S Holubar General Discussion 0 March 31st, 2005 12:06 PM
Remote slide advancers [email protected] Powerpoint 9 January 31st, 2005 01:48 AM
O2K CW Remote Mail Config with Multiple Accounts dave General Discussion 0 August 25th, 2004 05:48 PM
Remote Cell Reference - Value & Formatting Phil Martinson Worksheet Functions 1 September 19th, 2003 04:53 AM


All times are GMT +1. The time now is 05:49 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.