How to covert a mdf into excel sheet - c++

i have installed SQL server Express Edition 2005
by using my application i am saving data in tables which is created in SQL Server
so that i have to copy in that data in to excel file
any please help me
how to do this

Read data from MsSql table and write each row into CSV file.

Related

Migrating a Power BI Desktop file to Analysis Services

Is it possible to convert a .pbix file into a .bim file while preserving all the data connections and expressions / shared expressions?
I have a power bi file I’ve exported into a .pbit file then loaded into Tabular Editor and saved as a .bim file and then loading the .bim file into SSDT visual studio 2015. My compatibility level is 1400.
The problem is that when I am converting from .pbix into .pbit that I lose data connections and shared expressions. The data connections are saved as “mashup” connection strings inside the database which reference back to the instance of power bi desktop I had open
How can I have these data connections remain as Oracle or SQL server connections?
You can import a .pbix file into Azure Analysis Services. At that point, it becomes a regular Tabular model that you can download as an SSDT project (including the Model.bim file). However, you'll have to pay for the Azure Analysis Services instance during this operation.
Other than that, I guess you could ask the author of Tabular Editor to provide this functionality.

How to upload adventureworks data into sas

I wonder if one of you can help me on how to upload all adventureworks database (every table) into SAS Studio?
I would like to work on adventureworks using sas base
All you need to do is create a libname reference to your database - I don't recommend creating SAS tables from the raw SQL Server data.
Example libref (using OLE DB):
libname &libref OLEDB
PROPERTIES=&sql_properties
DATASOURCE=&sql_dsn
PROVIDER=&sql_provider
SCHEMA=&sql_schema
authdomain="&sql_domain"
connection=shared;
You will need to set the relevant variables as per your environment.
It took a few years.. And the development of sasjs.. But finally, AdventureWorks for SAS is here!
Just run these two lines of code and the 5 AdventureWorks schemas will be created as different libraries under WORK:
filename mc url "https://raw.githubusercontent.com/sasjs/AdventureWorks/main/runme.sas";
%inc mc;
Just modify that file to make permanent libs / datasets. More info in the readme: https://github.com/sasjs/adventureworks

How to read data from password protected excel file with informatica

Pl help me to read data from a password protected excel file with informatica
Basically i need to convert excel to csv and read with informatica
Thanks
Never done that, but I would do as follows.
Excel is accessible using ODBC. So define a ODBC data source in the server
(you would probably have to define a NAME in excel to delimitate the area you want imported).
Using (in Designer). Source->Import from database
you can then create the Source and specify the password.

Anyone using a web service as a data source in Excel 2007?

Can I use a web service as a data source for creating Excel pivot tables?
Currently, the soure data for the pivot table is being exported from our SQL db to a CSV file. Then, the CSV file is loaded into a worksheet. From there, a pivot table is created in the same workbook.
Customers login to a website, click some links, and an excel file (with data and pivot table) is generated. This is a public app so the preference is to not connect directly to the DB.
We control the database and generate the output. We are looking to streamline this process. The SQL db and pivot tables can not / will not change.
See http://www.vertex42.com/News/excel-web-query.html
What format does the "public-facing website" use in making the data available? A data file, a table on a web page? This issue will determine how much of a scraping operation you'll need to do.
You'll still need to write the web service and have it run on a server. A possible alternative is to use Yahoo Pipes to do the conversions for you.

Can you use a SAS dataset as a SSIS data source?

We have a some ETL processes that read CSV files that are output from SAS programs. I'm in the process of upgrading one of these ETLs and was wondering if I could use SSIS to read directly from the SAS dataset.
Has anybody done this successfully?
See here
"You can use SAS Local Data Provider (can be downloaded separately and comes as part of SAS for Windows installation). "
Recently I've moved data from SAS environment:
In connection manager I choose _Native OLE DB\SAS Local Data Provider 9.3_
Enter file name (`\..\dev` before the table name). Click OK
Drag _OLE DB Source_ into the Data Flow
Right click on _OLE DB Source_ and choose _Show advanced editor_
In the first tab (_Connection Manager_) choose _SAS Connection Manager_ from drop down list you created now
In the Component Properties tab in _OpenRowset_ write the name of the table, click OK
If you have `datetime` type transform it using Derived Transformation Editor
For loading SAS XPT or SAS7BDAT data files without having an instance of SAS to connect to via OBDC we used the following
A third party tool (STATTransfer) to read the XPT file
STATTransfer ODBC driver
Setup the connection in SSIS as an ODBC datasource and load into the database for processing.
There are SAS datasource SSIS extension available http://www.cozyroc.com offer a SAS Data connection, but they where outside our price range