| |

VerySource

 Forgot password?
 Register
Search
View: 858|Reply: 5

Which brother wrote adomd.net?

[Copy link]

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-2-12 11:30:01
| Show all posts |Read mode
Which brother wrote adomd.net? I want to ask, how to write the database connection string in amodd.net? I'm talking about complete strings
What I wrote is not comprehensive enough "
Data Source = LOCALHOST; Initial Catalog = TestMDX; Provider = msolap;

Hope you all help! !! !! !!
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-8-5 10:30:01
| Show all posts
The problem has been solved! ! ! ! ! ! ! ! !
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-5 22:00:01
| Show all posts
Can you write it down and share it together?
I am also doing it, but .Open("provider=msolap;data source=localhost") cannot read the multidimensional database. I don't know what went wrong in this sentence?
^-^
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-8-12 10:15:01
| Show all posts
//datagrid binding display
    public void Testing()
    {
        string commandString = "select{[Measures].[ZHANGSHU],[Measures].[Money]} on columns,{[Area].[Area Name].&[白水],[Area].[Area Name].&[澄城],[Area].[Area Name].&[大uli],[Area].[Area Name].&[Weinan],[Area].[Area Name].&[潼关],[Area ].[Area Name].&[蒲城],[Area].[Area Name].&[华阴],[Area].[Area Name].&[华县],[Area].[Area Name ].&[合阳],[Area].[Area Name].&[韩城],[Area].[Area Name].&[富平]} on rows from [test mdx]";
        //string commandString = Session["UserTypePicture"].ToString();
        string ss = "Data Source=LOCALHOST;Initial Catalog=TestMDX;Provider=msolap;";
        AdomdConnection conn = new AdomdConnection(ss);
        Microsoft.AnalysisServices.AdomdClient.AdomdDataAdapter adp = new Microsoft.AnalysisServices.AdomdClient.AdomdDataAdapter(commandString, conn);

        DataSet ds = new DataSet();
        adp.Fill(ds);

        DataGrid1.DataSource = ds.Tables[0].DefaultView;
        DataGrid1.DataBind();



    }
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-28 18:00:01
| Show all posts
It doesn't seem to be that simple, hehe.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-1 18:45:02
| Show all posts
Learn. . . Is this written in java? It's a class
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list