Search This Blog
Wednesday, 21 March 2012
How to move a SQL Server database in SQL 2005
So I thought it was time I moved databases to where I want them and not have to rely on someone else.
It is actually quite a simple process to move a database and can all be done via the SQL Query in the Studio Manager application.
The first thing to do though is back up your database and the "master" database, this is really important as the master database contains the information about the configuration of SQL Server so if you lose this, you lose the lot.
Next you need to know the database file location and log file location of the database you want to move. You can find this out by running this query
use "mydatabase"
go
sp_helpfile
go
This will display the database and log file locations for you.
Next we will detach the database.
use master
go
sp_detach_db "mydatabase"
go
The database is now detached from the SQL Server Engine so we can move the files to their new locations.
Now we reattach the database and log files.
use master
go
sp_attach_db "mydatabase" , "E:\databasefiles\mydatabase.mdf" , "F:\databaselogs\mydatabaselogs.ldf"
go
The database will now be reattached to the locations specified. You can confirm this with the location Query from the first step again.
More information on this topic is found here.
Thursday, 8 March 2012
Hide the Administrative Tools in Windows 2008 R2 Remote Desktop
Thats a big thanks to b4z.co.uk for this, their ADM file works perfectly!
Tuesday, 6 March 2012
Slow performance with Outlook and multiple mailboxes
Well the issue is that Outlook only caches the mailbox to an OST file in cached mode for the primary mailbox, it will not do this for subsequent mailboxes so they are accessed by MAPI and that is just not going to work over a high latency connection.
What can we do?
Well to start multiple mailboxes are not really a great idea, try to talk about Distribution Groups and SharePoint as a way to collaborate, but if you have no choice then I would crate a second Outlook profile for that mailbox and make the user switch profiles, then you can have a cached mode OST for the secondary mailbox and Outlook will perform correctly.
How IT is supposed to work and how IT has to work are often two different things.
Sunday, 4 March 2012
Monitoring Bandwidth using Net Flows on Cisco Routers Part 1
Friday, 2 March 2012
Terminal Services - Client Redirection under Windows 2008
I spent some time one day pulling my hair out because I could not redirect the clipboard to a Windows 2008 Server, so here is where you can enable and disable Client redirection so you can check this carefully and not suffer the frustration I did.
Remote Desktop Suite
This is the suite of applications that make up the Remote Desktop Services, the ones we need to look at are Terminal Server Configuration, TS Gateway Manager, TS RemoteApp Manager
Terminal Server Configuration
This is the most common place to make this change, here you can enable and disabled client redirection options.
TS RemoteApp Manager
In the TS RemoteApp Manager you can select the devices that will be available to the remote session users.
TS Gateway Manager
This was the place I had missed and caused me to spend an hour on this! The Connection Authorization Policy can also manage the client redirection.
Connection Authorization Properties
It was here that when I set this up I for some reason decided to disable all client device redirection. I must have been having a meglomaniac moment! With all the three settings in harmony I can now redirect the clipboard and printers.
Monday, 27 February 2012
Exchange 2007 Extended Protection Warning
This is because you need the Update Rollup 5 for Exchange 2007 Service Pack 3 as documented here.