Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SaveSelectCommand blows up when tableName is empty
Message
 
To
03/01/2005 11:06:06
Max Fillmore
Essential Skills, Inc.
Lenexa, Kansas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00973826
Message ID:
00974448
Views:
98
Max,

Thanks for the heads up. I'll change the code in FillDataSet to:
if (!mmString.Empty(tableName))
{
	// Fill the specified table in the DataSet
	adapter.Fill(ds, tableName);

	// Store the current select command for the current table in the
	// DataTable's extended properties
	this.SaveSelectCommand(ds, tableName, dbAdapter);
}
else
{
	 //Fill dataset, with table being named according to SQL rules
	adapter.Fill(ds);

	// Store the current select command for the current table in the
	// DataTable's extended properties
	this.SaveSelectCommand(ds, ds.Tables[0].TableName, dbAdapter);
}
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform