I have installed a sample database, specifically Northwind from http://msdn.microsoft.com/en-us/library/8b6y4c7s.aspx.
After installing the .msi file, I dont see any Northwind database in my local sql express server when using SQL Server management studio. Am i missing a step? Do i have to run some script?
From the download page:
After downloading SQL2000SampleDb.msi, extract the sample database scripts by
double-clicking SQL2000SampleDb.msi. SQL2000SampleDb.msi will extract the
database scripts and this readme file into this
default folder:
C:\SQL Server 2000 Sample Databases
So it seems to me you have to go to that folder and execute the SQL files installed there for the database to be created.
you don't mention which msi file, but most of them seem to relate to a sample database.
Which database software are you using?
From the download page on the page you linked to:
After downloading SQL2000SampleDb.msi,
extract the sample database scripts by
double-clicking SQL2000SampleDb.msi.
SQL2000SampleDb.msi will extract the
database scripts and this readme file
into this default folder: C:\SQL
Server 2000 Sample Databases
I didn't download it to see what gets extracted, but I'm betting there's a script or two that you can run to create the database. Probably a *.sql, that you can open and run in a query window.
EDIT: I just downloaded and extracted. It looks like all you need to do is execute the contents of instnwnd.sql (which should be in C:\SQL Server 2000 Sample Databases). Open a new query window (in SSMS etc.), load the file, and press F5.
Related
I have a .sqlproj (Microsoft SQL Project) folder (Git repository) which I'd like to Publish to a live database instance using command line tools.
My colleague currently does this manually using Visual Studio:
Right-click on Solution then select Rebuild solution
Right-click on database project then select Publish
Load a profile from a .XML file (containing database connection string and a few other options)
Hit Publish to build this database on to the server specified in .XML file
How can I replicate this using command line tools? Preferably I would use Linux, but I'm open to using Windows options too as long as the process is fully automated.
Thanks in advance
I have a plesk account and an MS SQL database from which I got a dump through this interface they provide:
So I downloaded the dump file but it does not come as a .txt file but it comes without any extension and when I try to import it in my local MS SQL Server it fails always.
And when I try to open the dump file with notepad it shows weird characters(see picture below).
What am I doing wrong?
I got it to work by extracting the dump file from the zip and renaming it with a .bak extension. Then did a Database restore in MS SQL Management Studio and selected this backup file (.bak). Hope that helps.
I finally found my way using a php script found on github I had to fork it to update couple things cause it became obsolete.
I had to go this way for couple reasons:
I didn't have admin access to the plesk server to enable remote DB access
I wasn't able to export it into any format readable by mysql
So with the php script i could load it unto the server and run it,
The script copies an MSSQL into MySQL. Here is my fork.
From my understanding when extracting a sql database as a dacpac it includes the data structure with views/procs etc but no data.
a bacpac includes the structure and data but cannot be upgraded.
I read some where that dacpacs can include data now but I cannot find anywhere that shows how to do that. Is this possible?
Yes, it is possible! Easy way to include data in DACPAC is to use SQL Server Database project in Visual Studio:
Add data to post-deployment script (INSERT command etc.).
Build the project - it gaves you a DACPAC file.
Go to SQL Server Management Studio.
Execute Databases -> Deploy Data-tier application command:
Now you have a new database with data from a single DACPAC file!
I have created a program in C# which is connected with the database in SQL server as localhost. When I create setup file with instalShield, the program successfully installed, but it doesn't show the data from database and as such can not be used fully.
Can you help me what should I do to make a full setup.exe which can install everywhere including all files and database?
You can use from setup factory soft ware .
It's powerful for create setup.
http://download.cnet.com/Setup-Factory/3000-2216_4-10002374.html
Is it possible to access the queries and procedures in a file created by SQL Server without installing SQL Server? Problem is that I am having problems to install the SQL server / Express version.
When all else fails - always try to open files in notepad and see what happens.
In this case, .sql files definitely can be opened with notepad - they are just text files. The extension is just there to give you the ability to double-click on them and by default open in Management Studio (or whatever you want to use to edit SQL files).