Re: Spaces consume room?
From: Benny Tordrup (nospam)
Date: 02/27/04
- Next message: Jeff Ericson: "if exists"
- Previous message: Brandon Lilly: "Date queries"
- In reply to: Stijn Verrept: "Spaces consume room?"
- Next in thread: Stijn Verrept: "Re: Spaces consume room?"
- Reply: Stijn Verrept: "Re: Spaces consume room?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 27 Feb 2004 15:31:02 +0100
Stijn,
This is a matter of data type in the table. If the data type is char or
nchar, the field is filled with trailing spaces to the size. If the data
type is varchar or nvarchar, it is not.
Benny
"Stijn Verrept" <stijn@no_s.p.a.n.entrysoft.com> skrev i en meddelelse
news:403f5213$0$1919$ba620e4c@news.skynet.be...
> I have an ISA server logging to a SQL server. I noticed that it also
> writes space (for example after desthost).
>
> So when a record is: www.msn.be it puts spaces behind the name til it
> get to 255 chars.
>
> I'm gonna make a trigger who chops of those chars but I just want to
> make sure: these spaces do take up DB space correct? Because when I do
> a select length(DestHost) from ... it shows the small size.
>
>
> --
> Kind regards,
>
> Stijn Verrept.
- Next message: Jeff Ericson: "if exists"
- Previous message: Brandon Lilly: "Date queries"
- In reply to: Stijn Verrept: "Spaces consume room?"
- Next in thread: Stijn Verrept: "Re: Spaces consume room?"
- Reply: Stijn Verrept: "Re: Spaces consume room?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|