dbTalk Databases Forums  

How to start MDX Sample Application with connection string

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss How to start MDX Sample Application with connection string in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kaisa M. Lindahl Lervik
 
Posts: n/a

Default How to start MDX Sample Application with connection string - 04-07-2006 , 08:11 AM






Does anyone know the format of the connection string that works with MDX
Sample Application? When starting it from the command prompt with /?, I get
the following message:
---------------------------
MDX Sample Application
---------------------------
MDXSample Usage:

/C <ConnectionString> Connect to the given data source

/F <FileName> Open the given query file

/R Run all queries in the specified file (requires /F and /C)
---------------------------
OK
---------------------------

If I try starting it with the following parameters...
"C:\Program Files\Microsoft Analysis Services\Bin\mdxsampl.exe"
/C"osl-win-vm201;provider=MSDASQL"

I get the following error:
---------------------------
MDX Sample Application
---------------------------
Unable to establish connection.

[Microsoft][ODBC Driver Manager] Data source name not found and no default
driver specified
-------------------------
OK
---------------------------

Same goes for trying to do start it with
"C:\Program Files\Microsoft Analysis Services\Bin\mdxsampl.exe"
/CSERVER=osl-win-vm201;provider=MSDASQL

Does anyone know how the /C parameter should be written? All help
appreciated!

Kaisa M. Lindahl Lervik



Reply With Quote
  #2  
Old   
Akshai Mirchandani [MS]
 
Posts: n/a

Default Re: How to start MDX Sample Application with connection string - 04-07-2006 , 04:24 PM






"C:\Program Files\Microsoft Analysis Services\Bin\mdxsampl.exe" /C
"Provider=MSOLAP;Data Source=localhost"

You are connecting to an Analysis Server -- you should use the correct
provider...

Thanks,
Akshai
--
This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"Kaisa M. Lindahl Lervik" <kaisaml (AT) hotmail (DOT) com> wrote

Quote:
Does anyone know the format of the connection string that works with MDX
Sample Application? When starting it from the command prompt with /?, I
get the following message:
---------------------------
MDX Sample Application
---------------------------
MDXSample Usage:

/C <ConnectionString> Connect to the given data source

/F <FileName> Open the given query file

/R Run all queries in the specified file (requires /F and /C)
---------------------------
OK
---------------------------

If I try starting it with the following parameters...
"C:\Program Files\Microsoft Analysis Services\Bin\mdxsampl.exe"
/C"osl-win-vm201;provider=MSDASQL"

I get the following error:
---------------------------
MDX Sample Application
---------------------------
Unable to establish connection.

[Microsoft][ODBC Driver Manager] Data source name not found and no default
driver specified
-------------------------
OK
---------------------------

Same goes for trying to do start it with
"C:\Program Files\Microsoft Analysis Services\Bin\mdxsampl.exe"
/CSERVER=osl-win-vm201;provider=MSDASQL

Does anyone know how the /C parameter should be written? All help
appreciated!

Kaisa M. Lindahl Lervik




Reply With Quote
  #3  
Old   
Kaisa M. Lindahl Lervik
 
Posts: n/a

Default Re: How to start MDX Sample Application with connection string - 04-10-2006 , 02:10 AM



Brilliant! Works like a charm.

Not quite sure where I got the provider=MSDASQL. MSOLAP off course makes
more sense.

Kaisa M. Lindahl Lervik


"Akshai Mirchandani [MS]" <akshaim (AT) online (DOT) microsoft.com> wrote

Quote:
"C:\Program Files\Microsoft Analysis Services\Bin\mdxsampl.exe" /C
"Provider=MSOLAP;Data Source=localhost"

You are connecting to an Analysis Server -- you should use the correct
provider...

Thanks,
Akshai
--
This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for
newsgroup
purposes only.

"Kaisa M. Lindahl Lervik" <kaisaml (AT) hotmail (DOT) com> wrote in message
news:uSuUQTkWGHA.4972 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Does anyone know the format of the connection string that works with MDX
Sample Application? When starting it from the command prompt with /?, I
get the following message:
---------------------------
MDX Sample Application
---------------------------
MDXSample Usage:

/C <ConnectionString> Connect to the given data source

/F <FileName> Open the given query file

/R Run all queries in the specified file (requires /F and /C)
---------------------------
OK
---------------------------

If I try starting it with the following parameters...
"C:\Program Files\Microsoft Analysis Services\Bin\mdxsampl.exe"
/C"osl-win-vm201;provider=MSDASQL"

I get the following error:
---------------------------
MDX Sample Application
---------------------------
Unable to establish connection.

[Microsoft][ODBC Driver Manager] Data source name not found and no
default driver specified
-------------------------
OK
---------------------------

Same goes for trying to do start it with
"C:\Program Files\Microsoft Analysis Services\Bin\mdxsampl.exe"
/CSERVER=osl-win-vm201;provider=MSDASQL

Does anyone know how the /C parameter should be written? All help
appreciated!

Kaisa M. Lindahl Lervik






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.