renamed database

P

Paul Scalf

They renamed our database and, as you've probably guessed, broke our
InfoPath forms. I've asked this here before and didn't receive an answer,
thought I'd try again. Is there an easy way to make this kind of a change to
a data connection , i.e. change the database name, on an InfoPath form
without starting from scratch? Just FYI, we are using some managed code
within these forms.
 
J

Jerry Thomas [MSFT]

You should be able to do this easily.

Open the form in the Designer.
Select "Tools" / "Convert main data source"
and then link to the 'new' database just as you did when you created the
form.

--
Jerry Thomas
Microsoft Office InfoPath
---------------------------------------
This posting is provided "As Is" with no warranties, and confers no rights.
Use of any included script sample are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
 
H

Hagen Green [MSFT]

Thoroughly test your form before rolling it out. Ensure your business logic
code does not have any hard references based on the name of the data source.
Also, and most importantly, confirm that your XPaths and namespaces are
still valid. During testing you should attempt to hit all of your code paths
just to be sure.

--Hagen
This posting is provided "AS IS" with no warranties, and confers no rights.
Sample code subject to http://www.microsoft.com/info/cpyright.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top