Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 SQL Server Administration (2012)
 Entity Framework
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Constraint Violating Yak Guru

352 Posts

Posted - 06/09/2014 :  18:26:31  Show Profile  Reply with Quote
How many of you DBAs are stuck working in an environment where LINQ and/or the Entity Framework are used? I fully appreciate that these things make the lives of developers much easier but I'm regularly running into scenarios where application performance is suffering because LINQ is being translated into sub-optimal TSQL. In fact, I've just been told by a developer that the "StartsWith" LINQ construct that is being translated into a CHARINDEX = 1 instead of a LIKE 'blah%' is a known limitation and there is no workaround. My index is being ignored because of this.

Frustration mounting.......

Almighty SQL Goddess

38200 Posts

Posted - 06/09/2014 :  18:44:32  Show Profile  Visit tkizer's Homepage  Reply with Quote
This was a huge problem at my last job. I tried to make stored procedures a requirement but lost that battle. Thankfully I'm now in an environment where the DBAs do have the power. I'm much happier.

Tara Kizer
SQL Server MVP since 2007
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000