SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 error while creating job in sql
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

naveenkandipu
Starting Member

9 Posts

Posted - 07/29/2013 :  07:17:20  Show Profile  Reply with Quote
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

India
52249 Posts

Posted - 07/29/2013 :  07:27:45  Show Profile  Reply with Quote
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 - 07/29/2013 :  07:33:12  Show Profile  Reply with Quote
i have sp3 version of sqlserver 2005
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52249 Posts

Posted - 07/29/2013 :  07:38:01  Show Profile  Reply with Quote
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

India
52249 Posts

Posted - 07/29/2013 :  07:39:40  Show Profile  Reply with Quote
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 - 07/29/2013 :  08:07:42  Show Profile  Reply with Quote
thanks visakh16 for ur response..got solved..;)
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52249 Posts

Posted - 07/30/2013 :  01:27:18  Show Profile  Reply with Quote
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000