Why You Should Use & in SSRS Expressions

Posted by: Paul Litwins Blog, on 22 Aug 2006 | View original | Bookmarked: 0 time(s)

In SQL Server Reporting Services you can use the almost identical string concatenation operators: moe and curly, er. I mean + and &.Unlike in VB./vBA, the difference has nothing to do with Nulls since Nulls don't exist in SSRS textboxes (they are auto-converted into empty strings).The difference comes to the forefront if you try to concatenate a string with a number. Then the VB parser is not sure whether to mathematically add or concatenate and generates an exception.The moral of this post is...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: VB.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 893 | Hits: 26

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD