Forum Replies Created

Viewing 15 posts - 151 through 165 (of 692 total)

  • RE: The Glue that Binds

    Matt Miller (9/22/2008)


    Agreed. Still - my biggest objection to it is the separation of duties issue. Since we're back to putting what essentially boils down to dynamic SQL...

    --
    Adam Machanic
    whoisactive

  • RE: The Glue that Binds

    cs_troyk (9/22/2008)


    In addition to the automatic parameterization issues mentioned earlier, I have seen cases where the SQL emitted by a LINQ expression contains a cartesian product (CROSS JOIN) where it's...

    --
    Adam Machanic
    whoisactive

  • RE: The Glue that Binds

    I actually didn't mention numeric types in the feedback item on purpose, because there are some deeper issues there and the fix isn't quite as straightforward. My suggested fix...

    --
    Adam Machanic
    whoisactive

  • RE: The Glue that Binds

    Yes, EASY. And not at all suboptimal, either. Sorry, but I don't buy "if it were easy they already would have done it." I suspect the truth...

    --
    Adam Machanic
    whoisactive

  • RE: The Glue that Binds

    developmentalmadness (9/19/2008)


    The only shortcoming here with LINQ is they didn't go quite far enough, because the don't properly parameterize strings and numeric (decimal etc) types which have a size and...

    --
    Adam Machanic
    whoisactive

  • RE: Things You Didn't Know About Temp Tables and Table Variables

    PKs and UNIQUE constraints are backed by indexes, so you can create indexes, as long as they're unique. Need a non-unique index? Add an identity column and use...

    --
    Adam Machanic
    whoisactive

  • RE: Things You Didn't Know About Temp Tables and Table Variables

    Jeff Moden (7/18/2008)


    Viswanath S. Dhara (7/18/2008)


    I am trying to update a table using a correlated subquery.

    Why? Correlated subqueries are a form of RBAR and can actually be...

    --
    Adam Machanic
    whoisactive

  • RE: Things You Didn't Know About Temp Tables and Table Variables

    Viswanath S. Dhara (7/17/2008)


    Thanks for the Article Roi. There is one more thing you forgot to mention. You can't write a correlated subquery on a table varable where as you...

    --
    Adam Machanic
    whoisactive

  • RE: Things You Didn't Know About Temp Tables and Table Variables

    A couple of small corrections:

    A) INSERT EXEC actually does work on table variables in 2005 and 2008.

    B) You can create nonclustered indexes on table variables, in the form of...

    --
    Adam Machanic
    whoisactive

  • RE: Things You Didn't Know About Temp Tables and Table Variables

    One big difference not mentioned in the article, but which influences the choice of when to use which, is that autostats do not apply to table variables, but do apply...

    --
    Adam Machanic
    whoisactive

  • RE: CLR Integration

    You add it to the SqlFunctionAttribute in the C# code:

    public partial class CTSStoredProcs

    {

    [Microsoft.SqlServer.Server.SqlFunction(IsDeterministic=true, IsPrecise=true)]

    public static SqlBoolean RegExValidate(

    SqlString expressionToValidate, SqlString regularExpression)

    {

    ...

    --
    Adam Machanic
    whoisactive

  • RE: CLR Integration

    Looks good, but you might want to apply the IsDeterministic and IsPrecise options on the SqlFunctionAttribute so that you can use your function in a wider variety of scenarios (such...

    --
    Adam Machanic
    whoisactive

  • RE: CLR Integration

    billross (6/22/2008)


    I realize that the Sql Server Project Template is only available in the Professional edition of VS but wouldn't it be possible to create a CLR proc by just...

    --
    Adam Machanic
    whoisactive

  • RE: The CLR in SQL Server 2005

    Marios Philippopoulos (1/25/2008)


    Inside MICROSOFT SQL SERVER 2005: T-SQL PROGRAMMING

    by Itzik Ben-Gan

    Solid Quality Learning

    is a great introduction to SQL CLR

    Absolutely! And may I also suggest...

    "Pro SQL Server 2005"

    by Tom Rizzo,...

    --
    Adam Machanic
    whoisactive

  • RE: The CLR in SQL Server 2005

    don_goodman (1/25/2008)


    What is not understood about interpreted code be it T-SQL, CLR, JAVA or VB3 code? When you add 2 layers of interpretation to a piece of code, it will...

    --
    Adam Machanic
    whoisactive

Viewing 15 posts - 151 through 165 (of 692 total)