Calgarypuck Forums - The Unofficial Calgary Flames Fan Community

Go Back   Calgarypuck Forums - The Unofficial Calgary Flames Fan Community > Main Forums > The Off Topic Forum
Register Forum Rules FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 12-13-2006, 02:33 PM   #1
JohnnyO
Scoring Winger
 
JohnnyO's Avatar
 
Join Date: Feb 2004
Location: Calgary, AB
Exp:
Default Need IT Help for MSSql Server

(I am by no means an IT person I have some basic SQL skills. So bare with me here)

I have received a database file GP.MDF from GreatPlains Accounting Software. I understand that this is a MSSql Server file. We don't have a GP licence but we do have MSSql Server.

Is it possible to load this on to MSSql Server and then query the tables using something like Toad or SQL+? How do you add the database if you can do this?

Thanks
John
JohnnyO is offline   Reply With Quote
Old 12-13-2006, 02:44 PM   #2
Bobblehead
Franchise Player
 
Bobblehead's Avatar
 
Join Date: Jul 2005
Location: in your blind spot.
Exp:
Default

I can't offer too much advice - I work with Oracle and don't have much Sql Server experience. You should be able to start the database up, but unless you have the passwords you will not be able to access the data. Even then, data may be tricky to read unless you know the relations.
__________________
"The problem with any ideology is that it gives the answer before you look at the evidence."
—Bill Clinton
"The greatest obstacle to discovery is not ignorance--it is the illusion of knowledge."
—Daniel J. Boorstin, historian, former Librarian of Congress
"But the Senator, while insisting he was not intoxicated, could not explain his nudity"
—WKRP in Cincinatti
Bobblehead is offline   Reply With Quote
Old 12-13-2006, 02:53 PM   #3
socalwingfan
Retired
 
socalwingfan's Avatar
 
Join Date: May 2004
Location: Pacific Ocean
Exp:
Default

If it is a single file database you can use:

EXEC sp_attach_single_file_db @dbname = 'xxx',
@physname = 'c:\Data\gp.mdf'
socalwingfan is offline   Reply With Quote
Old 12-13-2006, 02:58 PM   #4
JohnnyO
Scoring Winger
 
JohnnyO's Avatar
 
Join Date: Feb 2004
Location: Calgary, AB
Exp:
Default

Quote:
Originally Posted by socalwingfan View Post
If it is a single file database you can use:

EXEC sp_attach_single_file_db @dbname = 'xxx',
@physname = 'c:\Data\gp.mdf'

Thanks for your help, It is a single file database probably with serveral tables within it, but I have no idea what that means or where to run that.
JohnnyO is offline   Reply With Quote
Old 12-13-2006, 03:04 PM   #5
socalwingfan
Retired
 
socalwingfan's Avatar
 
Join Date: May 2004
Location: Pacific Ocean
Exp:
Default

You need to be a SQL Administrator on the server you want to create the database on, and run the command from the Query Analyzer interface.
socalwingfan is offline   Reply With Quote
Old 12-13-2006, 03:11 PM   #6
JohnnyO
Scoring Winger
 
JohnnyO's Avatar
 
Join Date: Feb 2004
Location: Calgary, AB
Exp:
Default

Hey Socialwingfan is that the correct syntax for referring to the file, again thanks for your help

Server: Msg 5105, Level 16, State 4, Line 1
Device activation error. The physical file name 'c:\GPdata.mdf' may be incorrect.
JohnnyO is offline   Reply With Quote
Old 12-13-2006, 04:36 PM   #7
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

You have to make sure the file name you give it is the real path and name of the file.

Also, I tried to do this on a MSSQL 2005 server with a MSSQL 2000 database file and had problems, so version might matter.

Hey socalwingsfan if you ever have time and access to MSSQL servers I've got a MSSQL 2000 database file that I'd like to get the data from; it's the database for this forum before the move to the new software. If I could get a SQL dump from that I could get all those posts back
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 12-13-2006, 04:45 PM   #8
kobafett
Scoring Winger
 
kobafett's Avatar
 
Join Date: Feb 2006
Location: Calgary
Exp:
Default

Hey Photon you could probably attach the database to MSDE 2000 and then do the SQL dump. If not we have a test MSSQL 2000 server here that I could give it a try on.
__________________
kobafett is offline   Reply With Quote
Old 12-13-2006, 04:56 PM   #9
FLAMESBURNOIL
Lifetime Suspension
 
Join Date: Jul 2003
Exp:
Default

what SQL version is it? You should be just able to restore it....if you want you can send it to me and i can give you a SQL dump....gotta be ms sql 2000 though
FLAMESBURNOIL is offline   Reply With Quote
Old 12-13-2006, 07:07 PM   #10
MacDougalbry
Lifetime Suspension
 
Join Date: Mar 2006
Exp:
Default

...
MacDougalbry is offline   Reply With Quote
Old 12-13-2006, 08:14 PM   #11
socalwingfan
Retired
 
socalwingfan's Avatar
 
Join Date: May 2004
Location: Pacific Ocean
Exp:
Default

Quote:
Originally Posted by photon View Post
You have to make sure the file name you give it is the real path and name of the file.

Also, I tried to do this on a MSSQL 2005 server with a MSSQL 2000 database file and had problems, so version might matter.

Hey socalwingsfan if you ever have time and access to MSSQL servers I've got a MSSQL 2000 database file that I'd like to get the data from; it's the database for this forum before the move to the new software. If I could get a SQL dump from that I could get all those posts back
If you still need help shoot me a PM - i should be able to help you out no problem
socalwingfan is offline   Reply With Quote
Old 12-13-2006, 09:40 PM   #12
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

Quote:
Originally Posted by kobafett View Post
Hey Photon you could probably attach the database to MSDE 2000 and then do the SQL dump. If not we have a test MSSQL 2000 server here that I could give it a try on.
Hm, never thought about that! I'll give that a try and if that doesn't work I'll give you guys a shout.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 04:43 AM.

Calgary Flames
2024-25




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2021 | See Our Privacy Policy