Viewing 15 posts - 181 through 195 (of 5,393 total)
Great script Grant.
Added to my briefcase.
February 24, 2016 at 1:46 am
This does the opposite, but could be a good starting point:
February 23, 2016 at 10:48 am
sp_spaceused
This will tell you how much unallocated space you have in the database.
February 23, 2016 at 8:41 am
What's the default schema for the database user?
February 23, 2016 at 2:25 am
Ah, yes, I forgot about that option. Nice catch Chris.
February 23, 2016 at 2:19 am
It's a complex topic and there is no quick win.
Triggers will likely be a performance disaster, forget about it.
Trace could help, but again could turn into a performance nightmare and/or...
February 23, 2016 at 2:15 am
Try to restore them: that's the only way to know for sure. Find a test server (your workstation will do as well) and restore those backups.
February 23, 2016 at 1:50 am
There's no way you can get a sensible answer without posting the table definition, including current indexes. Please post the actual execution plan too.
February 23, 2016 at 1:48 am
There is no built-in CONVERT style that will handle the format DDMMYYYY. This means that you will have to code it yourself. This should do:
CONVERT(date, RIGHT(Date1,2) + SUBSTRING(Date1, 3,2) +...
February 23, 2016 at 1:46 am
Did you check the service status in the Configuration Manager?
February 22, 2016 at 10:46 am
"Access denied" is a filesystem error, not a SQL Server error.
If you detached the database, your windows user has exclusive permissions on the MDF and LDF files. Fix that first.
February 22, 2016 at 1:46 am
Join sysjobhistory with sysjobs on job_id to get the job name.
You don't want us to do the all the work, do you?
February 22, 2016 at 1:41 am
More suggestions:
1) Get rid of those NOLOCK hints: they won't make the query faster, but will potentially return incorrect data (reading rows multiple times or not at all).
2) Are you...
February 16, 2016 at 6:53 am
Your Patient table is horribly overindexed. That's what you get when you accept all the recommendations from the database tuning advisor.
I recommend that you look at the utilization of those...
February 16, 2016 at 6:44 am
Viewing 15 posts - 181 through 195 (of 5,393 total)