SQL .bak file problem |
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Forum Member
Join Date: Mar 2007
Location: Manchester, UK
Services: Virgin Media TV, Phone, BB.
Posts: 623
|
SQL .bak file problem
Hi
I am doing some private work for a client who sent me a .bak file which is a backup file from an sql database. I have sql server management studio installed which when I am connected to my office automatically connects to a datawarehouse over a network. I have the .bak file stored locally and dont think I have sql server management studio connected to a localhost. I am struggling in opening this file and I need to eventually get the data into excel. I am a novice using SQL and can do basic queries. Please can someone help me with advising me on how I do restore the backup ito sql server management studio? Thank you. |
|
|
|
Please sign in or register to remove this advertisement.
|
|
|
#2 |
|
Forum Member
Join Date: Sep 2003
Location: Sandy Heath, Beds, UK
Posts: 5,067
|
You restore the bak file into the default instance in Management Studio.
I don't know much more about SQL than you do, but I know how to use Google! |
|
|
|
|
|
#3 |
|
Forum Member
Join Date: Mar 2006
Services: A hoover or some other generic vacuum cleaning machine.
Posts: 27,855
|
Why would you restore SQL into a spreadsheet?
|
|
|
|
|
|
#4 |
|
Forum Member
Join Date: Mar 2007
Location: Manchester, UK
Services: Virgin Media TV, Phone, BB.
Posts: 623
|
no, i would like the output from the restored database to be in excel once it has opened in sql, i can pull the data and then extract to excel.
Also, I have just intalled sql server 2005 express onto my other laptop and all I can see is configuration tools and not the programme to open up and connect to a database. Any ideas? |
|
|
|
|
#5 |
|
Forum Member
Join Date: May 2006
Posts: 19,061
|
You open SQL Management studio, connect to an instance of an SQL Server.Then one of the tasks you can perform is Restore a database, use a name that does not exist yet. You will need a version of the server at least the same or newer as is the backed up database.
|
|
|
|
|
|
#6 |
|
Forum Member
Join Date: Mar 2007
Location: Manchester, UK
Services: Virgin Media TV, Phone, BB.
Posts: 623
|
Thanks for the info. The problem I have is i cant connect to an instance on my work sql server. How do I do this on express 2005 on my home laptop?
|
|
|
|
|
#7 | |
|
Forum Member
Join Date: May 2006
Posts: 19,061
|
Quote:
http://www.microsoft.com/en-US/downl...s.aspx?id=8961 It looks like it comes separately for SQL express edition. When you start it you connect to database engine and then you can manage the server. You should be able to connect with your work server as well if you know the server (and instance) name, administrator login and password. Then the backup file must be stored locally on the server where you want to restore it. |
|
|
|
|
|
|
#8 | |
|
Forum Member
Join Date: Mar 2007
Location: Manchester, UK
Services: Virgin Media TV, Phone, BB.
Posts: 623
|
Quote:
http://www.microsoft.com/en-us/downl....aspx?id=21844 the 53mb one. I will d/load the one you suggest and uninstall my one. The one on my work laptop I dont have the laptop admin username/password as its locked down by the IT dept. |
|
|
|
|
|
#9 | |
|
Forum Member
Join Date: Jan 2009
Posts: 18,115
|
Quote:
Ivan's link is for the tools to allow you to manage the engine - ie. to backup and restore, create databases and run queries. You need both so don't uninstall your download |
|
|
|
|
|
|
#10 |
|
Forum Member
Join Date: May 2006
Posts: 19,061
|
^^^ Yes, you need both.
|
|
|
|
|
|
#11 |
|
Forum Member
Join Date: Jan 2009
Posts: 18,115
|
I was going to suggest you download SSMS 2012... but its a monster 600MBs, compared to SSMS 2005's 40MB. Intellisense must need a lot of coding!
|
|
|
|
|
|
#12 |
|
Forum Member
Join Date: Mar 2007
Location: Manchester, UK
Services: Virgin Media TV, Phone, BB.
Posts: 623
|
Thankyou both. I will install the 2nd one also. So hopefully then i can just restore the file.
|
|
|
|
|
#13 |
|
Forum Member
Join Date: Jan 2009
Posts: 18,115
|
As long as the bak file was created by a SQL 2005 or 2000 database
|
|
|
|
|
|
#14 |
|
Forum Member
Join Date: Mar 2007
Location: Manchester, UK
Services: Virgin Media TV, Phone, BB.
Posts: 623
|
I am not sure. How will i know.
|
|
|
|
|
#15 |
|
Forum Member
Join Date: May 2006
Posts: 19,061
|
|
|
|
|
|
|
#16 |
|
Forum Member
Join Date: Jan 2009
Posts: 18,115
|
It will throw some sort of 'invalid file/media' type error message if you try to restore a bak file from a newer version of SQL Server onto an older version... they're not backwards compatible.
|
|
|
|
|
|
#17 |
|
Forum Member
Join Date: Mar 2007
Location: Manchester, UK
Services: Virgin Media TV, Phone, BB.
Posts: 623
|
|
|
|
|
|
#18 |
|
Forum Member
Join Date: Jan 2009
Posts: 18,115
|
|
|
|
|
|
|
#19 | |
|
Forum Member
Join Date: Jan 2009
Posts: 18,115
|
Quote:
But try to restore it to your 2005 first... you may as well try it now you've got it installed. http://www.microsoft.com/en-us/downl....aspx?id=29062 |
|
|
|
|
|
|
#20 |
|
Forum Member
Join Date: Mar 2007
Location: Manchester, UK
Services: Virgin Media TV, Phone, BB.
Posts: 623
|
|
|
|
|
|
#21 |
|
Forum Member
Join Date: May 2011
Posts: 1,499
|
Install SSMS, create a new DB on there with the same name as the DB in the .bak file, then restore that with overwrite mode on. If the bak is from a later version you have no option (you do but it's a lot of effort) so will have to install a newer version of SSMS.
|
|
|
|
|
|
#22 |
|
Forum Member
Join Date: Mar 2007
Location: Manchester, UK
Services: Virgin Media TV, Phone, BB.
Posts: 623
|
i installed the xtra bit for 2005 and it didnt restore it. So I unstalled it and now going to try the 2008 version. I have xp service pack 3. I cant find the correct links to download similar to that i had for 2005.
Any links will be most helpful. Thanks |
|
|
|
|
#23 |
|
Forum Member
Join Date: Aug 2010
Location: Essex
Services: too many
Posts: 13,522
|
You won't be able to install 2012 on windows XP, it needs Vista or above.
you can download 2008 R2 express here, http://www.microsoft.com/en-us/downl....aspx?id=30438 And management studio here, http://www.microsoft.com/en-us/downl....aspx?id=22985 |
|
|
|
|
|
#24 | |
|
Forum Member
Join Date: Mar 2007
Location: Manchester, UK
Services: Virgin Media TV, Phone, BB.
Posts: 623
|
Quote:
|
|
|
|
|
|
#25 |
|
Forum Member
Join Date: Aug 2010
Location: Essex
Services: too many
Posts: 13,522
|
|
|
|
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
|
All times are GMT +1. The time now is 08:41.




