I did find something that I was not expecting though. In my scripts I use invoke-sqlcmd and I have the snapin loading in my profile so I did not think I would have an issue. However, after I started one of my scripts and let it run for a while, I checked my database and no data had been inserted. this is strange since when I execute the script without start-job the data flows in as expected. I did a receive-job -id 9, 9 was the id of the running job, and it showed me the output of the script and I saw errors about invoke-sqlcmd not being a cmdlet. WHAT… So I modified my scripts with a add_snapin function and I add the snapin in that function that I call at the beggining of the scripts. Now they are working great.
Love that I can run both jobs in the background and check the status of them as I need to and stop them when I am ready to.]]>
1. Check the created date of Tempdb – So simple and it makes so much sense. Since tempdb is re-created everytime the instance starts that would tell me when.
2. Since I am running SQL Server 2008 he provided this query for me as well.
SELECT sqlserver_start_time FROM sys.dm_os_sys_info
Both are pretty simple but I never would have thought of option 2 but I am kicking myself for not getting option 1.
Anyway, the plan that my co-workers that are not as lucky as me, they actually work for a different company but we work together, have come up with is that we are going to allocate one day a week to training. Just us. We all have different skills sets and we all have different levels of experience. So why not leverage each other and train each other in the areas that we are strongest. This will make us all better at our jobs and we will be able to push each other to get better. Now of course you have to have a boss that will sign off on something like this but it really costs the company little to nothing. Sure some time, but we will all be in the office and available if needed. It might be hard to train everyone not to bother us unless it is something that is a big deal but I think we can manage that.
So I challenge you to come up with a solution that will help you get some training that is not all on your own time and dime. let me know what ideas you come up with as well. I will also keep you posted on how this works out for us.]]>
Take a look at this and let me know what you think about it and how your company deals with training. I work side by side with some guys that do not have the luck that I do and they do not get the opportunity to attend much training. But we have a plan and I will post more about that in another post after you have read this article.]]>
This is yet again more proof on how AWESOME the SQL community is and how Twitter can be very helpful.
Thanks everyone for your help and if MS ever gets on the phone I will still let you know what they say and if they resolve my issue.]]>
Hope to see you on twitter answering the questions.
And thanks to all of the SQLSkills team for doing this for the community. I know I and many others appreciate it.]]>
Great Job PASS on choosing this local!]]>