FIX: When you use the Msdatasetgenerator custom tool in the .NET Framework 2.0 Service Pack 1 (SP1), the scale value and the precision value in the generated code for a third-party .NET data provider differ from the values that you set

Article translations Article translations
Article ID: 958252 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

When you use the Msdatasetgenerator custom tool in the .NET Framework 2.0 Service Pack 1 (SP1), the scale value and the precision value in the generated code for a third-party .NET data provider differ from the values that you set in the Parameters Collection Editor dialog box.

Note This problem does not occur when you use one of the following data providers:
  • SQLProvider
  • OracleProvider
  • ODBCProvider
  • OleDBProvider
  • SQLCeProvider

RESOLUTION

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

You must have the .NET Framework 2.0 SP1 installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.design.dll2.0.50727.18565,046,27217-Oct-200803:28x86

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about precision and about scale, visit the following Microsoft Web site:
http://technet.microsoft.com/en-us/library/ms190476.aspx
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Steps to reproduce the problem

  1. Create a Visual C# project or a Visual Basic project by using one of the following templates:
    • The Windows Forms Application template in Microsoft Visual Studio 2008.
    • The Windows Application template in Microsoft Visual Studio 2005 Service Pack 1.
  2. On the Data menu, click Add New Data Source.
  3. Connect to a Microsoft SQL Server database, and then select a table that contains scale and precision information in the Data Source Configuration Wizard dialog box.
  4. In Solution Explorer, right-click the dataset (.xsd) file, and then select View Designer.
  5. On the dataset tab, right-click TableAdapter, and then select Properties.
  6. In the Properties dialog box, expand one of the following commands:
    • Deletecommand
    • InsertCommand
    • UpdateCommand
  7. Select the parameters line, and then click the ellipsis button next to the Parameters label.
  8. In the Parameters Collection Editor dialog box, change the scale value and the precision value, and then click OK.
  9. In Solution Explorer, right-click the .cs file or the .vb file, and then select View Code.
  10. Check the scale value and the precision value.
You experience the problem that is described in the "Symptoms" section.

Properties

Article ID: 958252 - Last Review: October 8, 2011 - Revision: 2.0
APPLIES TO
  • Microsoft .NET Framework 2.0
Keywords: 
kbexpertiseadvanced kbsurveynew kbqfe KB958252

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com