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
 Transact-SQL (2005)
 Insert

Author  Topic 

siva.meti
Starting Member

32 Posts

Posted - 2007-11-06 : 01:01:48

Hi
create table countries3
(
country_id char(10) not null,
countr_name varchar(23),
region_id int)

insert into countries2 values('ca','canada',2)

i am inserting data into this table i am getting blow error any boyd help me

Msg 8152, Level 16, State 14, Line 1
String or binary data would be truncated.
The statement has been terminated.

Thanks


Meti BEST OF THE BEST

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-11-06 : 01:05:50
Your code is showing that you are creating countries3 table yet inserting into countries2 table. What does the DDL look like for countries2?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

siva.meti
Starting Member

32 Posts

Posted - 2007-11-06 : 01:47:04
yes thanku i am sorry


Meti BEST OF THE BEST
Go to Top of Page
   

- Advertisement -