Viewing 15 posts - 136 through 150 (of 372 total)
There are a few methods you could use: sp_detach_db/sp_attach_db, BACKUP/RESTORE or ALTER DATABASE.
The steps to move the datafile using ALTER DATABASE would look something like this.
1) ALTER DATABASE myDB SET...
July 16, 2008 at 12:15 pm
Manie,
Another thing you might want to check is the Alert System settings, which is a property of the SQL Agent. See if a Enable mail profile is enabled.
July 9, 2008 at 5:59 am
Slow compared to what? How many rows are in your table?
Two things you might want to start with. Look at the query execution plan. That will tell you...
July 5, 2008 at 4:45 pm
Mark,
Since you want results based on an aggregate function look at using the HAVING clause in a SELECT statement.
Try building a statement using that. If it doesn't work out...
July 5, 2008 at 11:20 am
Since database mail saves messages and attachments in MSDB you'll also want to look at scheduling these two stored procedures as part of routine maintenance.
[font="Courier New"]msdb.dbo.sysmail_delete_mailitems_sp
msdb.dbo.sysmail_delete_log_sp[/font]
Look for the following topic...
July 3, 2008 at 5:42 am
Doing the date calculations in the WHERE clause would get you the records that are on the last day of the month for which it falls in.
CREATE TABLE Table1 (col1...
July 2, 2008 at 8:34 pm
Chris,
I've seen that type behavior but it affected all files, not just those from a single application.
First suspects I'd look at though are any filter drivers, which can be checked...
July 2, 2008 at 4:57 pm
ptheberge (6/30/2008)
How does the XML Task determine the number of rows returned and what is referenced in the procedent constraint in the...
July 1, 2008 at 6:30 pm
The DATENAME function might be what you're looking for.
SELECT DATENAME(mm,DATEADD(mm,-1,GETDATE()))
June 27, 2008 at 4:50 pm
Have you checked both share level and NTFS permissions?
June 27, 2008 at 2:08 pm
From a recovery perspective it doesn't matter. You can only use the Full and Differential backups with the Simple recovery model.
As for what size it should be initially that...
June 27, 2008 at 1:34 pm
It sounds like your backup is being appended to. Have a look at the "INIT" option. That controls whether the an overwrite or append operation happens.
To see how many...
June 27, 2008 at 11:53 am
Matt,
First place you'll want to look is the online help, known as Books Online, for using SELECT, INSERT, UPDATE and DELETE statements.
In SQL Server Management Studio you'd open a new...
June 26, 2008 at 6:21 pm
Bob,
Choose "When the job completes" if you want a notification regardless of whether it succeeds or fails.
June 26, 2008 at 8:34 am
I think you've identified that correctly. You might want to go through all your tables with columns that can hold text data and search for the word 'script' to...
June 24, 2008 at 11:43 am
Viewing 15 posts - 136 through 150 (of 372 total)