|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, April 04, 2013 4:54 AM
Points: 1,383,
Visits: 520
|
|
Glad to see a clearer explanation from Simon, had a better understanding after that.
Regards,
Phil
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Monday, May 06, 2013 1:09 PM
Points: 15,439,
Visits: 9,569
|
|
vlad (8/11/2008) this makes varchar(max) a special type ... necessitating special handling aka "workaround" for a bug, maybe ??
Nope. Implicit conversion can be a problem on just about any data type. Elimination of implicit conversion would be the only way to handle that, and implicit conversion has too many good uses to get rid of it because of people who don't learn how to handle it correctly.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 1:51 PM
Points: 1,801,
Visits: 257
|
|
Nope. Implicit conversion can be a problem on just about any data type. Elimination of implicit conversion would be the only way to handle that, and implicit conversion has too many good uses to get rid of it because of people who don't learn how to handle it correctly.
- GSquared
Despite the fact that implicit conversion maybe good or bad, varchar(max) is a not the same type as varchar(N), 0<=N<=8000 .. something to keep in mind!
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Thursday, June 04, 2009 5:29 AM
Points: 49,
Visits: 12
|
|
Hi Simon, Thank for the explanation of the question.
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Monday, May 06, 2013 1:09 PM
Points: 15,439,
Visits: 9,569
|
|
vlad (8/12/2008)
Nope. Implicit conversion can be a problem on just about any data type. Elimination of implicit conversion would be the only way to handle that, and implicit conversion has too many good uses to get rid of it because of people who don't learn how to handle it correctly.
- GSquared Despite the fact that implicit conversion maybe good or bad, varchar(max) is a not the same type as varchar(N), 0<=N<=8000 .. something to keep in mind!
Exactly.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Saturday, March 02, 2013 8:26 PM
Points: 312,
Visits: 367
|
|
| A real good explanation by Simon....Im quiet clear on this one..Thanks Simon:)
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
|
|
--Step 1 Declare @Str VarChar(max); Set @Str=Replicate(cast('*'as varchar(MAX)) ,10000) Print Len(@Str);
--Step 2 Declare @Str VarChar(max); Set @Str=Replicate('*' ,10000) Print Len(@Str);
----
i m hardly got the difference between step 1 and step 2 ..please explain both ????
-------Bhuvnesh---------- While 1 = 1 (Learning SQL....) Click to get fast response of your post
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Yesterday @ 1:07 PM
Points: 18,733,
Visits: 12,332
|
|
|
|
|