Viewing 15 posts - 3,991 through 4,005 (of 6,679 total)
emily-1119612 (3/25/2010)
Why destroy information which may be useful, that is the timestamp?Change your restore script to dynamically set the fname of the file to be restored.
http://blog.tech-cats.com/2007/10/sql-server-script-to-restore-database.html
http://www.sqlservercentral.com/scripts/Backup+%2f+Restore/66372/
I'm with Emily here -...
March 26, 2010 at 7:55 pm
Lowell (3/26/2010)
you want to start at midnite yesterday, not 12:18 of yesterday.
and another way:
--2010-03-25 00:00:00.0002010-03-25 23:59:59.997
select DATEADD(dd, DATEDIFF(dd,0,getdate()), -1),
...
March 26, 2010 at 7:16 pm
RBarryYoung (3/26/2010)
Trey Staker (3/26/2010)
Kit G (3/26/2010)
March 26, 2010 at 7:07 pm
To SwePeso:
Show off :w00t:
I like it - nice solution.
March 26, 2010 at 4:14 pm
Absolutely - the DMV's open up a lot of good information and make Performance Dashboard a real useful tool 😉
March 26, 2010 at 3:53 pm
Michael Meierruth (3/26/2010)
I was simply trying...
March 26, 2010 at 2:39 pm
Michael Meierruth (3/26/2010)
The WITH statement is the best thing that came out with SS2005.
And there is no need to wrap your head around it. It's really simple!
It's like preparing your...
March 26, 2010 at 1:59 pm
Backup history is stored in the system tables in MSDB. Look in the backup* tables in that database to find the information you are looking for.
March 24, 2010 at 10:02 pm
You need to look in the setup logs and post the errors here - looking at what you posted doesn't tell us what errors were encountered.
The setup logs are going...
March 24, 2010 at 9:57 pm
I don't know if there are any documents available for that - but I can tell you that best practices are to never open up databases to public roles.
The application...
March 24, 2010 at 9:44 pm
Yes - you do not need SSIS installed to create or run maintenance plans in SQL Server 2005. As long as you are at SP1 or greater (I think...
March 24, 2010 at 7:48 pm
I don't know what is so hard about it - right click on the table in the other database and script it to a select statement. Find the timestamp...
March 24, 2010 at 7:43 pm
I am thinking something like this might be what you are looking for:
;With cteGrouped (MarkPer, StartDate, EndDate, RowNum)
As (
Select MarkPer
,StartDate
...
March 24, 2010 at 7:36 pm
Yes, there is an easy way to do this. Rewrite your insert statement to include all of the columns being inserted - without the timestamp column. For example:
Current:
INSERT...
March 24, 2010 at 7:14 pm
If you upgrade to SQL Server 2008 - you can defragment HEAP tables. Other than that, you need to continue as you are now.
March 24, 2010 at 7:03 pm
Viewing 15 posts - 3,991 through 4,005 (of 6,679 total)