Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

Using a title longer than 100 characters for a Data Explorer query produces an MS SQL error message:

String or binary data would be truncated. The statement has been terminated.

This should be made more user-friendly by checking the title length before passing it to the database and displaying a more appropriate error message:

Query title may not exceed 100 characters.

Also consider setting maxlength="100" on the title <input>.

share|improve this question
+1 but if you feel like it you could make the change yourself – Some Helpful Commenter Apr 3 '12 at 21:32
@ConradFrix I considered and took a look at the code before posting this, but I don't think I'd get it correct without a Windows setup to test it in. :P – Jeremy Banks Apr 3 '12 at 21:34
yeah that's a problem with open source projects that use the MS stack :( – Some Helpful Commenter Apr 3 '12 at 21:36
I'd give an extra upvote for determining the cause of the error if I could. Excellent bug report. – Matthew Read Apr 3 '12 at 21:40
You're looking for ~/App/StackExchange.DataExplorer/Views/Query/Editor.cshtml, line 26 per the latest rev. – user7116 Apr 3 '12 at 21:43
up vote 6 down vote accepted

I thought that was being checked for, but it seems not. Good catch.

I've pushed a fix for both the maxlength="100" and server-side checking for the title and description (and then another since I wasn't paying attention and used poor word choice in the original error messages).

[Obligatory stock comment about asking waffles to pull changes soon so it can be deployed.]

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .