Microsoft KB Archive/277600

= The password you use to connect to the server is not saved when you import data from a server by using ODBC Connection in Excel =

Article ID: 277600

Article Last Modified on 1/23/2007

-

APPLIES TO


 * Microsoft Office Excel 2007
 * Microsoft Office Excel 2003
 * Microsoft Excel 2002 Standard Edition

-



This article was previously published under Q277600





SYMPTOMS
When you try to import data from a network server in Microsoft Excel, the password you use to connect to the server is not saved. This occurs even though you clicked to select the Save password in file check box.



CAUSE
The Allow saving password check box was not selected on the Connection tab of the Data Link Properties dialog box, when the connection to the data source was made.



RESOLUTION
Click to select the Allow saving password check box when you are making the connection to the data source. To save the password with the file, follow these steps:
 * 1) Start Excel and open a new blank workbook.
 * 2) On the Data menu, point to Import External Data, and then click Import Data.

Note In Microsoft Office Excel 2007, click From Other Source in the Get External Data group on the Data tab, and then click From Data Connection Wizard.
 * 1) In the Select Data Source dialog box, click New Source.

Note In Excel 2007, skip this step.
 * 1) In step 1 of the Data Connection Wizard, under What kind of data source do you want to connect to, click Other/Advanced, and then click Next.
 * 2) In the Data Link Properties dialog box, on the Provider tab, click Microsoft OLE DB Provider for ODBC Drivers, and then click Next.
 * 3) On the Connection tab, under Specify the source of the data, select a System DSN data source, type the user name and password, and then click to select the Allow saving password check box. Under Enter the initial catalog to use, select a database on the server, and then click OK.
 * 4) In the Choose Data step of the Data Connection Wizard, select a table, and then click Next.
 * 5) In the Finish step of the wizard, click to select the Save password in file check box. You receive a warning about how to save the password without encryption. Click Yes, and then click Finish.
 * 6) In the Select Data Source dialog box, take note of the filename that is selected, and then click Open.
 * 7) In the Import Data dialog box, click OK to accept the defaults.

Notice that the data is displayed in the active worksheet.
 * 1) Click Start, point to Search, and then click For Files or Folders.
 * 2) In the Search Results dialog box, search for files named *.odc.
 * 3) Right-click the .odc file that has the same name as the data source that you opened in step 14, and then click Edit in Notepad.
 * 4) In Notepad, click Find on the Edit menu. In the Find what box, type ConnectionString, and then click Find Next.

Notice that this line of html code contains &quot;Password=MyPassword.&quot; In this code, MyPassword is the data source password that you saved with the file.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

Additional query words: XL2002 XL2003 XL2007

Keywords: kbexpertisebeginner kbbug kbnofix KB277600

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.