You are here: Re: SQL Datatypes « MsSQL Server « IT news, forums, messages
Re: SQL Datatypes

Posted by pinney.colton@gmail.com on 04/01/07 11:59

On Apr 1, 5:00 am, Erland Sommarskog <esq...@sommarskog.se> wrote:

> SELECT varcharcol, COUNT(*) FROM tbl GROUP BY varcharcol
>
> should give you an indication of what really is in that column. Say that you
> find something like:
>
> 0 1234
> 1 9802
> Y 23
> N 12
> X 1

I see the approach you're taking. I should have been more clear in my
original post - it's not just bool's that I have issues with - it's
every data type. Data that should be stored as an int (or tinyint) is
stored as a varchar, data that should be stored as a datetime is
stored as a varchar, data that should be stored as a float is stored
as a varchar. I'm looking to convert all of that data. Bool data was
just an example.

I'll work with this suggestion and see how far I can get.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация