dataset-designer

Custom tool error Failed to generate code

拜拜、爱过 提交于 2019-12-13 01:26:49
问题 Why this error is appearing? I was just setting some default values in a dataset designer... its second time that this is appearing... "Custom tool error Failed to generate code. Exception of type 'System.OutOfMemoryException' was thrown" 回答1: I just found a way to regenerate codes. In Solution Explorer right click on your DataSet and click Run Custom Tool . I do it after closing and reopening VS2010... Hope this help you, if you faced the problem... good luck 来源: https://stackoverflow.com

Cannot insert default value into SQL database from Win Forms project

邮差的信 提交于 2019-12-12 02:57:26
问题 I have a MS SQL database. On one of my fields, LotNumber I set the default value to be [dbo].CalculateJulianDate which is a scalar-valued function that takes the current date and creates a Julian date formatted lot number. When I insert values into my table using SSMS, the value is populated correctly replacing the empty value with the LotNumber. I am trying to create a visual basic winforms front end for the database in visual studio 2010. I set my datasource, dragged a details view onto a

OleDbCommand.Prepare method requires parameters of type '14' have an explicitly set Precision and Scale

爷,独闯天下 提交于 2019-12-11 05:40:36
问题 Using Visual Studio 2010 and I'm encountering an error when attempting to use the DataSet designer. The error is as stated in the subject, "OleDbCommand.Prepare method requires parameters of type '14' have an explicitly set Precision and Scale." I have created a query in a TableAdapter that joins a few tables and returns four columns from the join. I then try to add columns to the DataTable in the designer and receive the error. This error also appears at the end of the end of the