SqlMetal.exe crashes when a column name in the result set is [ ].
The last message to be written to the console was: “Error : Index was outside the bounds of the array.”
To reproduce this bug, create this stored procedure and run SqlMetal against it:
CREATE PROCEDURE [dbo].[ThisProcedureWillCauseSqlMetalToCrash] AS
BEGIN
SET NOCOUNT ON;
SELECT 1 [A], 2 [ ], 3 [C]
END
Applies to:
- Visual Studio 2008 RTM
- Microsoft Windows SDK v6.0A
Please rate and validate this problem at the MSDN Microsoft Product Feedback Center so Microsoft responds with a solution or workaround.