Export database from SQL Server Management Studio - sql

I've managed to 'Restore' my database using the SQL Server Management Studio.
I now need to export that so I can import it into my websites empty database.
I've tried Tasks/Generate Scripts but I can't import the file it generates into my database on my site.
I get the following error message:
Could not find stored procedure 'xxx'
I've also tried to Export Data but I don't appear to get a result at the end of the process. Possibly because I'm using the free version of the software?
Are there any other ways to export this data into a .sql file so I can import it?
I'm just moving a site from one server to another - it shouldn't be this difficult!
Any help would be really appreciated!

Try the Microsoft SQL Server Database Publishing Wizard. Available at:
http://www.microsoft.com/en-us/download/details.aspx?id=5498
Use the generated .SQL file with these steps:
http://www.123-reg.co.uk/support/answers/Databases/Windows-MSSQL/how-do-i-import-export-a-mssql-database-793/

I don't know if you've managed to resolve this but I have found that the SQL file saved from SSMS is in Unicode format and the 123-Reg website is expecting plain text. This is what's causing the "Could not find stored procedure..." error message.
Instead of saving the file, copy and paste the text from SSMS into Notepad, then save that. The file should then upload correctly into the remote database.

Related

How to run .sql file in Oracle SQL developer tool to import database?

I have exported database from Oracle SQL developer tool into .sql file. Now I want to run this file which is of size 500+ MB.
I read about running scripts here, but I didn't understand the way. Is there any command or query by which we can run this sql script by providing path?
You could execute the .sql file as a script in the SQL Developer worksheet. Either use the Run Script icon, or simply press F5.
For example,
#path\script.sql;
Remember, you need to put # as shown above.
But, if you have exported the database using database export utility of SQL Developer, then you should use the Import utility. Follow the steps mentioned here Importing and Exporting using the Oracle SQL Developer 3.0
You need to Open the SQL Developer first and then click on File option and browse to the location where your .sql is placed. Once you are at the location where file is placed double click on it, this will get the file open in SQL Developer. Now select all of the content of file (CTRL + A) and press F9 key. Just make sure there is a commit statement at the end of the .sql script so that the changes are persisted in the database
You can use Load function
Load TableName fullfilepath;

How can I export a SQL Server 2008 database?

Is it possible to export my database that i created in SQL Server 2008 Express?
I'm asking this because I need my group mate to be able to work on the same one. I know you can generate a script for the database but it give a bunch of errors when we try to run it.
You can right click the dbase then Task->Backup
This will generate a .bak file which you can
Task->Restore to a new database
You can refer here
http://msdn.microsoft.com/en-us//library/ms187048.aspx
Yes. You can export your sqlserver database by using these steps.
Right click on your database and hover on Tasks, you got another dropdown, Select Back Up.
You got a pop-up like this.
Click on OK button.
Navigate to path on your local PC (C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Backup\your database)
You got your exported database.
Back it up on disk, give a copy of the file to your friend and tell him to restore a database from that copy.
See this article for more help
Yes,export database from sql server 2008 express is possible..
create backup file and export it.

Import .sql file in Access

I need to import to Access a .sql database backup file created with MySql .
Is there a way to perform this operation?
You can't restore a MySQL backup into any other database system.
If you want to import the MySQL data into Access, you could export it all into CSV files and import those to Access. You will still need to recreate relationships, defaults, indexes (?) and other data.
You can import SQL Server data into a new Access table. In general, importing is a way to convert data from a different format and copy it into Access. The source table or file is not altered in this process. You can import directly from a SQL Server database using an ODBC connection, a text file exported from SQL Server, or an XML file exported from SQL Server.
To make frequent import operations more convenient, you can automate them by creating a macro or creating a Microsoft Visual Basic for Applications (VBA) procedure. This is useful, for example, when you import data on a regular schedule or you have unusual or complex requirements for importing data.
if you use SQL Server Management studio then you can open the .SQL files and it will give you help in figuring out what syntax works in SQL -- and which doesn't.
For example, if you have a table name that is mis-spelled, SQL Server Management Studio will give you red squigglies under that table name.
I don't see that functionality in Access, and I don't think that it's coming any time soon. Access (Jet) hasn't gotten any new features in almost fifteen years.

sql server 2008: importing data from excel 2003 file

i have a very simple excel file that i need to import into a table in sql server 2008.
one of the fields is a bit complex and i dont think it can be saved effectively to a csv, since it sometimes has comas and single quotes in it. it screwed up the formatting when i save to a csv. so i would like to try to import directly from the xls file.
does anyone know how to import from xls to sql server ?
For Express, run C:\Program Files\Microsoft SQL Server\100\DTS\Binn\DTSWizard.exe
try using the sql server management studio
right click in your database -> Tasks -> Import Data..
check this link for more info
How to: Run the SQL Server Import and Export Wizard
SQL Server has an import wizard that works with .xls files.
The import wizard generates an SSIS package for you. If you want more control, you can create the SSIS package yourself in Visual Studio.
SQL Server Integration Services for the win. Check this out!

How to convert a database file (.sql) to a .mdf file?

I have a database that was given to me, but is in a file format (.sql). I want to open it in my SQL Server, but I don't know how, because it says i need a .mdf file?
Can someone help?
Open up the .sql file - if it contains SQL code in plain text, you have most likely received the database as a create script. Run it in SQL Server Management Studio.
A .sql file is (usually) just a series of SQL commands that you execute on the SQL server using your preferred GUI or CLI. Try opening it in Notepad to see what I mean.
Click on the data base.
Right click displays drop down menu.
Select execute SQL file.
Search for your .SQL file
Click on start button
Click close.
Press F5.
.Sql file is just a random file holding some SQL queries. While .mdf and .ldf are Microsoft SQL Server Database files which hold an entire database.
Run your file in SQL Server Management Studio.