Wednesday, March 28, 2012
I/O requests taking longer than 15 seconds to complete
windows 2000 advanced servers clusterring.
SQL Server has encountered 16 occurrence(s) of I/O requests taking longer
than 15 seconds to complete on file [Y:\Microsoft SQL
Server\MSSQL.1\MSSQL\DATA\tempdb.mdf] in database [tempdb] (2). The OS file
handle is 0x00000768. The offset of the latest long I/O is: 0x00000000652000
..
what is the cause and solution ?
NOTE:- 1- there are no sql 2005 service packs installed.
2- all HP Servers hardwares and HP SAN Storage drivers and firmwares are
updated upto date .
3- this error is generated on application peak hours .
This blog entry explains the error and offers suggestions
for addressing the issue:
http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/21/642314.aspx
-Sue
On Mon, 19 Mar 2007 03:02:11 -0700, maslooki
<maslooki@.discussions.microsoft.com> wrote:
>We get below error in MS SQL 2005 server which is fail over virtual server on
>windows 2000 advanced servers clusterring.
>SQL Server has encountered 16 occurrence(s) of I/O requests taking longer
>than 15 seconds to complete on file [Y:\Microsoft SQL
>Server\MSSQL.1\MSSQL\DATA\tempdb.mdf] in database [tempdb] (2). The OS file
>handle is 0x00000768. The offset of the latest long I/O is: 0x00000000652000
>.
>what is the cause and solution ?
>NOTE:- 1- there are no sql 2005 service packs installed.
>2- all HP Servers hardwares and HP SAN Storage drivers and firmwares are
>updated upto date .
>3- this error is generated on application peak hours .
>
|||Thank you MR.Sue Hoegemeier for reply
We also get the below error on the application side :-
" Transaction (Process ID 57) was deadlocked on lock resources with another
process and has been chosen as the deadlock victim. Return the transaction. "
Please again what is the cause and solution for this error ?
Note :- This happens on peak hours when they generate Reports and upload
transactions .
Thanks for cooperation
"Sue Hoegemeier" wrote:
> This blog entry explains the error and offers suggestions
> for addressing the issue:
> http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/21/642314.aspx
> -Sue
> On Mon, 19 Mar 2007 03:02:11 -0700, maslooki
> <maslooki@.discussions.microsoft.com> wrote:
>
>
|||You may consider ensuring that your reporting queries (I assume SELECT only)
use snapshot isolation level. Better still would be to replicate or mirror
to a reporting server which will handle the queries independent of the true
OLTP activity.
Aaron Bertrand
SQL Server MVP
http://www.sqlblog.com/
http://www.aspfaq.com/5006
"maslooki" <maslooki@.discussions.microsoft.com> wrote in message
news:1D25A567-53FF-4667-9D3D-39F50D1F7FD7@.microsoft.com...[vbcol=seagreen]
> Thank you MR.Sue Hoegemeier for reply
> We also get the below error on the application side :-
> " Transaction (Process ID 57) was deadlocked on lock resources with
> another
> process and has been chosen as the deadlock victim. Return the
> transaction. "
> Please again what is the cause and solution for this error ?
> Note :- This happens on peak hours when they generate Reports and upload
> transactions .
> Thanks for cooperation
> "Sue Hoegemeier" wrote:
|||Thank you all,
Our programmers are working on it.
"Aaron Bertrand [SQL Server MVP]" wrote:
> You may consider ensuring that your reporting queries (I assume SELECT only)
> use snapshot isolation level. Better still would be to replicate or mirror
> to a reporting server which will handle the queries independent of the true
> OLTP activity.
> --
> Aaron Bertrand
> SQL Server MVP
> http://www.sqlblog.com/
> http://www.aspfaq.com/5006
>
>
> "maslooki" <maslooki@.discussions.microsoft.com> wrote in message
> news:1D25A567-53FF-4667-9D3D-39F50D1F7FD7@.microsoft.com...
>
>
I/O requests taking longer than 15 seconds to complete
n
windows 2000 advanced servers clusterring.
SQL Server has encountered 16 occurrence(s) of I/O requests taking longer
than 15 seconds to complete on file [Y:\Microsoft SQL
Server\MSSQL.1\MSSQL\DATA\tempdb.mdf] in database [tempdb] (2). The OS
file
handle is 0x00000768. The offset of the latest long I/O is: 0x0000000065200
0
.
what is the cause and solution ?
NOTE:- 1- there are no sql 2005 service packs installed.
2- all HP Servers hardwares and HP SAN Storage drivers and firmwares are
updated upto date .
3- this error is generated on application peak hours .This blog entry explains the error and offers suggestions
for addressing the issue:
http://blogs.msdn.com/sqlserverstor.../21/642314.aspx
-Sue
On Mon, 19 Mar 2007 03:02:11 -0700, maslooki
<maslooki@.discussions.microsoft.com> wrote:
>We get below error in MS SQL 2005 server which is fail over virtual server
on
>windows 2000 advanced servers clusterring.
>SQL Server has encountered 16 occurrence(s) of I/O requests taking longer
>than 15 seconds to complete on file [Y:\Microsoft SQL
>Server\MSSQL.1\MSSQL\DATA\tempdb.mdf] in database [tempdb] (2). The OS
file
>handle is 0x00000768. The offset of the latest long I/O is: 0x000000006520
00
>.
>what is the cause and solution ?
>NOTE:- 1- there are no sql 2005 service packs installed.
>2- all HP Servers hardwares and HP SAN Storage drivers and firmwares are
>updated upto date .
>3- this error is generated on application peak hours .
>|||Thank you MR.Sue Hoegemeier for reply
We also get the below error on the application side :-
" Transaction (Process ID 57) was deadlocked on lock resources with another
process and has been chosen as the deadlock victim. Return the transaction.
"
Please again what is the cause and solution for this error ?
Note :- This happens on peak hours when they generate Reports and upload
transactions .
Thanks for cooperation
"Sue Hoegemeier" wrote:
> This blog entry explains the error and offers suggestions
> for addressing the issue:
> [url]http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/21/642314.aspx[/url
]
> -Sue
> On Mon, 19 Mar 2007 03:02:11 -0700, maslooki
> <maslooki@.discussions.microsoft.com> wrote:
>
>|||You may consider ensuring that your reporting queries (I assume SELECT only)
use snapshot isolation level. Better still would be to replicate or mirror
to a reporting server which will handle the queries independent of the true
OLTP activity.
Aaron Bertrand
SQL Server MVP
http://www.sqlblog.com/
http://www.aspfaq.com/5006
"maslooki" <maslooki@.discussions.microsoft.com> wrote in message
news:1D25A567-53FF-4667-9D3D-39F50D1F7FD7@.microsoft.com...[vbcol=seagreen]
> Thank you MR.Sue Hoegemeier for reply
> We also get the below error on the application side :-
> " Transaction (Process ID 57) was deadlocked on lock resources with
> another
> process and has been chosen as the deadlock victim. Return the
> transaction. "
> Please again what is the cause and solution for this error ?
> Note :- This happens on peak hours when they generate Reports and upload
> transactions .
> Thanks for cooperation
> "Sue Hoegemeier" wrote:
>|||Thank you all,
Our programmers are working on it.
"Aaron Bertrand [SQL Server MVP]" wrote:
> You may consider ensuring that your reporting queries (I assume SELECT onl
y)
> use snapshot isolation level. Better still would be to replicate or mirro
r
> to a reporting server which will handle the queries independent of the tru
e
> OLTP activity.
> --
> Aaron Bertrand
> SQL Server MVP
> http://www.sqlblog.com/
> http://www.aspfaq.com/5006
>
>
> "maslooki" <maslooki@.discussions.microsoft.com> wrote in message
> news:1D25A567-53FF-4667-9D3D-39F50D1F7FD7@.microsoft.com...
>
>sql
I/O requests taking longer than 15 seconds to complete
windows 2000 advanced servers clusterring.
SQL Server has encountered 16 occurrence(s) of I/O requests taking longer
than 15 seconds to complete on file [Y:\Microsoft SQL
Server\MSSQL.1\MSSQL\DATA\tempdb.mdf] in database [tempdb] (2). The OS file
handle is 0x00000768. The offset of the latest long I/O is: 0x00000000652000
.
what is the cause and solution ?
NOTE:- 1- there are no sql 2005 service packs installed.
2- all HP Servers hardwares and HP SAN Storage drivers and firmwares are
updated upto date .
3- this error is generated on application peak hours .This blog entry explains the error and offers suggestions
for addressing the issue:
http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/21/642314.aspx
-Sue
On Mon, 19 Mar 2007 03:02:11 -0700, maslooki
<maslooki@.discussions.microsoft.com> wrote:
>We get below error in MS SQL 2005 server which is fail over virtual server on
>windows 2000 advanced servers clusterring.
>SQL Server has encountered 16 occurrence(s) of I/O requests taking longer
>than 15 seconds to complete on file [Y:\Microsoft SQL
>Server\MSSQL.1\MSSQL\DATA\tempdb.mdf] in database [tempdb] (2). The OS file
>handle is 0x00000768. The offset of the latest long I/O is: 0x00000000652000
>.
>what is the cause and solution ?
>NOTE:- 1- there are no sql 2005 service packs installed.
>2- all HP Servers hardwares and HP SAN Storage drivers and firmwares are
>updated upto date .
>3- this error is generated on application peak hours .
>|||Thank you MR.Sue Hoegemeier for reply
We also get the below error on the application side :-
" Transaction (Process ID 57) was deadlocked on lock resources with another
process and has been chosen as the deadlock victim. Return the transaction. "
Please again what is the cause and solution for this error ?
Note :- This happens on peak hours when they generate Reports and upload
transactions .
Thanks for cooperation
"Sue Hoegemeier" wrote:
> This blog entry explains the error and offers suggestions
> for addressing the issue:
> http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/21/642314.aspx
> -Sue
> On Mon, 19 Mar 2007 03:02:11 -0700, maslooki
> <maslooki@.discussions.microsoft.com> wrote:
> >We get below error in MS SQL 2005 server which is fail over virtual server on
> >windows 2000 advanced servers clusterring.
> >
> >SQL Server has encountered 16 occurrence(s) of I/O requests taking longer
> >than 15 seconds to complete on file [Y:\Microsoft SQL
> >Server\MSSQL.1\MSSQL\DATA\tempdb.mdf] in database [tempdb] (2). The OS file
> >handle is 0x00000768. The offset of the latest long I/O is: 0x00000000652000
> >.
> >
> >what is the cause and solution ?
> >
> >NOTE:- 1- there are no sql 2005 service packs installed.
> >2- all HP Servers hardwares and HP SAN Storage drivers and firmwares are
> >updated upto date .
> >3- this error is generated on application peak hours .
> >
>|||You may consider ensuring that your reporting queries (I assume SELECT only)
use snapshot isolation level. Better still would be to replicate or mirror
to a reporting server which will handle the queries independent of the true
OLTP activity.
--
Aaron Bertrand
SQL Server MVP
http://www.sqlblog.com/
http://www.aspfaq.com/5006
"maslooki" <maslooki@.discussions.microsoft.com> wrote in message
news:1D25A567-53FF-4667-9D3D-39F50D1F7FD7@.microsoft.com...
> Thank you MR.Sue Hoegemeier for reply
> We also get the below error on the application side :-
> " Transaction (Process ID 57) was deadlocked on lock resources with
> another
> process and has been chosen as the deadlock victim. Return the
> transaction. "
> Please again what is the cause and solution for this error ?
> Note :- This happens on peak hours when they generate Reports and upload
> transactions .
> Thanks for cooperation
> "Sue Hoegemeier" wrote:
>> This blog entry explains the error and offers suggestions
>> for addressing the issue:
>> http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/21/642314.aspx
>> -Sue
>> On Mon, 19 Mar 2007 03:02:11 -0700, maslooki
>> <maslooki@.discussions.microsoft.com> wrote:
>> >We get below error in MS SQL 2005 server which is fail over virtual
>> >server on
>> >windows 2000 advanced servers clusterring.
>> >
>> >SQL Server has encountered 16 occurrence(s) of I/O requests taking
>> >longer
>> >than 15 seconds to complete on file [Y:\Microsoft SQL
>> >Server\MSSQL.1\MSSQL\DATA\tempdb.mdf] in database [tempdb] (2). The OS
>> >file
>> >handle is 0x00000768. The offset of the latest long I/O is:
>> >0x00000000652000
>> >.
>> >
>> >what is the cause and solution ?
>> >
>> >NOTE:- 1- there are no sql 2005 service packs installed.
>> >2- all HP Servers hardwares and HP SAN Storage drivers and firmwares are
>> >updated upto date .
>> >3- this error is generated on application peak hours .
>> >
>>|||Thank you all,
Our programmers are working on it.
"Aaron Bertrand [SQL Server MVP]" wrote:
> You may consider ensuring that your reporting queries (I assume SELECT only)
> use snapshot isolation level. Better still would be to replicate or mirror
> to a reporting server which will handle the queries independent of the true
> OLTP activity.
> --
> Aaron Bertrand
> SQL Server MVP
> http://www.sqlblog.com/
> http://www.aspfaq.com/5006
>
>
> "maslooki" <maslooki@.discussions.microsoft.com> wrote in message
> news:1D25A567-53FF-4667-9D3D-39F50D1F7FD7@.microsoft.com...
> > Thank you MR.Sue Hoegemeier for reply
> >
> > We also get the below error on the application side :-
> > " Transaction (Process ID 57) was deadlocked on lock resources with
> > another
> > process and has been chosen as the deadlock victim. Return the
> > transaction. "
> >
> > Please again what is the cause and solution for this error ?
> >
> > Note :- This happens on peak hours when they generate Reports and upload
> > transactions .
> >
> > Thanks for cooperation
> >
> > "Sue Hoegemeier" wrote:
> >
> >> This blog entry explains the error and offers suggestions
> >> for addressing the issue:
> >> http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/21/642314.aspx
> >>
> >> -Sue
> >>
> >> On Mon, 19 Mar 2007 03:02:11 -0700, maslooki
> >> <maslooki@.discussions.microsoft.com> wrote:
> >>
> >> >We get below error in MS SQL 2005 server which is fail over virtual
> >> >server on
> >> >windows 2000 advanced servers clusterring.
> >> >
> >> >SQL Server has encountered 16 occurrence(s) of I/O requests taking
> >> >longer
> >> >than 15 seconds to complete on file [Y:\Microsoft SQL
> >> >Server\MSSQL.1\MSSQL\DATA\tempdb.mdf] in database [tempdb] (2). The OS
> >> >file
> >> >handle is 0x00000768. The offset of the latest long I/O is:
> >> >0x00000000652000
> >> >.
> >> >
> >> >what is the cause and solution ?
> >> >
> >> >NOTE:- 1- there are no sql 2005 service packs installed.
> >> >2- all HP Servers hardwares and HP SAN Storage drivers and firmwares are
> >> >updated upto date .
> >> >3- this error is generated on application peak hours .
> >> >
> >>
> >>
>
>
Sunday, February 19, 2012
i need desperate attention........please guys
hello ppl.......
've installed sql 2005 xpress with advanced services......also installed the toolkit that came along..
all 'm interested in is to perform certain data mining operations on the adventureworks db..
;ve also installed the advn works db.........
now here is the prob.......
jus like how the sql online book instructed me i first started off with the datamining tutorial..where i was told to first OPEN BIDS select new PROJECT then make sure that the analysis Services template was selected and then go ahead with selection of the particular sln file....
the problem is that I DON'T SEE ANY ANALYSIS SERVICE TEMPLATE....all i c is a REPORT template..
i really need help guys..... 'm new to .net really feeling helpless...
please hurry guys....
thx a ton..
hanish
Analysis Services and Data Mining are not included with Express (even with Advanced Services).
http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx
|||You can download the evaluation edition of SQL Server 2005 which is a 180 day evaluation of Enterprise Edition from http://www.microsoft.com/downloads/details.aspx?FamilyID=6931fa7f-c094-49a2-a050-2d07993566ec|||thx a ton guys............
ur replies were really helpful......
will bring up new posts ;m sure...n i need u guys ..so hang around
thx again..
hanish
I need advanced help please.
Step 1:
I have a database that holds timesheet records for users. These records are by week. I need a query that will return the username of the people that have entered 0 time for all of their timesheets in the database.
Step 2:
I need a query that will delete and timesheets that have 0 time entered after the last timesheet with time entered. If they entered time in week 3 but have 0 time for week 4 and 5 and then are withdrawn at week 5 I need to remove timesheets for week 4 and 5. Note, they could have entered 0 for week 2 as long as week three has time entered.
Step 3: - THIS IS THE MONSTER-
Since the timesheets are by week, I need to find the date that the last time was entered. The timesheet has a start-date then suntime, montime, tuetime, wedtime etc. Sunday would equal the week start-date. So, if time was last entered on Friday, the date that I'm looking for is the start-date + 5. My problem is, How do I go about doing this? I've been trying to do it all in a query to no avail.
I really appreciate any assistance that anyone can offer.
Thank you,
Still learning......
-ScottAll of the below is assuming that Username is unique, and that the"time" columns contain a 0 when there is no time entered. (Ifthey contain a NULL then the ISNULL function will need to beused.) This should hopefully be enough to get you going; Ihaven't tested the code so there may be some syntax errors.
spfeiffer13 wrote:
Step 1:
I have a database that holdstimesheet records for users. These records are by week. Ineed a query that will return the username of the people that haveentered 0 time for all of their timesheets in the database.
SELECT DISTINCT
Username
FROM
yourTable
INNER JOIN
(SELECT UserName, COUNT(*) AS TotalTimeSheetsPerUsername FROMyourTable GROUP BY UserName) AS Totals ON yourTable.Username =Totals.Username
WHERE
suntime+montime+tuetime+wedtime+thutime+fritime+sattime = 0
GROUP BY
yourTable.Username
HAVING
COUNT(*) = Totals.TotalTimeSheetsPerUsername
spfeiffer13 wrote:
Step 2:
I need a query that willdelete and timesheets that have 0 time entered after the last timesheetwith time entered. If they entered time in week 3 but have 0 timefor week 4 and 5 and then are withdrawn at week 5 I need to removetimesheets for week 4 and 5. Note, they could have entered 0 forweek 2 as long as week three has time entered.
DELETE
yourTable
FROM
yourTable
INNER JOIN
(
SELECT
Username,
MAX(StartDate) AS StartDate
FROM
yourTable
WHERE
suntime+montime+tuetime+wedtime+thutime+fritime+sattime = 0
GROUP BY
Username
) AS LastBlankTimesheet ON yourTable.Username =LastBlankTimesheet.Username AND yourTable.StartDate >=LastBlankTimesheet.StartDate
spfeiffer13 wrote:
Step 3: - THIS IS THE MONSTER-
Sincethe timesheets are by week, I need to find the date that the last timewas entered. The timesheet has a start-date then suntime,montime, tuetime, wedtime etc. Sunday would equal the weekstart-date. So, if time was last entered on Friday, the date thatI'm looking for is the start-date + 5. My problem is, How do I goabout doing this? I've been trying to do it all in a query to noavail.
This is what came to mind; maybe someone else will have something more elegant:
SELECT
UserName
MAX(TimesheetDate)
FROM
(
SELECT
UserName,
StartDate AS TimesheetDate,
SunTime AS TimeEntered
FROM
yourTable
UNION ALL
SELECT
UserName,
DATEADD(d,1,StartDate) AS TimesheetDate,
MonTime AS TimeEntered
FROM
yourTable
UNION ALL
SELECT
UserName,
DATEADD(d,2,StartDate) AS TimesheetDate,
TueTime AS TimeEntered
FROM
yourTable
UNION ALL
SELECT
UserName,
DATEADD(d,3,StartDate) AS TimesheetDate,
WedTime AS TimeEntered
FROM
yourTable
UNION ALL
SELECT
UserName,
DATEADD(d,4,StartDate) AS TimesheetDate,
ThuTime AS TimeEntered
FROM
yourTable
UNION ALL
SELECT
UserName,
DATEADD(d,5,StartDate) AS TimesheetDate,
FriTime AS TimeEntered
FROM
yourTable
UNION ALL
SELECT
UserName,
DATEADD(d,6,StartDate) AS TimesheetDate,
SatTime AS TimeEntered
FROM
yourTable
) AS TimesheetDates
WHERE
TimeEntered <> 0
GROUP BY
UserName
|||Thanks for the help. It all worked great except for one thing on Step 3. I keep getting this error:
Server: Msg 207, Level 16, State 3, Line 1
Invalid column name 'ATTSTARTDT'.
I know that it is probably somehting stupid that I'm doing. I have the code below. Thanks in advance for any help that anyone can offer.
SELECT
schlstuid,
MAX(ATTSTARTDT)
FROM
(
SELECT
schlstuid,
ATTSTARTDT AS TimesheetDate,
sunmns AS TimeEntered
FROM
TimeSheetDailyAttendance
UNION ALL
SELECT
schlstuid,
ATTSTARTDT AS TimesheetDate,
sunhrs AS TimeEntered
FROM
TimeSheetDailyAttendance
UNION ALL
SELECT
schlstuid,
DATEADD(d,1,ATTSTARTDT) AS TimesheetDate,
monmns AS TimeEntered
FROM
TimeSheetDailyAttendance
UNION ALL
SELECT
schlstuid,
DATEADD(d,1,ATTSTARTDT) AS TimesheetDate,
monhrs AS TimeEntered
FROM
TimeSheetDailyAttendance
UNION ALL
SELECT
schlstuid,
DATEADD(d,2,ATTSTARTDT) AS TimesheetDate,
tuemns AS TimeEntered
FROM
TimeSheetDailyAttendance
UNION ALL
SELECT
schlstuid,
DATEADD(d,2,ATTSTARTDT) AS TimesheetDate,
tuehrs AS TimeEntered
FROM
TimeSheetDailyAttendance
UNION ALL
SELECT
schlstuid,
DATEADD(d,3,ATTSTARTDT) AS TimesheetDate,
wedmns AS TimeEntered
FROM
TimeSheetDailyAttendance
UNION ALL
SELECT
schlstuid,
DATEADD(d,3,ATTSTARTDT) AS TimesheetDate,
wedhrs AS TimeEntered
FROM
TimeSheetDailyAttendance
UNION ALL
SELECT
schlstuid,
DATEADD(d,4,ATTSTARTDT) AS TimesheetDate,
Thrmns AS TimeEntered
FROM
TimeSheetDailyAttendance
UNION ALL
SELECT
schlstuid,
DATEADD(d,4,ATTSTARTDT) AS TimesheetDate,
Thrhrs AS TimeEntered
FROM
TimeSheetDailyAttendance
UNION ALL
SELECT
schlstuid,
DATEADD(d,5,ATTSTARTDT) AS TimesheetDate,
Frimns AS TimeEntered
FROM
TimeSheetDailyAttendance
UNION ALL
SELECT
schlstuid,
DATEADD(d,5,ATTSTARTDT) AS TimesheetDate,
Frihrs AS TimeEntered
FROM
TimeSheetDailyAttendance
UNION ALL
SELECT
schlstuid,
DATEADD(d,6,ATTSTARTDT) AS TimesheetDate,
Satmns AS TimeEntered
FROM
TimeSheetDailyAttendance
UNION ALL
SELECT
schlstuid,
DATEADD(d,6,ATTSTARTDT) AS TimesheetDate,
Sathrs AS TimeEntered
FROM
TimeSheetDailyAttendance
) AS TimesheetDates
WHERE
TimeEntered <> 0
GROUP BY
schlstuid
--------
I know that this is one long query. Thanks again for any help.
Still learning....
-Scott|||Use MAX(TimesheetDate) instead. When we added days to ATTSTARTDT we used TimesheetDate as the column name.
|||Worked like a charm. Thank you!!!!!!