You may want to share the errors that you are getting.
You have to fix them one by one, unless one builds upon the other.. which nobody can tell from this description.
Generally it should work like that.
Andreas
---------------------------------------------------
MVP SQL Server
Microsoft Certified Master SQL Server 2008
Microsoft Certified Solutions Master Data Platform, SQL Server 2012
www.insidesql.org/blogs/andreaswolter
www.andreas-wolter.com