Viewing 15 posts - 106 through 120 (of 232 total)
If you are practicing some basic querying then http://sqlzoo.net should be very handy.
April 5, 2010 at 1:03 am
select convert(varchar,getdate(),111)
March 30, 2010 at 9:31 pm
Hi Lynn,
I have seen that happen in SQL 2k when someone updates sysjobs directly by setting enabled = 0.
Disabling a job using sp_update_jobs stops it correctly.
The wierd part is that...
March 30, 2010 at 9:21 am
Its logical.I was just trying to be self critical 🙂
@shinobigoh,
The option I can think of, for jobs, in that case would be to create a dts package for transferring jobs.
Trigger...
March 26, 2010 at 8:25 am
If you need accuarate numbers then go for count(*). If approximate stuff wud do then use sp_spaceused/SP_ROWCOUNT provided in the article.
Probably your Update stats took a sample scan. Try,
Update statistics...
March 26, 2010 at 8:04 am
Oopsie..I didnt read the question correctly. Just saw OP's 'what abt jobs' and replied.
Apologies shinobigoh and Jason for my dumb response.
March 26, 2010 at 8:00 am
Jason:
This is about the cheapest method.
Recession has taught us that we need to resort to the cheapest option where ever possible 😀
March 26, 2010 at 7:41 am
Thats because statistics for the table is not updated
Fire 'update statistics tablename' and check the results again.
March 26, 2010 at 4:10 am
You can always script all the jobs from Enterprise manager from
Management->SQL server agent->All tasks->Generate SQL scripts
generates the script for all the jobs on the server
March 26, 2010 at 3:57 am
I know it is possible to script sql server logins, jobs and schema by using the management studio.
Logins cant be scripted directly from the management studio with the same password....
March 25, 2010 at 8:05 pm
@gerald.drouin,
While loops do offer a solution for hierarchy based solution, but CTEs are simpler, cleaner way of solving the recursive problems. If correctly used, they offer better performance than while...
March 19, 2010 at 1:29 am
The one under SQL Agent gives log details about scheduled jobs alone.
The one under Manangement->Sql Server logs is the one that stores SQL error logs. I prefer to use sp_readerrorlog...
March 15, 2010 at 1:34 am
I guess the original poster needed a solution using the partition clause.
I have just made small change to pauls method1. It should work
[code="
SELECT S.column1,
...
March 15, 2010 at 12:19 am
Viewing 15 posts - 106 through 120 (of 232 total)