Forum Moderators: phranque
it is a database that i just want to open
Just something to bear in mind:
SQL server database is a completely different animal to something like Access for example. WIth Access, you can download the database file, open it up and see the data that is being stored.
As SQL server is totally different from Access and not file based, the .sql script that you have downloaded is most likely something like a script that will create the tables on a SQL server that you have running locally, or a script that contains a query.
However if it was SQL database you would need to enter attach it to a SQL server to make the most use of it, you can do this by moving the file to the machine running the SQL server, connecting to it via the query analyser and running the following stored procedure;
sp_attach_single_file_db 'DesiredDatabaseName', 'LocalPathToDatabaseFile'
This would attempt to attach the file "LocalPathToDatabaseFile" onto the SQL server with a database name of "DesiredDatabaseName", if it failed then it will give an error message explaining the problem.
- Tony