Excel Cubes - OLAP? - sql

I am not sure if this is possible but I have a very large data set (extracted using Microsoft SQL Server Management Studio) and would like to import this into some sort of cube (OLAP?) to be analysed in Microsoft Excel (Pivot tables etc.) which is of course limited by c.1 million lines.
Ideally I would to run a query from management studio directly into a cube which is then accessed via Excel.
Thanks in advance.

You can create a Pivot Table using an external data.
Then you can give the SQL Server as a source and it would not matter that the source is with more than 1 million rows:

Related

How to extract MDX or SQL query from excel pivot table

I have an excel file reading some data from an OLAP service. The query was constructed using the GUI. How can I obtain the corresponding MDX or SQL query that excel actually communicates to the OLAP server?
You can do it through SQL server profiler. Just run the profiler on Analysis Services and run/refresh your query in Excel and you will see the MDX query in the profiler.
Right click on your pivot table -> Tools -> Show Mdx

Copying an SQL table from one Server to another on SQL Server 2000 / 2005

I’m trying to copy a SQL Server table, schema and data, from Server A to Server B. The SQL Server table is just a reference table which hasn't been populated for some reason on Server B. Can anyone advise how the entire table could be copied across please? On SQL Server 2000/2005.
So far we've tried a long-winded approach by copying the .mdf and .ldf files from Server A to Server B with a plan to then copy the table across into the Server B database but we are having some difficulty re-attaching the database to Server B.
Please can anyone help?
Kind Regards
James
Using SQL Server Management Studio (SSMS):
In Object Explorer right click on source database name, Tasks.. -> Generate Scripts.. - opens Generate and Publish Scripts dialog. Click Next to choose objects, choose "Select specific DB objects", expand Tables, choose your table. Next, setup script destination, for example New query window and (important step!!) - click Advanced, and set "Types of data to script"="Schema and data" and "Script USE DATABASE"=False, OK, Next, Next, .. wait .. Finish. Now you have got complete SQL script to reproduce this table with data. Connect to destination DB and run it.
Tested with SSMS 2014, but as I recall this feature should be available starting from SSMS 2005.
you can use the import/export data wizard in management studio, the wizard will create for you a new table in the server B with the same structure of the table in the server A. before using it you need to have at least one database in sever B.
This confirms why this is one of favourite forums.
Both these methods work beautifully :
Generate Scripts (when altering Types of data to script"="Schema and
data")
Export and Import
Interestingly Generate Scripts works with SQL Express perfectly but the Export method does not save unless you have at least SQL Server Standard Edition.
Thanks so much everyone
Cheers
James
Try this:
SELECT * INTO destination FROM source
But, it will not copy the indexes and key information or you can also try import/export data task from SSMS.

How to left join Excel table to a table in SQL Server database

I have a table (tbl1) in an Excel file with about 70k rows. I have linked that table into Power Pivot. There is another table (tbl2) in SQL Server with millions of rows that I need to left join to the table in my Excel file on
tbl1.[Member Number] = tbl2.[memid]
What query should I use to do it without having to import the whole tbl2 from SQL Server (throws error on Power Pivot due to memory constraints)?
Preferred environment is Power Pivot, but I do have SQL Sever Management Studio. I don't have WRITE permission in the server where tbl2 is located. I do however have WRITE access in a different server.
Thank you!
Import the Excel file into the SQL server where you have WRITE access, do the join there and import the data from this server. Any problem you see with this approach?
A few options spring to mind:
Get more memory/64 bit Excel and use PowerPivot as you are currently trying to do. If you are working on 32bit excel then you are effectively constrained to using 1gb of RAM whereas on 64bit you can use everything you've got. 64bit Powerpivot can potentially deal with hundreds of millions of records.
Read the SQL data and your csv into R, do the join and either write the output to your WRITE db or save as CSV to feed into PowerPivot. Although R has a steep initial learning curve, doing this kind of thing with the dplyr library is straightforward.
Dump your SQL table to csv and read both that your current csv into the WRITE db and do the join in your PowerPivot SQL query.
Which works best probably depends on the skills you have and how often you are doing this. I'd probably go down the 'R' route as you can set it up as a scheduled job.

Copy large record data from Microsoft SQL Server 2008 R2 at once

Client need with round 500,000 data in csv/xlsx format for every two month, which we currently follow the procedure by manually copy 60,000 records one time in csv/xlsx then download after passing multiple servers and finally merge all csv/xlsx in one csv, their is also chance of error while compiling all data.
We need shortcut for copying large amount data(round 500,000 records) from Microsoft SQL Server 2008 R2 in one time.
Please suggest better way.
Thanks

SQL Server Data Tools 2010 Measures Grid Values Not Showing

I'm developing a BISM Tabular Model in SQL Server Analysis Services (SP1). The tool I'm using is SQL Server Data Tools 2010 (the 2012 Version doesn't exist / work yet). My data source is a SQL Server 2012 SP1 Relational Instance
In the measures grid the results of the DAX expressions, i.e. the Measure's value, are now not being displayed. They did before. I'm not sure what I did.
An example. Say create a measure using DAX like:
Users:=DISTINCTCOUNT(UserId) // Say I have 50 UserIds
The measures grid should display
Users: 50
But it just displays:
Users
It doesn't appear to affect other any other functionality
Any Ideas? Thanks