Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Only Date portion of GetDate()
Message
De
22/10/2012 14:05:06
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01555465
Message ID:
01555476
Vues:
42
SName is defined as nvarchar(100)



>>Here's the SQL
>>
>>insert into StudentLookup 
>>  Select SCN, Sname = (SLastName + ', ' + SFirstName), TCN, TName, chngdate = getdate()  from qryICECLExport
>>
>>
>>The error I'm getting is:
>>
>>Msg 8152, Level 16, State 4, Line 1
>>String or binary data would be truncated.
>>The statement has been terminated.
>>
>>I thought perhaps the SName field wasn't long enough, so I expanded it (still in development phase of project), but I'm still getting the error.
>>
>You need to look at every field in the StudentLookup table and compare with the resulting structure of your Export table.
>
>You may find this blog post helpful to find maximum length of value of every field:
>
>http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/maximum-length-of-data-in
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform