Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12

Stored procedure parameters Expand / Collapse
Author
Message
Posted Thursday, August 13, 2009 9:36 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Monday, November 24, 2014 10:38 AM
Points: 1,165, Visits: 548
joncooney73 (8/13/2009)
You would ASSUME 'range of values' implies string length here. Obviously it doesn't.
I don't believe so. The range of numeric values is limited because the datatype is limited. Obviously, the datatype of int is not the same as the datatype of long.

However, in the case of varchar, the length of the string that it can hold does not alter the definition of the datatype. varchar(4) is the same datatype as varchar(8000). The maximum length of the string that it holds is a property of the implementation of that datatype -- not the definition of the datatype.

Hope that helps!



"...when ye are in the service of your fellow beings ye are only in the service of your God." -- Mosiah 2:17
Post #770276
Posted Monday, August 24, 2009 5:56 PM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 9:52 AM
Points: 17,980, Visits: 15,983
This question was good in that it pointed out something really simple, yet way to easy to overlook when troubleshooting or code-reviewing in the first place.



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Post #776383
Posted Saturday, November 21, 2009 2:12 AM


SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Friday, January 11, 2013 12:41 PM
Points: 621, Visits: 297
It was easy one!



Bhavesh Patel

http://bhaveshgpatel.wordpress.com/
Post #822859
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse