I am trying to find how I can export certain data from one sql server (remote location, 2008 SQLExpress) and import into our sql server (SQL Standard 2008).
My first thought was to setup the remote server to use BCP queries w/ stored jobs and export data to csv files and then FTP to our location and then import. However, from what I can see stored job is not an option with SQL Express.
Is that the case?
How else could I create a solution (without buying sql licenses)?
Related
I'm attempting to modify an existing SSIS package generated by the Import/Export Wizard (64-bit) by restamping the query into the package. It calls a database on the same LAN as the calling SQL Server, but is run from a 2nd SQL server, so that the package can be called on demand for loading data from a stored procedure as part of a server job on the calling server.
Config works like this:
On server where platform data resides (MS SQL Server 2008 R2)
Database table has subset of fields from our platform, loaded and defined in the designer.
There exists a view, which calls the table and imports its data to the view
Stored Procedure is a complicated union query with a bunch of left outer joins.
On calling server (MS SQL Server 2008 R2)
Import Export wizard is used to generate SSIS package which sql server job can call on demand and periodically to load the data into the appropriate table and thus, load the view.
SQL Server job configured to use the package created/modified to load said data.
SSIS package does this (from calling server):
Source data: dbservername, SQL server authentication
Destination data: dbservername (same as above), SQL server authentication
Query: Execute _NameOfMyStoredProcedure
Note: existing package is encrypted.
When it gets to this point, it sometimes, but does not always timeout, and has not in the past, until now. The change is the addition of some columns to the SP's query that loads the data.
My Question: is there a way [ reg entry, setting value on the database, etc ] to modify the timeout value [ appears to be either 15 or 30 sec ] so that the Import/Export wizard will allow the parsing of the query so that the SSIS package can be parsed?
or alternately,
Is there a way to modify the query in design of the SSIS package without going through the import/export wizard? Note: the calling server does not have the BI studio installed.
I used to do an export (in SQL Server 2000) of an existing database to another new database, once in a while. It reduces the size of my DB as well.
But the same feature is NOT available in SQL Server 2008. I searched the Import and Export wizards in SQL Server 2008, but found only the other two options (Table/View export and Select (Query) option only), the other option 'Copy Objects and data between SQL Server databases' is not there ?
Is that moved anywhere else ?
Happiness Always
BKR Shivaprakkash
if i am not mistaken you can restore your existing database to new one just write new name in database name when you click on restore
I need to move a database from SQL Server 2008 to 2005, did the backup format changed or can I import the exported DB in the SQL Server 2005?
The database has tables, views and stored procedures, and it is not using any 2008 specific features.
If it's not possible, would setting the compatibility mode to SQL-Server 2005 (90) help in this case?
Thank you.
Select your database in SSMS, right-click, select Tasks, select Generate Scripts. In the dialog box that pops-up, enable all options, including script data and make sure you select "Script for SQL Server 2005". Execute the generated scripts on your SQL Server 2005 machine. This is workable only for a relatively small database, of course. Else, you'll have to export/import data via bcp.
You won't be able to do this - the backup file contains a version number, and SQL 2005 will refuse to restore the backup. Similarly, you won't be able to detach and reattach the raw data files.
The only option you have, short of upgrading SQL 2005 to 2008, is to export the SQL schema and sprocs using SSMS's ability to generate scripts, and then migrate the data using (for example) BCP or an SSIS package.
There will be third party tools that might be able to help with some of this (for example, a combination of Redgate's SQL Compare and SQL Data Compare). However this is something you will have to research.
I need to export about 300,000 rows from a table on MS SQL server and import into mysql on a different server (non windows).
There is some text stored in some fields and commas in the text will mess up the format if I export into txt format.
I can't install any software on the server.
You may have several options:
use SSIS or DTS Wizard on another host to interconnect MSSQL and MySQL
write your own small app to move the data
script the MSSQL DB's DATA into script file with SSMS' scripting features, adopt the script manually to mysql and run it
I'm pretty sure you can connect to MySQL from SSIS. I'd go down that route.
I've got a small SQL Server 2008 R2 *.mdf database file. I'm running Ubuntu and don't have SQL Server 2008 installed (and would prefer not to install it into my VM, if at all possible).
How can I import this data into a MySQL instance? Is this possible?
And MDF file is an internal file to SQL Server. One way to import it would be to attach it to a SQL Server and then exporting the data
SQL Integration Services
Custom Code
Using a conversion tool such as those listed in this article: Migrating from Microsoft SQL Server and Access to MySQL
However since you don't want to install SQL Server one suggestion perhaps using MONO to attach the mdf as datacontext in their equivalent of Linq2SQL and reading the data out your self.