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
 General SQL Server Forums
 New to SQL Server Administration
 SQL Error message-8152

Author  Topic 

kirandevbt08
Starting Member

2 Posts

Posted - 2012-08-14 : 05:02:00
Hi,

We are getting SQL error message while saving the edited SQL Jobs.

Also kindly note that these jobs were running fine earlier.

Also, while creating a new job, on click of 'Notification' tab, am getting the same error message.

We are using SQL Server Mangement Studio (Sp2) but this is not the issue as same is working fine with other server.

Below are the full details of the error message:-


TITLE: Microsoft SQL Server Management Studio
------------------------------

Alter failed for Job 'PMT_BackUpAllTextFiles'. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.4035.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Alter+Job&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

String or binary data would be truncated. (Microsoft SQL Server, Error: 8152)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.4035&EvtSrc=MSSQLServer&EvtID=8152&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------



Can anyone help me to get this issue resolve.

Regards,

Kiran Kumar N

sunitabeck
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2012-08-14 : 07:09:53
The error "String or binary data would be truncated" usually happens when you try to insert data into a table and one or more of char/varchar columns are not wide enough to insert the data you are attempting to insert.

So my conjecture is that there are some longer than usual strings in your data. That is consistent with what you said - that the jobs were running fine earlier.

What does the job do? From the name, it sounds like you are taking a bunch of text files and inserting into a database. If that is so, examine the files to see if there is anything unusual about those. It could be that there are longer than usual strings in them, or it may be that the files are in an incorrect format.
Go to Top of Page

kirandevbt08
Starting Member

2 Posts

Posted - 2012-08-14 : 07:40:17
Hi Sunita,

Thank you for your response.

But this is not the case, this error message we are not getting while running the SQL Job.

This error message is poping up when we rescheduled the job and try to save it.

Also when I open the Job --> Properties & click on the Notification Tab the same error message is popping up.

Can you please suggest on this.

Kiran Kumar N
Go to Top of Page

sunitabeck
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2012-08-14 : 08:10:33
Ah, I misread your original post. The error message is popping up when you try to save the job! I don't know what to look for - hopefully someone else will respond.
Go to Top of Page
   

- Advertisement -