Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 Datatype query

Author  Topic 

rookie_sql
Constraint Violating Yak Guru

443 Posts

Posted - 2008-03-20 : 10:52:59
Hi i have a table where the week number is held in it as a tiny int. I can't change this tables datatype.

But i can change the lookup table coulmn as am using a an expresstion to create it.

I'd like to know what datatype i can assign my new week_no column so it will join up with my other week_no column its currently set as a tinyint.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-03-20 : 10:54:04
i think int would be fine.
Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2008-03-20 : 11:00:36
what is wrong with just using tinyint?

- Jeff
http://weblogs.sqlteam.com/JeffS
Go to Top of Page

rookie_sql
Constraint Violating Yak Guru

443 Posts

Posted - 2008-03-20 : 11:05:48
Am working within a SSIS package and am using the data conversion task but i can't see any datatype for tinyint listed. I already tried int and it does not work.
Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2008-03-20 : 11:07:30
A tinyint is the same as a byte. Is byte available?

- Jeff
http://weblogs.sqlteam.com/JeffS
Go to Top of Page

rookie_sql
Constraint Violating Yak Guru

443 Posts

Posted - 2008-03-20 : 11:22:25
I worked around it. I used the convert to convert my tinyint to a int and then used the single byte unsigned intenger.

Thanks for your help.
Go to Top of Page
   

- Advertisement -