can varchar length in convert or cast decrease performace of sqlserver 2005

已答复 can varchar length in convert or cast decrease performace of sqlserver 2005

  • 2012年3月18日 5:35
     
     
    Dear all,
    i am creating hyperlink from stored procedure
    ex.
    table name is emp and col1 is bigint.

    select '<span><a target="_blank" href="index.htm'+CAST(col1 as varchar(20))+'">Index</a></span>'

    from emp

    i can use varchar(30) in place of varchar(20) in above case.
    my question is,can the increase of length of varchar 20 to 30 can decrease the performace of sqlserver 2005 in any situation.

    (please consider that i have more than 200 stored procedure where i am creating many links as shown above)


    yours faithfully

全部回复