Showing posts with label datasource. Show all posts
Showing posts with label datasource. Show all posts

Sunday, March 11, 2012

an error while trying to read .sdf file from the pc application ? please help

hi

i have a problem with reading sql mobile database existed on the pc

i made a sql mobile database connection with ( Add New Datasource ) and then set

the datasource of dataviewgrid to display the returned dataset .

at run time i have an exception said :

cann't find the library with the name sqlceme.dll as i remember ,

can you help me solving this problem because i very need this step , please ?

regards

This looks to be a Sql Mobile setup or configuration issue. Moving the thread to the Sql Mobile forum.|||

SQL Mobile did not support Windows Applications before. It was integrated only with Device Applications. However, we will be releasing SQL Server Everywhere on desktop which you can use on desktop.

See the following URL for more details:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=295034&SiteID=1

Thanks,

Laxmi Narsimha Rao ORUGANTI, MSFT, SQL Ev, Microsoft Corporation

|||Is it posible to provide a link to the thread in the Sql Mobile forum?

an error while trying to read .sdf file from the pc application ? please help

hi

i have a problem with reading sql mobile database existed on the pc

i made a sql mobile database connection with ( Add New Datasource ) and then set

the datasource of dataviewgrid to display the returned dataset .

at run time i have an exception said :

cann't find the library with the name sqlceme.dll as i remember ,

can you help me solving this problem because i very need this step , please ?

regards

This looks to be a Sql Mobile setup or configuration issue. Moving the thread to the Sql Mobile forum.|||

SQL Mobile did not support Windows Applications before. It was integrated only with Device Applications. However, we will be releasing SQL Server Everywhere on desktop which you can use on desktop.

See the following URL for more details:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=295034&SiteID=1

Thanks,

Laxmi Narsimha Rao ORUGANTI, MSFT, SQL Ev, Microsoft Corporation

|||Is it posible to provide a link to the thread in the Sql Mobile forum?

Wednesday, March 7, 2012

An array in an object class

In my object class I have an array

Public myArray() as String

I pass this object class as the datasource to reportviewer

How do I access the array from the report? (I'm using reportviewer in visual studio 2005)

Thanks!

I wanted to add that the array is visible from within the report designer, but I can't seem to access items within the array.. I've tried:

Fields!myArray(0).Value, and it just gives an error.. It seems to work with parameters, but not with the data fields... HELP!

Friday, February 24, 2012

AMO vs. ADOMD

I use AMO to programmatically create a complete database with datasource, datasourceview, dimensions, and cubes. I also have a webservice that uses ADOMD.NET to retrieve metadata about those objects (for security purposes and also for .NET 1.1 applications). However, I notice that using ADOMD's GetSchemaDataSet only return certain metadata. For example, for a dimension, it doesn't return the DimensionID or other properties I am able to set with AMO. I want to use ADOMD.NET because it returns the metadata in XML format already. With AMO, I have to serialize the dimension object. Is there any other way to retrieve additional metadata for AMO objects?

You can use "DISCOVER_XML_METADATA" with GetSchemaDataSet (this is the discover type AMO is using to get all the metadata for objects).

<RequestType>DISCOVER_XML_METADATA</RequestType>
<Restrictions>
<RestrictionList>
<DatabaseID>DataWarehouse Project1</DatabaseID>
<DataSourceViewID>Budget 1</DataSourceViewID>
<ObjectExpansion>ObjectProperties</ObjectExpansion> // can also be ExpandFull, ExpandObject or ReferenceOnly
</RestrictionList>
</Restrictions>

Adrian Dumitrascu

|||Thanks Adrian!! That's exactly what I am looking for. I assume I can just deserialize the xml to get the AMO object back. My only concern is that AMO objects are pretty powerful and it's possible for the client to modify the cube structure. I may create my own readonly wrapper classes for each AMO object or inherit the AMO objects and override the update/process methods.|||

> I assume I can just deserialize the xml to get the AMO object back.

Yes, there is the Utils class with Serialize and Deserialize methods for this.

> I may create my own readonly wrapper classes for each AMO object or inherit the AMO objects and override the update/process methods.

You will need to create wrapper classes because most of the AMO classes are sealed. But what kind of additions/changes you want for the Update and Process ? Maybe they have some flags/parameters that would help.

Adrian Dumitrascu

|||

Adrian Dumitrascu wrote:

You will need to create wrapper classes because most of the AMO classes are sealed. But what kind of additions/changes you want for the Update and Process ? Maybe they have some flags/parameters that would help.

Here's my scenario. I am deploying a click-once application to the end-user that allows them to query the cube by choosing a measure and 2 dimensions. Then they can save their configurations back to the server so next time they can open the configuration and view/edit them. I have a webservice that the click-once app uses to retrieve metadata about the cube. I was going to have the click-once app reference Microsoft.AnalysisServices dll so I can easily deserialize the XML to actual AMO objects I can use. However, since the click-once shouldn't need a live connection to the Analysis Server or make any changes to it, I don't really want to use AMO objects at all. Kind of an overkill. I was going to just create some simple classes that will parse the XML for the properties I want. The bad part is that I will have to create a class for all the AMO objects I want to use...not hard at all but just tedious.

AMO DataSource ConnectionString Password and ConnectionStringSecurity

I am creating a datasource using AMO with the password embedded in the connectionstring to the database. After the datasource has been updated to the server, if I load it again, the password is removed from the connectionstring. I tried setting the ConnectionStringSecurity to "Unchanged" but it's reset back to "RemovePassword" when I load the datasource object again. Any ideas on how to avoid entering the password everytime?

This is not a bug in the product.
You are running into the situation when Analysis Server for security reasons strips any passwords from any responcse it sends to the users. Once you've told Analysis Server your password, it will keep it for internal usage only, it will never return it back to you. That is to reduce the risk of exposure: even if malitious user gains access to Analysis Server, it will not be able to learn your password.

It is true, in your situation you will need to work little harder in case and if you need to change data source using AMO.

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

Monday, February 13, 2012

Always fails on Login

I don't get it. I'm trying to use Reporting Services to deploy my reports.
They always "forget" the datasource. I can run it on my local machine but
when I move it up to the co-lo it will work for a while and then it will just
fart.
and forget the datasource I try to set it through the admin and it dies
EVERY time.
I
BryanYou could try the following :
Go to the Report project properties by right clicking on
your Report Project in the IDE and selecting properties.
Out here set OverRideDataSource property to true. Then try
to deploy the reports.
>--Original Message--
>I don't get it. I'm trying to use Reporting Services to
deploy my reports.
>They always "forget" the datasource. I can run it on my
local machine but
>when I move it up to the co-lo it will work for a while
and then it will just
>fart.
>and forget the datasource I try to set it through the
admin and it dies
>EVERY time.
>I
>Bryan
>.
>