473,388 Members | 1,327 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

sintassi per Creare un file .cub a partire da un cubo mssql

Sto usando vb6 per creare un file .cub a a partire da una query:

LOCATION= d:\Test.cub;
SOURCE_DSN = "Provider=MSOLAP.2;Data Source=data-center;Initial
Catalog=FoodMart 2000";
CREATECUBE=CREATE CUBE LocalCube (
DIMENSION [Customers]
,LEVEL [Country] OPTIONS(SORTBYNAME)
,LEVEL [State Province] OPTIONS(SORTBYNAME)
,LEVEL [City] OPTIONS(SORTBYNAME)
,LEVEL [Name] OPTIONS(SORTBYNAME)
,DIMENSION [Promotion Media]
,LEVEL [Media Type] OPTIONS(SORTBYNAME)
,DIMENSION [Store Size in SQFT]
,LEVEL [Store Sqft] OPTIONS(SORTBYNAME)
,MEASURE [Unit Sales] Function SUM FORMAT 'Standard' TYPE DBTYPE_R8
,MEASURE [Store Cost] Function SUM FORMAT 'Standard' TYPE DBTYPE_R8
,MEASURE [Store Sales] Function SUM FORMAT 'Standard' TYPE DBTYPE_R8
,MEASURE [Sales Count] Function SUM FORMAT 'Standard' TYPE DBTYPE_R8
,MEASURE [Store Sales Net] Function SUM FORMAT 'Standard' TYPE
DBTYPE_R8
);
INSERTINTO=INSERT INTO LocalCube(
[Customers].[All Customers].[Canada].NAME,
[Customers].[All Customers].[Canada].KEY
,[Customers].[Country].NAME
,[Customers].[Country].KEY
,[Customers].[State Province].NAME
,[Customers].[State Province].KEY
,[Customers].[City].NAME
,[Customers].[City].KEY
,[Customers].[Name].NAME
,[Customers].[Name].KEY
,[Promotion Media].[All Media].[Bulk Mail].NAME
,[Promotion Media].[All Media].[Bulk Mail].KEY
,[Promotion Media].[Media Type].NAME
,[Promotion Media].[Media Type].KEY
,[Store Size in SQFT].[All Store Size in SQFT].[].NAME
,[Store Size in SQFT].[All Store Size in SQFT].[].KEY
,[Store Size in SQFT].[Store Sqft].NAME
,[Store Size in SQFT].[Store Sqft].KEY
,[Measures].[Unit Sales]
,[Measures].[Store Cost]
,[Measures].[Store Sales]
,[Measures].[Sales Count]
,[Measures].[Store Sales Net]
)
SELECT [Sales].[Customers].[All Customers].[Canada],
[Sales].[Customers].[All Customers].[Canada!KEY]
,[Sales].[Customers:Country]
,[Sales].[Customers:Country!KEY]
,[Sales].[Customers:State Province]
,[Sales].[Customers:State Province!KEY]
,[Sales].[Customers:City]
,[Sales].[Customers:City!KEY]
,[Sales].[Customers:Name]
,[Sales].[Customers:Name!KEY]
,[Sales].[Promotion Media].[All Media].[Bulk Mail]
,[Sales].[Promotion Media].[All Media].[Bulk Mail!KEY]
,[Sales].[Promotion Media:Media Type]
,[Sales].[Promotion Media:Media Type!KEY]
,[Sales].[Store Size in SQFT].[All Store Size in SQFT].[]
,[Sales].[Store Size in SQFT].[All Store Size in SQFT].[!KEY]
,[Sales].[Store Size in SQFT:Store Sqft]
,[Sales].[Store Size in SQFT:Store Sqft!KEY]
,[Sales].[Measures:Unit Sales]
,[Sales].[Measures:Store Cost]
,[Sales].[Measures:Store Sales]
,[Sales].[Measures:Sales Count]
,[Sales].[Measures:Store Sales Net]
from [Sales]

nel momento in cui eseguo il codice che esegue la query di sopra
ottengo l' errore: "L'espressione di colonna non può coinvolgere più
di una tabella,vicino a [Sales].[Costumers].[All Costumers].[Canada]"
mi viene da pensare che ci sia un errore di sintassi,ma del resto in
quale altro modo posso prendere un cubo e metterlo su un file .cub
così com' è senza alcuna modifica?
Grazie in anticipo.
Jul 20 '05 #1
0 1826

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Murtix Van Basten | last post by:
Hi, I have dumped a very large database from mysql (using mysqldump program) as a raw sql file. The reason was, convert this database to a MSSQL database. Since mysqldump creates the file as raw...
19
by: B&Wos | last post by:
Salve ragazzi, Stiamo cercando di creare un nuovo sistema operativo open source ma, abbiamo bisogno di collaboratori che ci aiutano nell' intento... se sapete programmare in C e/o in assembler o...
0
by: saretta978 | last post by:
Ciao a tutti, avrei bisogno di un aiutino!!! Dovrei creare un motore di ricerca in asp, ma non appoggiato ad un database bensì un vero e èroprio motore che data una parola chiave mi tiri fuori da...
1
by: Rizwan.Bakhshi | last post by:
Can not open mssql .bak file in ms_sql. File starts with "ti" and some weired charctor. Can some one help me on how to open this back up of mssql database. I've tried to restore this file in mssql...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
14
by: blueboy | last post by:
Hi, I am planning to automate a nighty restore of a DB on another server can someone point me in the right direction with the SQL script to modify the logical file names to the correct path and...
5
by: artev | last post by:
è possibile al click creare una casella di testo nella pagina? e se si ripete il click crearene un'altra?
4
by: priyana | last post by:
How to creare for my visual basic system setup file
11
by: Icemokka | last post by:
Hi, I'm need to upload a big file ( 600Mb+ ) to a BLOB field in MSSQL 2005. My code looks like this : fs = New FileStream(sFilePath, FileMode.Open) Dim ByteArray(fs.Length) As Byte...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.