SSIS SQL Server to Excel - sql-server

I am trying to use SSIS to export a BigInt data type from SQL Server 2016 to Excel 2016 (.xlsx).
I'm having trouble with mapping the BigInt column to Excel. What is the data type to use for Excel?
Thanks

Related

Data Connection between Excel and SQL Server

I have a dataset in Excel which I have imported in SQL Server. Is there a way in which when I make any change in the Excel data set like add/remove/edit rows or columns in Excel, then it gets automatically updated in the SQL Server? How do I establish this dynamic connection for data coming from Excel to SQL Server (in that direction)?

Copy arabic data from old SQL server database

I have existing data in SQL Server 2008 that has Arabic data in varchar column that I need to copy to SQL Server 2014. When I query the data I see text like èíë¢ïëë¢é Is there a solution. Can I do it through C# application.
I have tried INSERT using Arabic Collation on the source, bcp utility to export using codepage 1256.

Using SQL Server bcp to migrate data from datetime to datetimeoffset

I have two tables with almost the same structure, one in SQL Server 2005 and the other in SQL Server 2016. The only difference is that column ModifiedDate is of type datetime in SQL 2005 and datetimeoffset in SQL 2016.
I used bcp to export the data from SQL 2005 in native format to a file. Then I tried to use bcp to import the data file to SQL 2016. I got error:
[ODBC Driver 11 for SQL Server] Invalid field size for datatype
If I removed ModifiedDate column, export/import would run without any errors.
Does anybody know how to solve the problem?
When you export with BCP, instead of doing an OUT export directly for a table, do a QUERYOUT export with a query that converts the DATETIME field to a field with a format that is convertible to DATETIMEOFFSET.

Read XML data into SQL Server database

I have created an Adobe LiveCycle form that collects the form data into an XML file. I would like to read this XML data into a SQL Server 2008 database. The format of the data is a parent table with 2 child tables. What are the options for getting the data into a database.
Your question is nearly identical to Importing data from XML file to SQL database.
You could try the 2008 version of the SQL Server Import/Export Wizard.
If you know how to write code, almost every programming language has a way to talk to a database and SQL server should be supported by all of them.
There are 2 ways read data from xml file For SQL Server 2008
1.Using xquery
2.Using OpenXML
How do you read XML column in SQL Server 2008?
Read XML document stored in SQL Server 2008 R2 with XML datatype
http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/
http://blog.wharton.com.au/2011/05/27/part-2-openxml-what-is-it-and-how-do-i-use-it/

How to insert multiple records from Vb.net to SQL Server 2005 table?

I have 40000 records in my DataTable. I want to insert all the records into SQL Server.
I am using vb.net 2008 and SQL Server 2005.
Currently I am using XML to pass from vb.net to SQL Server 2005 but it will give me network error. Is there any other way I can achieve this ?
Look at the SqlBulkCopy class:
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlbulkcopy.aspx

Resources