Importing ODBC database to MS SQL 2005 - sql-server-2005

How do I get a database from ODBC data source to SQL Server 2005? Can I use SQL Managment Studio Express for this?

Yes. Right-click on your database and go to Tasks: Import Data.

It used to be called DTS, but every SQL Server 2005/2008 comes with something called SSIS that is used to import and export data. You can import data into a database from any source, including flat text file, or .xls spreadsheet.

Related

Export files from image data type in sql server 2008

How can I export my attachments from image data type in sql server 2008 without using xp_cmdshell? , I have researched myself and found solutions with xp_cmdhell or SSIS or .net or something, isn't there any way to just do it from sql server alone?
have done exports from BLOB datatype in oracle easliy , is it not possible in sql server 2008?
Please help

How to create SQL Server import template

For example I have daily Excel (xlsx) file, which I need to import every day in MS SQL Server Express 2014 which is located in localhost. Firstly Truncate the table.
How can I create some template to import Excel file into MS SQL server?
For example it will be in folder: C:\Reports\1.xlsx
For truncate I know the query:
USE [CompDB];
GO
TRUNCATE TABLE [dbo].[Report_table];
GO
I tried to find in MSSQL Import - Export wizard some templates option, haven't found it there. Moreover, I tried to do this with Toad for SQL Server, but there are no templates available in free version.
Or maybe you know how to do this with MySQL database? It will be better choice for me.
Try the OLEDB approach
SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0','Excel 8.0;HDR=NO;Database=C:\Data\Data.xlsx','SELECT * FROM [SheetName$]')
The parameters can vary depending on your Excel version, but I think this will work for you

sql server export data tier application

I am working on SQL Server 2012 and 2014, I want to generate database's .bacpac file through Export data-tier application wizard we can generate the file and import on another server.
Is it possible to generate the .bacpac from Tsql (SQL query) syntax?
You can't do this from T-SQL as it is not a SQL function performing this operation, you can do this either from powershell or the wizard in SSMS:
Extract a DAC From a Database
Or you you can use the command line based SqlPackage.exe:
SqlPackage.exe

SQL Azure to SQL database

Most of the posts out there discuss converting a SQL database to Azure. Actually, I want to go the other way.
I have an azure database and now I want to convert it back to sql including the data. How do I do this?
Export the SQL Database out to then use SQL Server 2012 and import it using
http://msdn.microsoft.com/en-us/library/windowsazure/hh335292.aspx - How to Export
http://blogs.claritycon.com/blog/2012/06/easily-restore-sql-azure-database-to-local-sql-instance/
The above links should help.

How can I export the schema of my sql server 2008 to another computer?

I have created a database on Sql Server 2008 and I want to export the schema (I don't need the data) to another computer?
You can generate script to script out your schema to a sql file and then execute that in another server, right click on the database in management studio, select Task-> Generate Scripts