Showing posts with label dataset. Show all posts
Showing posts with label dataset. Show all posts

Tuesday, March 27, 2012

Analysis Services & Default Value

Is it possible to define a default value for each a parameter also in a dataset?

I have a dataset with a parameter from the dimension Time. I would like to change the default value from the parameter. I tried to create a dataset to get the current year unique name, but if I set it in the parameter dialog it does not recognize the value.

I have a dataset in a report with the parameter Year from the dimension Time.

In the dataset I have to select a default value for the parameter. There is no other option.

In the reports parameters list I can specify a default value. This is not recognized, if it does not mach previous one.

Is it possible to set the default value of such a parameter to the current year value?

Monday, March 19, 2012

An internal consistency error occured (SQL-DMO(ODBC SQLState: 42000)

Hello!

I am trying to restore a dataset and I receive this error message
SQL-DMO(ODBC SQLState: 42000)
An internal consistency error occured.

Does anyone know what this means?
Could it be a different sort order? (But ususally then you receive an error saying something about the sort order.)

Thank you for any help!

marjoOriginally posted by marjo
Hello!

I am trying to restore a dataset and I receive this error message
SQL-DMO(ODBC SQLState: 42000)
An internal consistency error occured.

Does anyone know what this means?
Could it be a different sort order? (But ususally then you receive an error saying something about the sort order.)

Thank you for any help!

marjo

Hallo Marjo,Regarding this call did you receive a solution to this problem?I am experiencing the same issue with a user I am supporting

I would be very glad if you coukd assist|||Hallo Rutger,

I cannot remember what the solution was. But later I was able to restore it without errors. It was something I did wrong - the data/log file selection, size of the db or something like that-, but I am not sure anymore because this happened already months ago.

Groeten,
Marjo|||Check the SQL error logs to find out the error ... that is the best place to find out why this is happening|||Originally posted by marjo
Hallo Rutger,

I cannot remember what the solution was. But later I was able to restore it without errors. It was something I did wrong - the data/log file selection, size of the db or something like that-, but I am not sure anymore because this happened already months ago.

Groeten,
Marjo

thanks,for your assistance|||Originally posted by Enigma
Check the SQL error logs to find out the error ... that is the best place to find out why this is happening

Enigma,where would I find the error logs because I looked in the events.log but nothing is showing

Brgs
Rutger|||SQL server logs would be in the [Installation Directory]\MSSQL\LOG folder. Check the latest one i.e ERRORLOG|||What is the level of Service pack on SQL?|||Originally posted by Satya
What is the level of Service pack on SQL?

Good Day,I do not have any service pack loaded yet,I hope this is a solution

Regards|||Did you find anything in the error logs ??|||Originally posted by Enigma
Did you find anything in the error logs ??
Nothing which points out the error,the problem arose when the user crashed his hard disk and recovered the data,all backups from that disk give the same error time and time again

I tried to restore this disk on various other sql servers but the same thing,it looks like the data integrity is hindered

Thursday, March 8, 2012

An error has occurred during report processing

Hi,
I've been working through Teo Lachev's 'Custom DataSet Data Extension for
Microsoft Reporting Services' (http://makeashorterlink.com/?V1F02505A)
I've built and deployed the DataSet Extension as specifed in the
documentation. I've also adjusted the security config files to insert the new
code group.
I've successfully created the Data Source and the DataSet.
However, I'm getting the following problems from within the report designer.
1) In the Data tab: When I attach the EntitySalesOrder.xsd to the
@.DataSource parameter *nothing* is added to the fields toolbar.
2) When I click the preview tab I get the following error dialog:
"An error has occurred during report processing. Query execution failed for
data set 'DataSet1. DataSource parameter not specified."
I'm running SQL Server Reporting Service SP1 [I've double checked :) ]
Any ideas or pointer would be much appreciated. Thanks>
> I've been working through Teo Lachev's 'Custom DataSet Data Extension for
> Microsoft Reporting Services' (http://makeashorterlink.com/?V1F02505A)
> I've built and deployed the DataSet Extension as specifed in the
> documentation. I've also adjusted the security config files to insert the new
> code group.
> I've successfully created the Data Source and the DataSet.
> However, I'm getting the following problems from within the report designer.
> 1) In the Data tab: When I attach the EntitySalesOrder.xsd to the
> @.DataSource parameter *nothing* is added to the fields toolbar.
> 2) When I click the preview tab I get the following error dialog:
> "An error has occurred during report processing. Query execution failed for
> data set 'DataSet1. DataSource parameter not specified."
> I'm running SQL Server Reporting Service SP1 [I've double checked :) ]
> Any ideas or pointer would be much appreciated. Thanks
>
After checking some previous posts I can confirm that I'm running the latest
SP1 on my box.
I've tried connecting to a couple of different .xsd files but am still
getting the same error:
"An error has occurred during report processing. Query execution failed for
data set 'DataSet1. DataSource parameter not specified."
Does anyone have further pointers I could check?
Thanks
Hans|||Hans Gruber" <Hans Gruber@.discussions.microsoft.com> wrote in message
news:20D93706-74F5-4BF1-9680-7FC6077EFEBD@.microsoft.com...
> Hi,
>
> I've been working through Teo Lachev's 'Custom DataSet Data Extension for
> Microsoft Reporting Services' (http://makeashorterlink.com/?V1F02505A)
> I've built and deployed the DataSet Extension as specifed in the
> documentation. I've also adjusted the security config files to insert the
new
> code group.
> I've successfully created the Data Source and the DataSet.
> However, I'm getting the following problems from within the report
designer.
> 1) In the Data tab: When I attach the EntitySalesOrder.xsd to the
> @.DataSource parameter *nothing* is added to the fields toolbar.
> 2) When I click the preview tab I get the following error dialog:
> "An error has occurred during report processing. Query execution failed
for
> data set 'DataSet1. DataSource parameter not specified."
> I'm running SQL Server Reporting Service SP1 [I've double checked :) ]
> Any ideas or pointer would be much appreciated. Thanks
>
I've been getting the exact same error.
Is there anyone from Microsoft who can help with this?

Wednesday, March 7, 2012

An DatasetMethod

I have a dataset. And I have made 2 methods extra..DeleterQuery(@.id) and the oter one is UpdateQuery(@.naam,@.tussenvoegsel,@.achternaam,@.adres).

My question is how can I get one of these methods at an button and inputbox or something??

Hi khalidelmeknesi ,

Frist question, what are those 2 methods, are they stored procedures or something (well, they looks like stored procedures)? And if it's table adapter functins, you can call it just like any other build-in table adapter functions (e.g. update, getdata,insert...etc) after you have instantialized the tableadapter.

My question is how can I get one of these methods at an button and inputbox or something??

Not sure what you mean by this. But in case if you mean you want to call those 2 stored procedure in your button click event handler, I think it should be easy to implement. For example:

protected void Button1_Click(object sender, EventArgs e) {using (SqlConnection con =new SqlConnection(your_connectionstring_here)) { SqlCommand cmd =new SqlCommand(method_name, con); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.AddWithValue("@.your_parameters", Parameter_value); //I guess maybe you mean the parameter value comes from inputbox in your webpage, right? con.Open(); cmd.ExecuteNonQuery(); } }
Hope my suggestion helps

Monday, February 13, 2012

Am i going the right way about this

Hi,

Im building an application in vb.net 05 and mobile sql. When i added the mobile database in visual studio it added a Dataset object in the object viewer.

Now my question is should i add table adapters to this and do my selects inserts updates and deletes using this, or should i us the sqlceclient class connect to the db use a command object ect and do my operations?

I need it to be as fast as possible and 100 reliable.

Can anyone give me a clue as to the best way forward?

Trev

The automatic creating of bindingsource and datasource datasets is a convenience in VS2005 and you can certainly do most of your interaction with SQL Mobile using this approach. If you want finer-grained control over your interaction with SQL Mobile (for performance tuning for example), then I wouldn't use the auto-generated bindings and instead use SqlCeResultSet, SqlCeDataReader, and SqlCeCommands in TableDirect mode to perform your database operations when possible.

Darren

Always show Subreport (need to always show Background Color)

I have tried adding a second dataset so that my subreport always returns a result, but this has not worked yet. I need a subreport to always show because the row is in Gainsboro background color and when there is no data, half the row is Gainsboro and half is White.

Any ideas?

make sure your query is returning a row, even if it is blank, or at least return a empty value if your result set is empty.

if mydataset.count (or whatever) =0 then

return " "

end if

you could check for this in your sql statement or query.

Always Display Subreport (including background color)

I have tried adding a second dataset so that my subreport always returns a
result, but this has not worked yet. I need a subreport to always shown
because the row is in Gainsboro background color and when there is no data,
half the row is Gainsboro and half is White.
Any ideas?I also do something like that too. I use a dataset called 'ForceRows' that
looks like this.
SELECT 'DummyRow'
Steve MunLeeuw
"bjkaledas" <bjkaledas@.discussions.microsoft.com> wrote in message
news:F2859D73-24D0-4F7D-96BD-A18B4B4BD4E7@.microsoft.com...
>I have tried adding a second dataset so that my subreport always returns a
> result, but this has not worked yet. I need a subreport to always shown
> because the row is in Gainsboro background color and when there is no
> data,
> half the row is Gainsboro and half is White.
> Any ideas?