Displaying Maximum In Every 12 And 6 Second Window

Aug 9, 2013

I have one requirement in which i want maximum value of every six (1-6) seconds. If difference of time between the time value of maximum value of subsequent window of six (i.e window 1-6 and window 7-12) is <=4 then we should ignore the value of window 1 and check for next to maximum in window 1 and so on respectively. Suppose we get maximum value in window 1 at 4th second and for window window 2 at 10th second for first window of 12.

Then while trying for window 3(13-18) if maximum value is at 13 then we we calculate 13 minus 10(13-10=3)which is less than 4 then we should ignore value at 10th second and should look for value next to maximum in window 2. and same process goes on till end. Sample Data is shown below and it is sorted with time. I need to check only for those values which have accevalue between .01 and .74 so we can apply a filter on that we will have to preserver every not value for every six second window for back tracking.

JourneyIDTimeSpendAcceValue
33946F55-DACF-42D7-8E6E-5EE0D9E96F6E16:58.00.06
33946F55-DACF-42D7-8E6E-5EE0D9E96F6E17:02.00.01
33946F55-DACF-42D7-8E6E-5EE0D9E96F6E17:04.0-0.04
33946F55-DACF-42D7-8E6E-5EE0D9E96F6E17:06.0-0.02

[Code] ....

View 5 Replies


ADVERTISEMENT

Displaying A Report In A IE Window Before Changing To An ASP.NET Page

Feb 6, 2008

Hi

I have a strange problem that basically consists of showing a report in Internet Explorer and then using the same Internet Explorer window to show an asp.net page that contains some form where the user can enter some data. In this scenario, the form won't be processed on the server. I really need to know why and how I can work around this problem.





Precisely the problem can be reproduced like this:


Environment: Server: Windows 2003 Standard Server SP1 (German), IIS 6, Client: Windows XP SP2, Internet Explorer 6

First I open a new Internet Explorer Window and let it show me a Reporting Services Report (by entering its url into the address bar). Everything works. Then I change the address to a simple web application's address that is built with asp.net (.net 1.1). The application contains only a form with a submit-button, a text box and a label, that shows the textbox' text after submit was clicked. But when I click the submit button, although the form seems to have been sent to the server (the green progress bar in the status bar is flickering), it's reset. So the label does not show the value I have entered into the the textbox and the textbox itself is cleared. This only happens when the browser was first showing a Report from Reporting Services, so when I open a new Browser Window and go directly to the web app, everything works fine.

It does not happen when I open the Browser directly on the server.

Thank you
Christian

View 3 Replies View Related

Installing Report Service In Window XP - Report Builder And Other Option Are Not Displaying

Dec 15, 2006

hi

I have installed SQL Server Reporting Service on window xp. everything working fine except one thing.

I have installed sql server with my a/c. my a/c have admin rights. when i giving http://dineshpatel/reports it is displaying page but Report Builder and other option are not displaying. I hope i don't have admin rights.

I have checked with local administrator login also but same problem.

what additional setting are require for admin rights?

Dinesh Patel

View 10 Replies View Related

Transact SQL :: Error - Maximum Row Size Exceeds Allowed Maximum Of 8060 Bytes

Sep 12, 2015

I have some code I build 2 weeks ago which I’ve been running daily but it’s suddenly stopped working with the following error.

“The table "tbl_Intraday_Tmp" has been created, but its maximum row size exceeds the allowed maximum of 8060 bytes. INSERT or UPDATE to this table will fail if the resulting row exceeds the size limit” When I google this there seems to be a related to tables with vast numbers of columns.

My table tbl_Intraday_tmp is relatively small. It has 7 columns. 1 of varchar(5), 3 of decimal(9,3) and 2 of decimal(18,0). The bit I’m puzzled with is it was working and stopped.

I don’t recall changing anything but I wouldn’t rule that out. I ‘ve inspected the source files and I don’t believe they have changed either.

DECLARE              
@FileName varchar(50),
@Path varchar(50),
@SqlCmd varchar(1000)
= '',
@ASXCode varchar(5),
@Offset decimal(18,0),

[code]....

View 5 Replies View Related

Error - Maximum Row Size Exceed Allowed Maximum Of 8060 Bytes

Apr 20, 2012

I am using MS SQL server 2008, and i have a table with 350 columns and when i m trying to create one more column its giving error with below message -

Warning: The table XXX has been created, but its maximum row size exceeds the allowed maximum of 8060 bytes.

INSERT or UPDATE to this table will fail if the resulting row exceeds the size limit.

how can i resolve this?

View 14 Replies View Related

How To Connect To Sql Server As Other's Window Login Rather Than User's Window Login Thorugh ASP.NET.

Dec 14, 2006

Dear members,

In MSDN, it says that it is recommended to use windows authentication to connect to SQL Server rather than use mixed authentication.

I create user deltasqluser on windows OS, and I specify in my webform ASP.NET script below :

protected System.Web.UI.WebControls.Label Label1;
private string _connString = @"data source=deltasql2000;initial catalog=northwind;integrated security=false;user id=deltasqluser";
/*
comment : I login to my windows as deltakoronx, and I want to every user (including me), connected to sql server through IIS, will be identified as deltasqluser not as user's login (impersonate)
*/
private void Page_Load(object sender, System.EventArgs e)
{
SqlConnection conn = new SqlConnection(_connString);
SqlCommand cmd = new SqlCommand();
cmd.Connection = conn;
cmd.CommandType = CommandType.Text;
cmd.CommandText = "select suser_sname()";

conn.Open();


string userName = cmd.ExecuteScalar() as string;
conn.Close();
conn.Close();
Label1.Text = userName;
}


at web.config, I add :
<identity impersonate="false" userName="deltasqluser" password="" />


at IIS webApplication1's properties, tab "Directory Security", at "Authentication and access control" section, I checked "enable anonymous access" with user : DELTAIUSR_DELTA and checked "Integrated Windows Authentication",


at query analyzer, I login as "sa" and execute script below :
exec sp_grantdbaccess 'deltasqluser','northwind'


when I run the ASP.NET script, error at conn.Open(); with error message :
Login failed for user 'NT AUTHORITYNETWORK SERVICE'.


What should I do so that IIS login to SQL Server as user deltasqluser not as "NT AUTHORITYNETWORK SERVICE" ?

Regards,

Koronx

View 1 Replies View Related

...Contains More Than The Maximum Number Of Prefixes. The Maximum Is 3.

Oct 10, 2005

SQL Server 2000 8.00.760 (SP3)I've been working on a test system and the following UDF worked fine.It runs in the "current" database, and references another database onthe same server called 127-SuperQuote.CREATE FUNCTION fnGetFormattedAddress(@WorkID int)RETURNS varchar(130)ASBEGINDECLARE@Address1 As varchar(50)@ReturnAddress As varchar(130)SELECT@Address1 = [127-SuperQuote].dbo.tblCompany.Address1FROM[Work] INNER JOIN[127-SuperQuote].dbo.tblCompany ON [Work].ClientID =[127-SuperQuote].dbo.tblCompany.CompanyIDWHERE[Work].WorkID = @WorkIDIF @Address1 IS NOT NULLSET @ReturnAddress = @ReturnAddress + @Address1 + CHAR(13)+ CHAR(10)RETURN @ReturnAddressENDSo now the system has gone live and it turns out that the live"SuperQuote" database is on a different server.I've linked the server and changed the function as below, but I get anerror both in QA and when checking Syntax in the UDF builder:The number name 'Zen.SuperQuote.dbo.tblCompany' contains more than themaximum number of prefixes. The maximum is 3.CREATE FUNCTION fnGetFormattedAddress(@WorkID int)RETURNS varchar(130)ASBEGINDECLARE@Address1 As varchar(50)@ReturnAddress As varchar(130)SELECT@Address1 = Zen.SuperQuote.dbo.tblCompany.Address1FROM[Work] INNER JOINZen.SuperQuote.dbo.tblCompany ON [Work].ClientID =Zen.SuperQuote.dbo.tblCompany.CompanyIDWHERE[Work].WorkID = @WorkIDIF @Address1 IS NOT NULLSET @ReturnAddress = @ReturnAddress + @Address1 + CHAR(13)+ CHAR(10)RETURN @ReturnAddressENDHow can I get round this? By the way, I've rather simplified thefunction to ease readability. Also, I haven't posted any DDL because Idon't think that's the problem!ThanksEdward

View 2 Replies View Related

Open Report In New Window: Window.open Method Gives Error

Jun 26, 2006



Hi,

I am using SSRS Microsoft SQL Server Reporting Services Designers
Version 9.00.1399.00. I want to open linked report in new window.

I tried whats mentioned in http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=240172&SiteID=1 but i get an error on Window.Open method.

How do I solve the problem?

Thanks

View 1 Replies View Related

Looping Through Stored Procedure Inside Another Stored Procedure And Displaying The Category And Then Displaying 1 Item In Each Category

Sep 21, 2006

I used to do this with classic asp but I'm not sure how to do it with .net.Basically I would take a table of Categories, Then I would loop through those.  Within each loop I would call another stored procedure to get each item in that Category. I'll try to explain, Lets say category 2 has a player Reggie Bush and a player Drew Brees, and category 5 has Michael Vick, but the other categories have no items.Just for an example.. Category Table: ID   Category1      Saints2      Falcons3      Bucaneers4      Chargers5      FalconsPlayer Table:ID    CategoryID   Player                 News                                Player Last Updated1            1           Reggie Bush       Poetry in motion                                9/21/20062            1           Drew Brees         What shoulder injury?                        9/18/20063            5           Michael Vick       Break a leg, seriously.                       9/20/2006 Basically I would need to display on a page:SaintsReggie BushPoetry in MotionFalconsMichael VickBreak a leg, seriously.So that the Drew Brees update doesnt display, only the Reggie Bush one, which is the latest.I have my stored procedures put together to do this.  I just don't know how to loop through and display it on a page.  Right now I have two datareaders in the code behind but ideally something like this, I would think the code  would go on the page itself, around the html.

View 1 Replies View Related

Window Authentication Log In

Apr 29, 2005

 made my first web application using vb script. I am trying to use window authentication for my web page and try to give all permission based on window domain user account. Here is the connecting string I was using to connect to the sql server and it was working fine.
 
Protected Const sql_connection_string As String = _
    "workstation id= DATA-02;" & _
"packet size=4096;" & _
"user id=ASP;" & _
"password=ASP;" & _
"data source=ARENS-DATA-01;" & _
"persist security info=True;" & _
"initial catalog=SupplierTrack;"
 
I made couple of changes so it run on based on window domain user.
1) my server is set on window and sql server
2)  Web.config file – I set Authentication mode = “ Window?
3) I also added under set  <authorization>
    <deny users="?" />
</authorization>
 
4) change the connecting string to : ( Added "Integrated Security=True;"  and removed line for user and password)
 
Protected Const sql_connection_string As String = _
    "workstation id= DATA-02;" & _
"packet size=4096;" & _
"Integrated Security=True;" & _
"data source=ARENS-DATA-01;" & _
"persist security info=True;" & _
"initial catalog=SupplierTrack;"
 
5) run the application and now I am getting error said “Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.?
I was expecting window pop up log in to enter domain  user and password and then verity the user and password against sql server  and the take it from there. Where I made mistake. Need help.

View 1 Replies View Related

SQL Command Window

Aug 24, 1999

How can I call the SQL Server environment from a MS DOS window ?
Is there a command to do that ?

I know i type SVRMGR23 using Oracle...


Thank you.

View 1 Replies View Related

Search Window

Dec 30, 2004

I need to make a homemade Search form for my users....one that they can press a button type in lastname or TM#, FirstName or SSN and BAM!!!!!! theres the results populated on the form. Anyone know of any good sites where I can obtain some info on how to create one of these or something??

View 9 Replies View Related

Permission Window

Feb 16, 2007

Running sql server 2005 standard edition (SP1).
Server properties, permissions window seems to be different to what it should be.
In this window I do not see System Administrator and System User column. I see a different window i.e. permission, Grantor, Grant, WithGrant, Deny columns.
Any thoughts please?
Thanks

View 3 Replies View Related

Help Reg Watch Window

Feb 27, 2007

hi frnds,

i want to view the runtime variable value in the watch window while the package is running,

how i will get that watch window. i searched all the menus but i didnt get it.

im using Microsoft Visual Studio 2005 for SSIS package.

View 1 Replies View Related

Opening A URL In A New Window

May 14, 2008

Hello Guys,
One of the fields in my report is a web address (i.e. http://www.yahoo.com). Navigation property for this field is "Jump to URL". Users will access the report with a browser, using a "sharepoint-like" application. Default behavior of "Jump to URL" seems to be to open the link in the same window (or tab in IE7). Is there a way to force the link to be open in the new window?? Please let me know if you have any suggestions. Thanks!!

View 5 Replies View Related

Where To See WATCH Window??

Mar 26, 2007

I honestly don't see where to view the watch window. Can someone please advise.

Thanks

View 5 Replies View Related

Open Url In A New Window

Oct 25, 2006

hi, I got a problem with reporting services 2005.

I have to create a link activated by clicking on an image.

In the image navigation properties I inserted the link in "jump to url"  but the problem is that no new window is opened, the url is opened in the initial report page.
I tried to use jscript this way:

javascript:window.open("myurl","", "scrollbars=yes,width=800,height=600,left=0,top=0");

but in this case the url opens in a new window but a blank page is shown in the report page.

How can I solve this problem and open the url in a new window without changing the report page?

Thanks in advance and sorry for my english

View 12 Replies View Related

Popup Window

May 22, 2007

Hi,

In my report, I would like to have the following functionality :

The report will have a table with table header columns. If the user clicks on the header column, a window or text box should show up specifying the rules how that cloumn is calculated.



I can do that through sub-report, but I cannot use subreport, according to our specifications.



Please help me



thanks



View 4 Replies View Related

Window.open

May 8, 2007

I have areport which needs to jump to another report when clicking on a text box.



I have used the following code in the jump to url

= "javascript:void(document.open('http://houapps277/ReportServer/Pages/ReportViewer.aspx?%2fIMS-Reports%2fCR000619','_blank'))"

This does not open any page and when i rightclick to open in new page it gives the url as

javascript:void(document.open('http://houapps277/ReportServer/Pages/ReportViewer.aspx?%2fIMS-Reports%2fCR000619','_blank'))



This works fine though when I give this in jump to url and google opens

= "javascript:void(window.open('http://www.google.com/','_blank'))"



What am I doing wrong here.



Thanks

View 1 Replies View Related

Variables Window

Apr 30, 2006

Hello All,

I am wondering if someone can shed some light on how to display "Variables" window in Integration Services. I am trying to add a new variable by clicking SSIS menu, and choosing Variables. However, the Variables window never showed up. Is there some property settings that I need to set before I could view the Variables window?

Your help is much appreciated!

-Lawrence

View 5 Replies View Related

Window Vista - Big Problem ?

Feb 11, 2007

I just upgraded to Windows Vista and now am told that it does not support SQLServer 2000 nor will it.  My question is; will I be able to write code for my website which runs off of a remote SQL 2000 using Visual Studio 2005?  From what I have read Microsoft seems to be saying that SQL 2000 is not and will not be supported and that only ODBC drivers and providers will function with either classic ADO.Net or ADO.Net 2.0, am I misunderstanding?  I am particularly wondering if I can still create stored procedures etc.  I have re-loaded my VS 2005 and I do not see any of my SQL 2000 connection objects in the Server Window.  Sure looks to me like a major disaster for anyone upgrading to Windows Vista that is using SQL 2000.  I hope I am wrong.

View 1 Replies View Related

Server Agent Window?

Feb 21, 2004

When I start the server agent - it opens up a black (command prompt type) window that seems to serve no purpose - that I know of yet.
What is this and can I stop it opening up all the time?

Thanks
JB

View 5 Replies View Related

My SQL Can't Open Window When Installation

Aug 5, 2005

Is there anyone can help me to run window when after done with installation, i wana open but i got message" this installation package could not be opened. verify that the package exists and that you can access it. or contact the application vedor to verify that this is a valid Windows Installer package" My comp is running w/ Win home XP. thanks

View 1 Replies View Related

SQL Server Login Window....

Jul 2, 2001

I have an desktop app that uses a system DSN to access SQL Server 7. I backed up a database from another machine and restored it on my machine. Now when my app starts, it prompts for login/pw for SQL Server. I have checked my ODBC connection, and the login and pw are correct. I have also used Enterprise Mgr to check it in SQL Server. Does anyone have any thoughts on why it is now popping up? Drop me a line at bcarlson@documentsolutions.com, and I can answer any questions. I was wondering if any info about the prev machine exists for the database (on the restore)?

Thanks,
Brian

View 1 Replies View Related

Current Activity Window

Sep 24, 1999

Hi,

On sql server 6.5 running on a win/nt platform my Current Activity window comes up blank when I click on it. Everything else seems to be working fine. This is a new problem, it just stopped reporting any info when I click on it.
Any suggestions would be greatly appreciated.

Thanks,

Jerry

View 2 Replies View Related

SQL Server Window Froze

Feb 25, 2002

Hi,
It happened to my sql server 5 times in three weeks. The window just froze and no response to any thing for my sql server. I need reboot server everytime to bring the server back. No any error log in SQl or window, Does any one can help on this one?
Helen

View 2 Replies View Related

How To Install Sql Server On Window Xp

Feb 9, 2005

i m new to sql server , can any one help me how to install sql on window xp professional service pack 2.

View 6 Replies View Related

What Am I Really Looking At In The Process Info Window?

Mar 20, 2006

I had a clients dba send me a peice of sql from the Last T-SQL command window from the process info screen under current activity in the enterprise mangler. It was a select query from a large table with no where clause.I setup profiler for all of the xxxx:completed events for the T-SQL and Stored Procedure Event Classes. I played with that part of the app for a while. I could not find my sql in the trace. I finally gave in and open the Mangler and I was able to reproduce it once but I still could not find the sql profiler. It is not in syscomments and I have a developer running a FIND in the app code.EDIT: I know the sql the query processor uses is not always the sql you send it.I am kind of confused about what that window shows I rarely use it for something like that. Anyone have any light to shed?

View 5 Replies View Related

Why The SSRS Pop Up A Window For Authentication

May 1, 2008

Hi,

I have a problem when accessing the reports in SSRS 2005. I have set up several security roles for Domain Users,BUILTINAdministrators for the main folder and the reports in this folder inherited the roles. And I created a ASP.Net application there is a button to link to these reports using URL Access method. But the SSRS 2005 alaways pop up a window to authentication. After I input user name and password and the reports can run. Is any one know why to get rid of the authentication page. Thanks in advance.

Jack

View 1 Replies View Related

Sql Server 2000 With Window XP

Aug 8, 2006

Hi. I'm new to SQL server. I have here SQL server 2000 and i'm trying to install it on my computer that has the operating system window xp. I'm getting a message saying that the server can't be installed on this operating system. Is there something I am doing wrong? How could i install sql server 2000 on window xp?

View 11 Replies View Related

Hide Command Window

Feb 16, 2007

I am using the SQLCMD function to execute a particular storded procedure every minute. The task schedular calls this batch file to run the stored procedure every minute. The issue is it opens up a command window every minute and is annoying. How can i run this job using sqlcmd and still not have the window pop up.

Is there a way to create a service that can run the batch files without the user knowing that it is running. I am trying to replicate what sql server agent used to do wth msde. i am using sql server express now.

View 3 Replies View Related

Jump To Report In New Window?

May 11, 2007

Hi all,

Is it possible to use the "jump to report " action and have the report open in a new window?

regards,

Bill

View 3 Replies View Related

Window Batch Shell

Jul 20, 2006

how do I write a batch script that can tell whether sql express already exist with some instance on the current machine?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved