How to use a .CSV as datasource into SQL Report builder - sql-server

Has anyone been able to successfully import a .csv into SQL Report Builder? I have a Table created in PowerShell that I export as a .csv file, which I was hoping to import into Report builder as a "dataset".....anyone been able to do this? Google search has returned nothing thus far
Thanks

Related

SQL Query output cannot be exported to a CSV file

Hello I currently working with a SQL dump in Datagrip. I just wrote a SQL Query which I want to export to a CSV file unfortunately I get a error message if I try to export it the export error message as follows says:
Cannot write file: /home/NAME.csv
An hour before I successfully exported a Query with no Problems. I didn't changed a thing in the Database except for adding another table. The Table was created as a help table to write an SQL Query on the former Query
Maybe someone encountered the Problem before and there is a easy way to solve. If additional Information is needed please let me know.
Thanks.

How to Import/load password protected excel work book to tables using SSIS?

I have an excel file and I have to load the excel data into SQL tables through an SSIS package.
I have tried creating a package and added excel connection manager and excel source but the excel is showing up an error and name of the excel sheet in the drop down is not loading...
Please help. Let me know if you need any further information. Thanks!
Apparently it is not possible to connect to a pw protected excel file even though there is that property:
https://msdn.microsoft.com/en-us/library/ms139836.aspx
I did find a workaround though using powershell to open and save as...
http://www.sqlservercentral.com/Forums/Topic885800-148-1.aspx

$_xlnm#_filterdatabase files excel to sql server 2014

When I'm trying to import an excel file to SQL Server, I see another table(s) with $_xlnm#_filterdatabase.
For instance if I have
A.xlsx
as a one-sheet excel file, and I want to import it into SQL Server using SQL Server 2014 Import and Export Data, I see another table as
A$_xlnm#_filterdatabase
and for each sheet I see similar issue, except some sheets. I checked if filter is on or not. I removed all filters, but same is happening.
PS I also saw that some times the very same file, act normal without any $_xlnm#_filterdatabase files.
Could you please help me with it?
I also checked:
multi-sheet import with oledb netting "_xlnm#_FilterDatabase" as sheet names
But! I couldn't find a solution.
Thanks! :)
The best thing you can do is just ignore or drop down those sheets.
These are sheets that are not meant to be viewed by the user.
Just filter them out using this code.
if (!dt.Rows[i]["Table_Name"].ToString().Contains("_") && !dt.Rows[i]["Table_Name"].ToString().EndsWith("$'"))
{
}
Use .Contains() and/or EndsWith to filter them out.

How to import excel file which is non defined way to sql server

I'm new in c# and i feel i m in trouble.
in my project i want to import excel file to sql server 2008 but i want to user choose the excel file.i search lots of source but all of them define the way of excel file in the code,but i want to user browse and user select excel file.Then other things row -row or colomn will transfer to sql server.
On the other hand i would give information on my project,it will be good for me to explain problem.First user selects excel file and it will be imported database again user selects other excel file one by one.The importent thing is how i can give way of excel file dynamically.
if you will help,i will be grateful.
Thank you...
hi it looks like you need to use Open File Dialog box. Here is the example code how to use http://msdn.microsoft.com/en-us/library/aa969773.aspx
However, remember that if you are going to deploy this application to any server you have to bear in mind that you cant use traditional ways of initiating Excel objects and reading the data in sheets. As you will not have MS office installed on server. And if you install them you will be violating the licence. Here is an example how you can do the actual import
http://www.codeproject.com/Articles/115578/Excel-to-SQL-without-JET-or-OLE-Version-2

SQL Server: how to export a table

how can I export a SQL Server table to Mysql ? I guess I need to export a .sql file compatible...
thanks
Solution: Right Click on database Icon > Tasks > Generate Scripts
follow istructions and export a specific table as .cvs
One way is to BCP the data out into a CSV or some other format flat file and import those into mySQL.
Another way is to use a SSMS add-in called SSMS Tools Pack which has the option to generate insert statements.
please see the below link, maybe it can help you.
MSSQL to MySQL

Resources