Calculate Durations From Start/stop Datetimes (was Reporting...)

May 2, 2006

gday, how do i see what i wanted to see

View 2 Replies


ADVERTISEMENT

Net Use Start/stop Sql

Apr 25, 2000

Hello,

Does any one know how I can start and stop the sql services with the net use command?

Thanks,
Anthony

View 1 Replies View Related

Start/Stop SQL From Far Away

May 10, 2002

I need to remotely start and stop SQL from another machine from a program or command line. Thanks in advance.

View 1 Replies View Related

Stop And Start SQL Services...

Jun 27, 2000

Hi friends,

I have quick question. Ihave a job which consists of 9 steps. 9th step is:
Exec xp_cmdshell 'c:mssql.bat'. in this batch file I am stopping and starting SQL services using net stop and net start command. This job is running perfectly but it is not giving the job history when I right click the job and view job history I can't see anything where as if I check the checkbox for Show step details it showing first 8 steps information but it is not showing 9th step information. Even I checked the Sysjobhistory system table in MSDB it shows only 8 steps information.
What is the reason....

Thanks,
Mohammed.

View 1 Replies View Related

Start./stop Method

Jun 4, 2003

Hi,

New here:) and hoping someone might be able to shed a little light on a problem I am having.

I have a job scheduled, which needs to be periodically stopped and then restarted.
After looking through various places I think the start method and stop method are the best bets?:rolleyes:
But not really sure to be honest.

Can anyone give me some tips/pointers/opinions on what would be the best way to do this. (have tried to setup a job with the said method in each step - but it doesn't like my syntax.

Thanks in advance

Cheers
Troy

View 5 Replies View Related

Start And Stop Services

Sep 28, 1999

Hello.

Is there any way to schedule stop and start of NT services
at a particular time daily.

For eg: If i have a service by name TemServer and if i need to stop
that service each night at 9:00 and restart as soon as it stops.??

And Is there any way to start and stop the services of NT from
workstation. Each and every time i am going to the server room for
stopping the service and restarting.

Any suggestions and comments are always welcome.

Advance Thanks

MAK

View 3 Replies View Related

Stop/start SQL Programatically

Apr 11, 2002

What is the best way to programatically stop/start SQL Server? I want to stop it to do backups and then restart it.

I was hoping to do it within SQL Agent but it depends on SQLServer so you can't do a restart.

Any help greatly appreciated.

View 1 Replies View Related

Stop/Start MSDE Process

Jul 20, 2005

how i can do it?Under Xp/2000, i write a application that stop/start this serices, butunder Win98, how i do it?Exists a method via SqlServer or a dos command to stop/start the MSDEprogram?Thanks a lotTomas--Questa è una firma automatica di MesNews.Sito: http://mesnews.no-ip.com

View 3 Replies View Related

Replication :: Synchronization Stop And Start

Jun 8, 2015

What is impact, if i stop and start Synchronization, for one subscription.

When i start, will it resync all tables by dropping and recreating at subscription.

On Publisher,  
from Location Publiction, 
    right click on subscription, 
            select View Synchronization Status,  From here, stop and start

View 3 Replies View Related

How To START And Stop Profiler At Specific Time

Feb 25, 2004

Hi,

We want trace ALL activity on prod
server between 3:00 AM and 3:15 AM

Profiler has stop time option ,but
no start option.

I am looking for example how it could be done

Thank you

Alex

View 5 Replies View Related

Profiler, Duration And Start/Stop Times

Aug 14, 2007

Profiler was run against a database looking for "long running" queries. I used the Duration column to filter out the queries that I didn't want. When reviewing the output, I noticed that for some queries the StartTime was equal to the EndTime even though the Duration was set higher.
My question is, "What can account for this discrepancy and what inferences should I draw about the difference?"
Does the difference represent a resouce being locked or some other type of blocking (Duration) and once the query was allowed to run, it completed quickly?
TIA

=======================================
If Tyranny and Oppression come to this land, it will be in the guise of fighting a foreign enemy. -James Madison, fourth US president (1751-1836)

View 2 Replies View Related

RUN NET START/STOP MSSQLSERVER FROM SSIS PACKAGE

Mar 27, 2007

HELLO,

I want to create a package which start and stop the SQL server's services... i know i can achive this via NET COMMAND.... but i coudnt find in which task (SSIS) I can place that command?..

I also came across that I can achieve this using Execute Process task but for this I have to define executable file.... actually i dont want ne thing outside from my SSIS package

CAN I ACHIEVE THIS WITH IN SSIS PACKAGE?

is there ne other alternative?



regards,

Anas

View 9 Replies View Related

How Start/Stop Shortcuts In System Tray ?

Oct 22, 2006

Hi,

I want to tell to user about SQL Server Configuration Manager and wants to allow him "START / PAUSE / STOP" for SQL Server Express in system Tray. It is easy for the end user who don't know SQL Server.

Thanks

View 3 Replies View Related

Service Stop/start/restart Questions 2005 SP2

Oct 15, 2007

A few service stop/start/restart questions on SQL Server 2005 SP2, whichI'll call SQLS.It looks as if there are *potentially* 6 ways to start/stop SQLSServices like the engine itself, integration services, reportingservice, Agent..-SQLS Configuration Manager-SQLS Surface Area Configuration (for Services and Connections)-Mgmt Studio Local (on server)-Mgmt Studio Remote (on client)-Windows Control Panel->Admin Tools->Services-Command Prompt (ala net start MSSQLSERVER)By policy, I am /not/ Administrator on the server. But I am SysAdminrole in SQLS. I have had various levels of success starting/stoppingservices in the ways listed above. In some I get Access denied, and inothers I get no msg and it simply doesn't work.Is there some special non-Admin OS group I need to be in to start/stopservices? Is this handled differently in the different interfaceslisted above?It seems like my best success for starting/stopping the engine and Agentis in /local/ Mgmt Studio, but /not/ remote Mgmt Studio - the optionsare greyed out on a remote client. Is this by design? Is it a SQLSbug?I'm sure I'm not the only SQLS DBA who does not have Admin rights on hisserver who wants to start/stop services. Generally speaking, how isthis intended to work?Any help appreciated.Allen JantzenA freshly minted DQLS DBA

View 1 Replies View Related

Stop And Start Analysis Services Using DDL Task In SSIS

May 6, 2008

How to use the "Analysis Services Execute DDL Task" in SSIS to stop or start the Analysis Services.? Many thnaks.

View 5 Replies View Related

How To Stop / Start Sql Server 2000 Using Management Studio

May 30, 2008

Hi
I have upgraded my local to sql server 2005, but still need to access the remote instance which is still at version 2008/8.0.
Enterprise Manager has been removed (by the SQL server 2005 installation)
Does anyone know how I can restart older version of SQL server instance (ie 2000/8.0) using SQL server Management Studio?

I don't have admin access on the server which the sql remote instance is hosted. Can get around it by asking the sys admin guy to do it for now but would prefer to continue to be able to do it myself.
SQL Server Configuration Manager can only manage SQL server 2005 versions - a nice little caveat!

Is there a way to stop/start remote services using 'net stop/start'? - without having to write code....
I'll continue to search for a solution, but if someon can point me in the right direction, I'd be most greatful.

hien


View 6 Replies View Related

You Need Administrator Privileges To Start/stop This Service Sqlsac

Jun 28, 2007

I'm getting this error message when I upgraded the SQL Server to install SSIS and other components.



===================================

The service did not respond to the start or control request in a timely fashion, you need administrator privileges to be able to start/stop this service. (SQLSAC)

------------------------------
Program Location:

at Microsoft.SqlSac.MainPanel.ServiceProgressBar.RefreshService()

View 19 Replies View Related

Status Lights (Red/Stop Green/Start Yellow/Pause)

Jul 16, 1998

For some reason the status lights in my Enterprise manager are no longer working. I am connected to the databases, but because the indicator lights are not working, I can`t get a quick visual status of my servers.
Any way to get my lights back on?

View 1 Replies View Related

Security Rights Needed To Start And Stop Services From SQL Server Management Studio

Jun 21, 2007

Hello everyone.

I have a question about granting enough rights to allow a non admin user to start and stop a sql server service via the SQL Server Management Studio by right clicking on the server node.



I have changed the acl's of the SQL Server service security and gave the user rights to start and stop the service. This does allow them to connect remotly to the server using computer manager and they successifully start and stop the service. But, in SQL Server Management Studio the option still does not show up, unless he is a admin of the server.



Does anyone know what other security settings I need to address for the start and stop to show up when I right click on the server node?

Thanks for any help

View 3 Replies View Related

SQL Server 2008 :: How To Calculate Number Of Days Since Start Of Fiscal Year

Jul 29, 2015

Our fiscal year starts on July 1st. Each month they call a period - so July is period 1, August is period 2, etc.

They are wanting a report that pulls numbers for a given period. There are parameters for them to select the fiscal year and the fiscal period, and then it calculates the numbers for that period. That part works fine.

Now they want me to do some calculations, and one of them is to divide one of the numbers by the # of days since the fiscal year. So if they choose July, it would be 31 days. If they choose August, it would be 61 days, etc. How can I set this up to calculate the number of days when they really aren't entering a start date, it's just a fiscal year and period.

Is there a way to calculate a date field that is 07/01/xxxx where xxxx is the fiscal year they chose? Also a way to calculate a date field that would be the last date of the month for the fiscal period and year they chose?

I suppose I could add 2 other parameters where they enter the start of the current fiscal year, and the last day of the period they're running it for, and use a datediff to calculate that. Just seems kind of redundant.

View 8 Replies View Related

Case Statement - Calculate No Of Days Based On User Input Start And End Date

Jan 5, 2015

I have to produce a report to calculate no of days based on user input start date and end date. I have tried to explain below.

say for eg: in the tables I have emp name
user 'Phani' started work from - EStart 20/11/2014EEnd 10/01/2015 - total days --datediff
within his work period he did different roles:

PhaniMarketing (prSt Date) 20/11/2014prE date (28/11/2014) Total 9 days
PhaniAdmin (prSt Date) 29/11/2014prE date (20/12/2014) Total 22 days
PhaniCRM (prSt Date) 20/12/2014prE date (10/01/2015) Total 22 days
Total days 53 Days

For this :

I calculated datediff + 1 and got sub jobs days BUT

say financial director wants to see Title of 'Sub Jobs' with 'Days' from 1st Dec to 31st Dec

so on paper I calulated as :

1-31 Dec 2014
PhaniMarketing NULL (Do not fall in Req Dt)
PhaniAdmin 20 (Deduct 2 days of Nov & calculated 20 days of Dec)
PhaniCRM 11 (Deduct 20 days of Nov and deduct 11 days of Jan so for Dec , we got 11 days)
Total days 31

HOW CAN I USE Case statement to calculate days for given start date and end date. I have to include all three totals, 1 for Job dates, 2, subjobs dates, 3 cal of days for a requested period.

View 4 Replies View Related

SQL 2012 :: Produce Report To Calculate No Of Days Based On User Input Start And End Date

Jan 5, 2015

I have to produce a report to calculate no of days based on user input start date and end date.

say for eg: in the tables I have emp name
user 'Phani' started work from - EStart 20/11/2014EEnd 10/01/2015 - total days --datediff
within his work period he did different roles:

PhaniMarketing (prSt Date) 20/11/2014prE date (28/11/2014) Total 9 days
PhaniAdmin (prSt Date) 29/11/2014prE date (20/12/2014) Total 22 days
PhaniCRM (prSt Date) 20/12/2014prE date (10/01/2015) Total 22 days
Total days 53 Days
for this :

[code]...

HOW CAN I USE Case statement to calculate days for given start date and end date. I have to include all three totals, 1 for Job dates, 2, subjobs dates, 3 cal of days for a requested period.

View 0 Replies View Related

Question/doubt On SqlDependency.Start/SqlDependency.Stop

Apr 24, 2008

Hello, I have a Question/doubt on SqlDependency.Start/SqlDependency.Stop.

After the implementation of my solution the question sounds "stupid" ... maybe is only the stress due to the fact that I'm going to deploy the application on Test.

Anyway.. I developed this application (windows application) that uses query Notification features to subscribe and get notification from Sql Server 2005 so it use the tipical pattern: SqlDependency.Start, SqlDependency_OnChange,SqlDependency.Stop.

This is application is installed on several client so actually I get have several notifications running on the Server.

When one of the client exit the application and call SqlDependency.Stop the service, queue and procedure are dropped.

Does the command drops all the query notification' service, queue and procedure running on the instance or only the one created by the specific user?

Thank you
Marina B.

View 1 Replies View Related

Reporting Services :: How To Stop Rendering A Report

May 2, 2015

I am building reports using MS Visual Studio, and in the Preview tab I have the Refresh button and a button with a X to stop a report while rendering. However, when I deploy the report to the reporting server and I run it from the application the X button is not there, and users would find it useful sometimes to be able to stop long running reports. Is this a configuration change?

View 2 Replies View Related

Reporting Services On Cube: Stop Parameters From Cascading

Aug 27, 2007

Hello,

I'm using a SSIS cube as source for reporting services. In my DataSet I have 3 parameters: Year, ProductGroup, Product. By default all parameters are cascading when defined on the DataSet. This is great for ProductGroup -> Product, but I don't want it for Year -> ProductGroup (I want to avoid the roundtrip). I removed the link in the generated MDX, I removed the parameters on the DataSet, but when I run the report, ProductGroup is still grayed out until I choose a year.

Suggestions are very welcome...

View 4 Replies View Related

Reporting Services :: Report Builder 3.0 - Stop A Textbox From Moving?

May 5, 2015

Some textbox are great moving, and need to when the box above gets extra data.. but how do a stop one from moving? make it stay right where I put it.

A stays where it is... for some reason. but B doesnt? it moves down according the textboxes to the left (where is says phone) ...

View 2 Replies View Related

Reporting Services :: How To Calculate TOP N Total

Oct 23, 2015

I have a SSRS report. I am displaying TOP 10 Stores by sales by creating a filter on group Store. It has 3 row groups (Store, brand, product).

There is no column group. In each cell, I am using sum function in expression (Sum(Fields!TotalSales.Value).

I am adding Totals by going on Group properties, but I am getting totals of all the rows not the total of all the groups within my Store level (which is my top Parent group).

Store     Total sales(CW)  TotalSales(LW)
A             2                            1      -expression used to calculated this value is sum(Fields!TotalSales.Value)
B             3                             2
C             7                             3

I want subtotal =12 AND 6 under respective columns . ALSO, my store (A, B, C) can be expanded into Brands and brands into Products. I tried using running value but its not working as I have 3 groups within Store row parent group and I am doing a SUM on each group.

View 3 Replies View Related

Calculate The Total Of A Coloumn In Reporting Services

Apr 28, 2008



I have a table on my form and each row contains data from a query.

I have a 'Total' row at the bottom and want to add up the above rows. Id rather not do this in the query itself.

Is it possible to do it from the layout view?

View 6 Replies View Related

Gropuing By Time Durations

May 3, 2008

I have the below data:
ProdDate RntValue RNT
2008.05.02 07:01:00 25 Test67
2008.05.02 08:15:00 29 Test56
2008.05.02 10:21:00 45 Test17
2008.05.02 12:16:00 28 Test98
2008.05.02 14:31:00 46 Test72
2008.05.02 15:31:00 75 Test78
2008.05.02 18:35:00 95 Test56
2008.05.02 19:07:00 12 Test23
2008.05.02 21:13:00 83 Test13
2008.05.02 23:31:00 34 Test22

I would like to Group this in :
07:00:00 to 10:00:00
10:00:00 to 15:00:00
15:00:00 to 19:00:00
19:00:00 to 23:59:59

and Also I would like to have the Min and Max ProdDate for each Interval listed for all the result sets belonging to that grou

Would be thankful for any suggestion

View 3 Replies View Related

Stored Procedure Executing Durations Are Different

Jan 24, 2008

Hi,

I have a web application using Stored Procedure (SP). I see that there's a SP taking long time to execute. I try to capture it by Profiler Tool, and find out that with the same SP on the same db with the same parameter. The duration of executing by my web app is far bigger than the duration of executing on SQl server management studio - query window

Please see the image attached


Any ideas for this issue?

Thanks a lot

View 2 Replies View Related

Reporting Services 2005 - Matrix Grouped Report - Calculate Percentages

Jun 29, 2007

Hi,



Could someone help with the following problem, I what to create a cross-tab report of the following data, grouped by Colour:

RAW DATA








Name
Colour

Sarah
Black

Kim
Red

Jane
Black

Jane
Pink

Robert
Yellow

Tom
Green

Tom
Black

Billy
Black

Sarah
Black

Sarah
Black

Tom
Pink

Kim
Pink

Robert
Black



Group Colours by Names Report










Number





Proportions %





Name
Black
Green
Pink
Red
Yellow
Total by Name
Black
Green
Pink
Red
Yellow

Billy
1




1
100.00%
0.00%
0.00%
0.00%
0.00%

Jane
1

1


2
50.00%
0.00%
50.00%
0.00%
0.00%

Kim


1
1

2
0.00%
0.00%
50.00%
50.00%
0.00%

Robert
1



1
2
50.00%
0.00%
0.00%
0.00%
50.00%

Sarah
3




3
100.00%
0.00%
0.00%
0.00%
0.00%

Tom
1
1
1


3
33.33%
33.33%
33.33%
0.00%
0.00%





I want to produce a Matrix cross-tab report, like the above, within Reporting Services. Any suggestions welcome



Many Thanks,



Radha

View 5 Replies View Related

Reporting Services :: Unable To Calculate Running Balance Column Correctly In SSRS

Oct 7, 2015

I created a view that i want to use in ssrs.In the view there is a column for running balance.In the table contain transaction of inventory with their quantity.

"SELECT     TOP (100) PERCENT ITEMNMBR, TRXSORCE, DOCTYPE, DOCNUMBR, DOCDATE, HSTMODUL, UOFM, UNITCOST, EXTDCOST, TRXQtyInBase,
                          (SELECT     SUM(TRXQtyInBase) AS Expr1
                            FROM          dbo.INVTRXB AS b
                            WHERE      (DEX_ROW_ID <= a.DEX_ROW_ID) AND (ITEMNMBR = a.ITEMNMBR)) AS ENDQTY
FROM         dbo.INVTRXB AS a
ORDER BY ITEMNMBR, DOCDATE"

If i run the query on sql or use the view on ssr. The end qty is  not showing accurately.I ran it on another database it works perfectly. Then i noticed that the dex_row_ID of the second database is sequential as the date. But for the initial database it was not sequential as with the date.

View 4 Replies View Related

Huge Durations In Trace - Why Is Timeout Not Enforcing At Times?

May 25, 2006

Running SQL2005 and on occasion I see durations of 928809 or even 2830562 in the trace for commands that usually run in the 7000 range.  Reads are still in the 1200's even during the huge duration spikes.  These are calls from ASP.NET ADO.NET and there should be a 30 second timeout on them by default to boot.  I see a few other times that we've logged timeouts so I know the timeout is working at times but not at others.  Any ideas what's going on both with the strange serious outliers and the fact that these queries aren't timed out properly?

View 1 Replies View Related







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