Wednesday, March 28, 2012
Please help - urgent!
matrix
has a grouped column that does the grouping by day (this column is returned
from a stored procedure) and page breaks at the end of the day.
This is what I need - before I page break, I need to also display the
statistics per day like avg, min and max values for that day for all the
tags.
Date Tag1 Tag2 Tag3 Tag4
======================================== 10/01/2003 00:00 2 4 6 7
10/01/2003 01:00 2 4 6 7
10/01/2003 02:00 2 4 6 7
10/01/2003 03:00 2 4 6 7
......
10/01/2003 21:00 2 4 6 7
10/01/2003 22:00 2 4 6 7
10/01/2003 23:00 2 4 6 7
========================================= Daily Statistics
--
Sum: 48 96 144 168
Average: 2 4 6
7
Min: 2 4 6
7
Max: 2 4 6
7
==========================================
======> the first one is the matrix (grouped by day and page breaks after
each day)
=======> The Daily Statistics part (summary) I am not able to do. Since the
matrix has a page break per
day, I am not able to get the statistics also on the same page for that day.
Any help will be highly appreciated. Thanks.Try putting your matrix inside a table. Your outer group goes in the
table -- with summaries in the table group footer -- and your inner group is
handled in the matrix.
--
Cheers,
'(' Jeff A. Stucker
\
Business Intelligence
www.criadvantage.com
---
"KMP" <KMP@.msn.com> wrote in message
news:%23dnvGhcFFHA.1936@.TK2MSFTNGP14.phx.gbl...
>I have a matrix that displays data for tags per day on each page. The
> matrix
> has a grouped column that does the grouping by day (this column is
> returned
> from a stored procedure) and page breaks at the end of the day.
> This is what I need - before I page break, I need to also display the
> statistics per day like avg, min and max values for that day for all the
> tags.
> Date Tag1 Tag2 Tag3 Tag4
> ========================================> 10/01/2003 00:00 2 4 6 7
> 10/01/2003 01:00 2 4 6 7
> 10/01/2003 02:00 2 4 6 7
> 10/01/2003 03:00 2 4 6 7
> ......
> 10/01/2003 21:00 2 4 6 7
> 10/01/2003 22:00 2 4 6 7
> 10/01/2003 23:00 2 4 6 7
> =========================================> Daily Statistics
> --
> Sum: 48 96 144
> 168
> Average: 2 4 6
> 7
> Min: 2 4 6
> 7
> Max: 2 4 6
> 7
> ==========================================> ======> the first one is the matrix (grouped by day and page breaks after
> each day)
> =======> The Daily Statistics part (summary) I am not able to do. Since
> the
> matrix has a page break per
> day, I am not able to get the statistics also on the same page for that
> day.
> Any help will be highly appreciated. Thanks.
>
>
>|||Thank you very much. It worked.
"Jeff A. Stucker" <jeff@.mobilize.net> wrote in message
news:uyFiy2cFFHA.2540@.TK2MSFTNGP09.phx.gbl...
> Try putting your matrix inside a table. Your outer group goes in the
> table -- with summaries in the table group footer -- and your inner group
is
> handled in the matrix.
> --
> Cheers,
> '(' Jeff A. Stucker
> \
> Business Intelligence
> www.criadvantage.com
> ---
> "KMP" <KMP@.msn.com> wrote in message
> news:%23dnvGhcFFHA.1936@.TK2MSFTNGP14.phx.gbl...
> >I have a matrix that displays data for tags per day on each page. The
> > matrix
> > has a grouped column that does the grouping by day (this column is
> > returned
> > from a stored procedure) and page breaks at the end of the day.
> >
> > This is what I need - before I page break, I need to also display the
> > statistics per day like avg, min and max values for that day for all the
> > tags.
> >
> > Date Tag1 Tag2 Tag3 Tag4
> > ========================================> > 10/01/2003 00:00 2 4 6 7
> > 10/01/2003 01:00 2 4 6 7
> > 10/01/2003 02:00 2 4 6 7
> > 10/01/2003 03:00 2 4 6 7
> > ......
> > 10/01/2003 21:00 2 4 6 7
> > 10/01/2003 22:00 2 4 6 7
> > 10/01/2003 23:00 2 4 6 7
> > =========================================> > Daily Statistics
> > --
> > Sum: 48 96 144
> > 168
> > Average: 2 4 6
> > 7
> > Min: 2 4 6
> > 7
> > Max: 2 4 6
> > 7
> > ==========================================> >
> > ======> the first one is the matrix (grouped by day and page breaks
after
> > each day)
> > =======> The Daily Statistics part (summary) I am not able to do. Since
> > the
> > matrix has a page break per
> > day, I am not able to get the statistics also on the same page for that
> > day.
> >
> > Any help will be highly appreciated. Thanks.
> >
> >
> >
> >
> >
>sql
Monday, March 26, 2012
please help
online or i enter a site its annoyong can anyone help

The page cannot be displayed
The page you are looking for is currently unavailable. The
Web site might be experiencing technical difficulties, or
you may need to adjust your browser settings.
---
--
Please try the following:
Click the Refresh button, or try again later.
If you typed the page address in the Address bar, make
sure that it is spelled correctly.
To check your connection settings, click the Tools menu,
and then click Internet Options. On the Connections tab,
click Settings. The settings should match those provided
by your local area network (LAN) administrator or Internet
service provider (ISP).
If your Network Administrator has enabled it, Microsoft
Windows can examine your network and automatically
discover network connection settings.
If you would like Windows to try and discover them,
click Detect Network Settings
Some sites require 128-bit connection security. Click the
Help menu and then click About Internet Explorer to
determine what strength security you have installed.
If you are trying to reach a secure site, make sure your
Security settings can support it. Click the Tools menu,
and then click Internet Options. On the Advanced tab,
scroll to the Security section and check settings for SSL
2.0, SSL 3.0, TLS 1.0, PCT 1.0.
Click the Back button to try another link.
Cannot find server or DNS Error
Internet ExplorerThis is a SQL Server security newsgroup, not a general security newsgroup,
so I doubt you'll get a lot of help here. You could try asking in one of the
internet explorer newsgroups. Try starting at
http://communities2.microsoft.com/c...us/default.aspx
and clicking down through English/United States/Windows/Windows/Internet
Explorer.
Good luck,
Stephen Dybing
This posting is provided "AS IS" with no warranties, and confers no rights.
"haidie=may" <mini_spanky02@.yahoo.com.au> wrote in message
news:d91201c3efb4$4302baf0$a001280a@.phx.gbl...
> this stupid msg comes up everytime i go to buy something
> online or i enter a site its annoyong can anyone help

> The page cannot be displayed
> The page you are looking for is currently unavailable. The
> Web site might be experiencing technical difficulties, or
> you may need to adjust your browser settings.
> ---
> --
> Please try the following:
> Click the Refresh button, or try again later.
> If you typed the page address in the Address bar, make
> sure that it is spelled correctly.
> To check your connection settings, click the Tools menu,
> and then click Internet Options. On the Connections tab,
> click Settings. The settings should match those provided
> by your local area network (LAN) administrator or Internet
> service provider (ISP).
> If your Network Administrator has enabled it, Microsoft
> Windows can examine your network and automatically
> discover network connection settings.
> If you would like Windows to try and discover them,
> click Detect Network Settings
> Some sites require 128-bit connection security. Click the
> Help menu and then click About Internet Explorer to
> determine what strength security you have installed.
> If you are trying to reach a secure site, make sure your
> Security settings can support it. Click the Tools menu,
> and then click Internet Options. On the Advanced tab,
> scroll to the Security section and check settings for SSL
> 2.0, SSL 3.0, TLS 1.0, PCT 1.0.
> Click the Back button to try another link.
>
> Cannot find server or DNS Error
> Internet Explorer
>
Wednesday, March 21, 2012
Please can someone point out whats wrong with my code
Hi,
I have code on a page to update one table and insert info into another, but I cant make it work. I am new to coding and i think there are many mistakes. Please can someone pick out a few that need to be changed for the page to work.
Code:
private bool ExecuteUpdate(int quantity)
{
SqlConnection con = new SqlConnection();
con.ConnectionString = "ConnectionString";
con.Open();
SqlCommand command = new SqlCommand();
command.Connection = con;
TextBox TextBox1 = (TextBox)FormView1.FindControl("TextBox1");
Label labname = (Label)FormView1.FindControl("Label3");
Label labid = (Label)FormView1.FindControl("Label13");
command.CommandText = "UPDATE Items SET Quantityavailable WHERE productID='@.productID' = " + TextBox1.Text +
command.ExecuteNonQuery();
return true;
con.Close();
}
private bool ExecuteInsert(String quantity)
{
SqlConnection con = new SqlConnection();
con.ConnectionString = "ConnectionString";
con.Open();
SqlCommand command = new SqlCommand();
command.Connection = con;
TextBox TextBox1 = (TextBox)FormView1.FindControl("TextBox1");
Label labname = (Label)FormView1.FindControl("Label3");
Label labid = (Label)FormView1.FindControl("Label13");
command.CommandText = "INSERT Transactions SET Usersname = @.UserName" +
"; INSERT Transactions SET Itemid WHERE productID='@.productID' = @.productID; INSERT Transactions SET itemname = @.Itemsname" +
"; INSERT Transactions SET Date WHERE productID='@.productID' = " + DateTime.Now.ToString() +
"; INSERT Transactions SET Qty WHERE productID='@.productID' = " + TextBox1.Text;
command.Parameters.Add("@.UserName", System.Web.HttpContext.Current.User.Identity.Name);
command.Parameters.Add("@.Itemsname", labname.Text);
command.Parameters.Add("@.productID", labid.Text);
command.ExecuteNonQuery();
return true;
con.Close();
}
protected void Button2_Click(object sender, EventArgs e)
{
TextBox TextBox1 = FormView1.FindControl("TextBox1") as TextBox;
ExecuteUpdate(Int32.Parse(TextBox1.Text) );
ExecuteInsert(Int32.Parse);
}
Current error message is:
The best overloaded method match for 'detailproview.ExecuteInsert(string)' has some invalid arguments
to
Line 74: ExecuteInsert(Int32.Parse);
Thanks if someone can help!
Jon
Hi,
The best way for you to see why it is not working is to debug your code and check the values in the object using Immediate window or pointing the mounse on the objects after value is assigned.
Maybe you are not getting the id that you are using in the WHERE lause of your update statement. Make sure you are getting valid id and that it exists in database.
Finally you are calling return true before closing the connection, first close the connection than return a value.
|||
Int32.Parse is a method and you need to pass in an argument to it, the one string which you want to conevrt to an int, like you are doing it here:
ExecuteUpdate(Int32.Parse(TextBox1.Text) );
Hope this helps,
Vivek
|||Hi,
Thanks both great to help me iron out bugs.
I will put up a new post with the latest set of error messages!
Cheers
Jon
Please - OLE DB Provider for SQL Server (0x80004005) Cannot generate SSPI context
I am using Windows 2000 Service Pack 4 with Internet Exp. 6. The system also has developing software VB6 and IIS. It is connecting well with VB application but is not accessing through IIS.
I have checked all MS Knowledge Base but could not find workaround. MS accepts it as a bug but I could not find quick and easy solution,
Thanking you in anticipation,
Zulfiqar AliSSPI points to an authentication error connecting to your SQL Server instance.
have you tried creating a SQL Server logon and passing that to your connection string? If that works, then there's an issue with your Windows authentication.....
If it doesn't, then you have a more general problem connecting to your database|||
No, but to do this, I need to re-install the SQL server. I am trying to avoid this. Is it possible to change main SQL server login without re-installing SQL Server?
Regards
|||hata errorSaturday, February 25, 2012
Pivot table error
Note - I'm using Dynamic SQL withing the SP
Has anybody seen this
Error
==== Data provider or other service returned an E_FAIL status
Pivot table control
=========== <object classid="clsid:0002E55A-0000-0000-C000-000000000046" id="PivotReport" codebase="http://download.microsoft.com/download/officexpstandard/owc10/2/w98nt42kme/en-us/owc10.exe" VIEWASTEXT><param name="XMLData" value="<xml xmlns:x="urn:schemas-microsoft-com:office:excel"><x:PivotTable>Hi Folk
i found the reason why it was failin
1. In my SP there was Order by clause was missin
2. Select * from <TempTable> was causing this issu