VistaDB 6
VistaDB / Developer's Guide / How To Perform Common Tasks / How To - Update Datasets to use VistaDB 6
In This Topic
    How To - Update Datasets to use VistaDB 6
    In This Topic

    Typed Datasets created with VistaDB 5 and earlier may fail to open in VistaDB 6.  This is because the Typed DataSet definition includes old connection information in its Xml.  To fix this:

    1. Open the Typed Dataset (.xsd) file in XML mode by selecting Open With.. from the context menu and then selecting XML (Text) Editor from the list.
    2. Near the top find the <Connections> area and at the end of the <Connection /> XML element you'll see the provider listed.  Update it to System.Data.VistaDB6 to use the VistaDB 6 provider.
    3. Save the file and close it.  You should now be able to open it normally in the designer.

     A corrected example of a data set Xsd will have a connection like the following:

    <?xml version="1.0" encoding="utf-8"?>
    <xs:schema id="TheEverythingDataSet" 
               attributeFormDefault="qualified" elementFormDefault="qualified">
        <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
          <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" 
                      Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" 
              <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="ConnectionString" ConnectionStringObject="" 
                          IsAppSettingsProperty="true" Modifier="Assembly" Name="ConnectionString (Settings)" ParameterPrefix="@" 
                          Provider="System.Data.VistaDB6" />
    See Also