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 Programming
 error while creating job in sql

Author  Topic 

naveenkandipu
Starting Member

9 Posts

Posted - 2013-07-29 : 07:17:20
while creating job in sql .. i am getting following error..

Unable to cast object of type 'Microsoft.SqlServer.Management.Smo.SimpleObjectKey' to type 'Microsoft.SqlServer.Management.Smo.Agent.JobObjectKey'. (Microsoft.SqlServer.Smo)

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-07-29 : 07:27:45
Try after applying SP2 on SQL Server instance

also see

http://support.microsoft.com/kb/940384

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

naveenkandipu
Starting Member

9 Posts

Posted - 2013-07-29 : 07:33:12
i have sp3 version of sqlserver 2005
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-07-29 : 07:38:01
quote:
Originally posted by naveenkandipu

i have sp3 version of sqlserver 2005


You mean for client tools and db both?
Are you accessing the sql server db from client machine? if yes you should also ensure the client tools (SSMS in this case) is also of atleast SP2 and not only your actual SQL Server instance.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-07-29 : 07:39:40
see this for steps to check the version of client tools in workaround section
http://connect.microsoft.com/SQLServer/feedback/details/271328/unable-to-create-agent-job-after-installing-service-pack-2

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

naveenkandipu
Starting Member

9 Posts

Posted - 2013-07-29 : 08:07:42
thanks visakh16 for ur response..got solved..;)
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-07-30 : 01:27:18
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -