다음 줄을 사용하여 data.bat 파일을 실행 중입니다.
Rem Tis batch file will populate tables
cd\program files\Microsoft SQL Server\MSSQL
osql -U sa -P Password -d MyBusiness -i c:\data.sql
data.sql 파일의 내용은 다음과 같습니다.
insert Customers
(CustomerID, CompanyName, Phone)
Values('101','Southwinds','19126602729')
레코드를 추가하는 데 8 줄이 더 있습니다.
나는 이것을 실행하면 start> run> cmd> c:\data.bat,이 오류 메시지가 나타납니다 :
1>2>3>4>5>....<1 row affected>
Msg 8152, Level 16, State 4, Server SP1001, Line 1
string or binary data would be truncated.
<1 row affected>
<1 row affected>
<1 row affected>
<1 row affected>
<1 row affected>
<1 row affected>
또한, 나는 분명히 초보자이지만 무엇 Level #을 state #의미하며 위와 같은 오류 메시지를 어떻게 조회합니까? 8152?