Skip to main content
  1. Posts/

SqlMetal.exe crashes when a column name in the result set is [ ].

··1 min

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.

George Tsiokos
Author
George Tsiokos

Leave a comment

Preview

Comments are reviewed before publishing.