Install SQL Server 2008 first followed by Visual Studio 2008.
Because SQL Server 2008 has some Visual studio components installed as part of the installation and that should not overwrite your Visual Studio installation..
And don't forget to Apply SP1 for both SQL Server and Visual Studio