Showing posts with label log. Show all posts
Showing posts with label log. Show all posts

Thursday, March 22, 2012

A Connection could not be established to <server>

Hi, I received this message today when I tried to log on to my SQL Server:

**********************
A connection could not be established to <server>

Reason: SQL Server does not exist or Access denied
ConnectionOpen(Connect())..

Please verify SQL Server is running and check your SQL Registration properties**********************

My SQL server wasn't running, however I am not able to start it (right click->start doesn't work).

Any thoughts?
thanksGo to LOG subdirectory and open ERRORLOG file with your favorite text editor. Check event log (Application) for reasons of service startup failure.|||check that your service account hasnt changed it's password;

one simple way to do this is to set the sqlserver service account to local and try to start it if it works your service account is not permissioned or more than likely the password has been changed.

if this is the case. dont forget your sqlserveragent acct as well.

reply back if you are using a local system account

Monday, March 19, 2012

9MB of errors in log file each time RS report is run

I have a report that is running extremely slowly. The Reporting
Services log files seem to generate 9MB of errors each time I run the
report. The error is the text below repeated over and over. Can anyone
help?
Thanks,
Burt
<Header>
<Product>Microsoft SQL Server Reporting Services Version
8.00.743.00</Product>
<Locale>en-US</Locale>
<TimeZone>Pacific Daylight Time</TimeZone>
<Path>C:\Program Files\Microsoft SQL Server\MSSQL\Reporting
Services\LogFiles\ReportServer__07_01_2004_11_38_28.log</Path>
<SystemName>SFCMSREPORTS</SystemName>
<OSName>Microsoft Windows NT 5.0.2195.0</OSName>
<OSVersion>5.0.2195.0</OSVersion>
</Header>
aspnet_wp!processing!1c24!7/1/2004-11:38:28:: a ASSERT: Assertion
failed! Call stack:
Microsoft.ReportingServices.ReportProcessing.ExprHostObjectModel.IndexedExprHost.get_Item(Int32
index)
Microsoft.ReportingServices.ReportProcessing.be.a(e A_0, ObjectType
A_1, String A_2, String A_3)
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+as.a(e
A_0, String A_1)
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+as.c()
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+ay.b()
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+ay.e()
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+ay.h()
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+ay.c()
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+ac.b()
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+ax.d()
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+a2.g()
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+ax.a(a5
A_0)
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+a2.f()
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+a2.a(Boolean&
A_0)
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+ax.b()
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+a2.a(Object
A_0)
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+s.a()
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+s.a(Object
A_0)
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+bb.a(ParameterInfoCollection
A_0, Boolean A_1, GetReportChunk A_2)
Microsoft.ReportingServices.ReportProcessing.ReportProcessing.a(Report
A_0, ProcessingContext A_1, Boolean A_2, GetReportChunk A_3, ax A_4,
DateTime A_5, z& A_6)
Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(DateTime
executionTimeStamp, GetReportChunk getCompiledDefinitionCallback,
ProcessingContext pc, RenderingContext rc)
Microsoft.ReportingServices.Library.RSService.RenderAsLive(CatalogItemContext
reportContext, ItemProperties properties, ParameterInfoCollection
effectiveParameters, Guid reportId, ClientRequest session, String
description, ReportSnapshot intermediateSnapshot,
DataSourceInfoCollection thisReportDataSources, Boolean
cachingRequested, Warning[]& warnings, ReportSnapshot&
resultSnapshotData, DateTime& executionDateTime,
RuntimeDataSourceInfoCollection& alldataSources, UserProfileState&
usedUserProfile)
Microsoft.ReportingServices.Library.RSService.RenderAsLiveOrSnapshot(CatalogItemContext
reportContext, ClientRequest session, Warning[]& warnings,
ParameterInfoCollection& effectiveParameters)
Microsoft.ReportingServices.Library.RSService.RenderFirst(CatalogItemContext
reportContext, ClientRequest session, Warning[]& warnings,
ParameterInfoCollection& effectiveParameters, String[]&
secondaryStreamNames)
Microsoft.ReportingServices.Library.RenderFirstCancelableStep.Execute()
Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()
Microsoft.ReportingServices.Library.RenderFirstCancelableStep.RenderFirst(RSService
rs, CatalogItemContext reportContext, ClientRequest session,
JobTypeEnum type, Warning[]& warnings, ParameterInfoCollection&
effectiveParameters, String[]& secondaryStreamNames)
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport(HttpResponseStreamFactory
streamFactory)
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport()
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderItem(ItemType
itemType)
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPageContent()
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPage()
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.ProcessRequest(HttpContext
context)
System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
System.Web.HttpApplication.ResumeSteps(Exception error)
System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext
context, AsyncCallback cb, Object extraData)
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
System.Web.HttpRuntime.ProcessRequest(HttpWorkerRequest wr)
System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32
iWRType)Hi Burt, could you please send report definition?
"Burt" burt_5920@.yahoo.com wrote in message
news:19e5f39f.0407011047.ccfd350@.posting.google.com...
> I have a report that is running extremely slowly. The Reporting
> Services log files seem to generate 9MB of errors each time I run the
> report. The error is the text below repeated over and over. Can anyone
> help?
> Thanks,
> Burt
> <Header>
> <Product>Microsoft SQL Server Reporting Services Version
> 8.00.743.00</Product>
> <Locale>en-US</Locale>
> <TimeZone>Pacific Daylight Time</TimeZone>
> <Path>C:\Program Files\Microsoft SQL Server\MSSQL\Reporting
> Services\LogFiles\ReportServer__07_01_2004_11_38_28.log</Path>
> <SystemName>SFCMSREPORTS</SystemName>
> <OSName>Microsoft Windows NT 5.0.2195.0</OSName>
> <OSVersion>5.0.2195.0</OSVersion>
> </Header>
> aspnet_wp!processing!1c24!7/1/2004-11:38:28:: a ASSERT: Assertion
> failed! Call stack:
>
Microsoft.ReportingServices.ReportProcessing.ExprHostObjectModel.IndexedExpr
Host.get_Item(Int32
> index)
> Microsoft.ReportingServices.ReportProcessing.be.a(e A_0, ObjectType
> A_1, String A_2, String A_3)
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing+as.a(e
> A_0, String A_1)
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing+as.c()
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing+ay.b()
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing+ay.e()
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing+ay.h()
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing+ay.c()
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing+ac.b()
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing+ax.d()
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing+a2.g()
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing+ax.a(a5
> A_0)
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing+a2.f()
>
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+a2.a(Boolean&
> A_0)
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing+ax.b()
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing+a2.a(Object
> A_0)
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing+s.a()
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing+s.a(Object
> A_0)
>
Microsoft.ReportingServices.ReportProcessing.ReportProcessing+bb.a(Parameter
InfoCollection
> A_0, Boolean A_1, GetReportChunk A_2)
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing.a(Report
> A_0, ProcessingContext A_1, Boolean A_2, GetReportChunk A_3, ax A_4,
> DateTime A_5, z& A_6)
>
Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(D
ateTime
> executionTimeStamp, GetReportChunk getCompiledDefinitionCallback,
> ProcessingContext pc, RenderingContext rc)
>
Microsoft.ReportingServices.Library.RSService.RenderAsLive(CatalogItemContex
t
> reportContext, ItemProperties properties, ParameterInfoCollection
> effectiveParameters, Guid reportId, ClientRequest session, String
> description, ReportSnapshot intermediateSnapshot,
> DataSourceInfoCollection thisReportDataSources, Boolean
> cachingRequested, Warning[]& warnings, ReportSnapshot&
> resultSnapshotData, DateTime& executionDateTime,
> RuntimeDataSourceInfoCollection& alldataSources, UserProfileState&
> usedUserProfile)
>
Microsoft.ReportingServices.Library.RSService.RenderAsLiveOrSnapshot(Catalog
ItemContext
> reportContext, ClientRequest session, Warning[]& warnings,
> ParameterInfoCollection& effectiveParameters)
>
Microsoft.ReportingServices.Library.RSService.RenderFirst(CatalogItemContext
> reportContext, ClientRequest session, Warning[]& warnings,
> ParameterInfoCollection& effectiveParameters, String[]&
> secondaryStreamNames)
> Microsoft.ReportingServices.Library.RenderFirstCancelableStep.Execute()
>
Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()
>
Microsoft.ReportingServices.Library.RenderFirstCancelableStep.RenderFirst(RS
Service
> rs, CatalogItemContext reportContext, ClientRequest session,
> JobTypeEnum type, Warning[]& warnings, ParameterInfoCollection&
> effectiveParameters, String[]& secondaryStreamNames)
>
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport(
HttpResponseStreamFactory
> streamFactory)
>
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport(
)
>
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderItem(It
emType
> itemType)
>
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPageCon
tent()
>
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPage()
>
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.ProcessReques
t(HttpContext
> context)
>
System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplicati
on+IExecutionStep.Execute()
> System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
> completedSynchronously)
> System.Web.HttpApplication.ResumeSteps(Exception error)
>
System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(
HttpContext
> context, AsyncCallback cb, Object extraData)
> System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
> System.Web.HttpRuntime.ProcessRequest(HttpWorkerRequest wr)
> System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32
> iWRType)

9GB log file generated

Hi
The reporting services is generating large log files of 9GB daily and using
all the virtual memory that all applications on my win2003 server stop
running. Application is running on sql server 2000 and Microsoft Report
Server SP1.
How do I go about trouble-shooting this?
--
Regards PatsyWhich report server log is getting up to 9GB?
Is it the ReportServerTempDB log or ReportServer log? (it better not be the
ReportServer log...)
Or do you mean the actual LOG files in the reportserver directory? (these
are text files)
One thing you can check quickly, make sure the ReportServerTempDB database
is set to simple recovery mode.
=-Chris
"Patsy" <Patsy@.discussions.microsoft.com> wrote in message
news:12B3FCC9-60A3-4F48-B1F0-385B5C2DA7D4@.microsoft.com...
> Hi
> The reporting services is generating large log files of 9GB daily and
> using
> all the virtual memory that all applications on my win2003 server stop
> running. Application is running on sql server 2000 and Microsoft Report
> Server SP1.
> How do I go about trouble-shooting this?
> --
> Regards Patsy|||This is a known issue. You could search this group for -- log hotfix.
One reply from MS said:
Ask product support for the fix associated with KB 885286.
I believe this is fixed in sp2
Patsy wrote:
> Hi
> The reporting services is generating large log files of 9GB daily and using
> all the virtual memory that all applications on my win2003 server stop
> running. Application is running on sql server 2000 and Microsoft Report
> Server SP1.
> How do I go about trouble-shooting this?
> --
> Regards Patsy

99Gb log file...help

Hello. We have had a new Win 2003 SBS Server installed 2 months ago. All has
bee ok for the last 2 months but today I have noticed that the d: drive 120Gb
partition only has just under a Gb of space left. On further inspection I
have found a 99Gb log file (log.ldf) This is under MSSQL$SHAREPOINT\Data.
Sharepoint is not even used atm.
My question is why is there a log file this large and also how do I go about
clearing it. I have read about truncation etc but a file this large seems
that there maybe something else wrong. I am fairly new to SQL etc so sorry if
not enough info but any help would be much appreciated.
Regards,
Tom.
Look at this.
http://groups.google.ch/group/micros...157c86a71bf8f9
It has all got to do with the recovery setting and if you backup your log or
not.
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Tom P via droptable.com" wrote:

> Hello. We have had a new Win 2003 SBS Server installed 2 months ago. All has
> bee ok for the last 2 months but today I have noticed that the d: drive 120Gb
> partition only has just under a Gb of space left. On further inspection I
> have found a 99Gb log file (log.ldf) This is under MSSQL$SHAREPOINT\Data.
> Sharepoint is not even used atm.
> My question is why is there a log file this large and also how do I go about
> clearing it. I have read about truncation etc but a file this large seems
> that there maybe something else wrong. I am fairly new to SQL etc so sorry if
> not enough info but any help would be much appreciated.
> Regards,
> Tom.
>
|||Tom,
Sounds like the database is in full recovery mode and has never been backed
up. I would truncate the log. Shrink it to something reasonable... say
500Mb. Set the recovery model on the database to simple. And even though
you don't use it today, go ahead and use the maintenance wizard to configure
and automatic backup of the database at least once per week. All of these
tasks can be done through the Enterprise manager GUI.
"Tom P via droptable.com" <forum@.droptable.com> wrote in message
news:5262B70E980A0@.droptable.com...
> Hello. We have had a new Win 2003 SBS Server installed 2 months ago. All
> has
> bee ok for the last 2 months but today I have noticed that the d: drive
> 120Gb
> partition only has just under a Gb of space left. On further inspection I
> have found a 99Gb log file (log.ldf) This is under MSSQL$SHAREPOINT\Data.
> Sharepoint is not even used atm.
> My question is why is there a log file this large and also how do I go
> about
> clearing it. I have read about truncation etc but a file this large seems
> that there maybe something else wrong. I am fairly new to SQL etc so sorry
> if
> not enough info but any help would be much appreciated.
> Regards,
> Tom.
|||Sorted it...Shrunk the log down to 56Mb from 99Gb...Will set a maintenance
program too.
Thnaks for all the help.
Danny wrote:[vbcol=seagreen]
>Tom,
>Sounds like the database is in full recovery mode and has never been backed
>up. I would truncate the log. Shrink it to something reasonable... say
>500Mb. Set the recovery model on the database to simple. And even though
>you don't use it today, go ahead and use the maintenance wizard to configure
>and automatic backup of the database at least once per week. All of these
>tasks can be done through the Enterprise manager GUI.
>[quoted text clipped - 14 lines]

99Gb log file...help

Hello. We have had a new Win 2003 SBS Server installed 2 months ago. All has
bee ok for the last 2 months but today I have noticed that the d: drive 120Gb
partition only has just under a Gb of space left. On further inspection I
have found a 99Gb log file (log.ldf) This is under MSSQL$SHAREPOINT\Data.
Sharepoint is not even used atm.
My question is why is there a log file this large and also how do I go about
clearing it. I have read about truncation etc but a file this large seems
that there maybe something else wrong. I am fairly new to SQL etc so sorry if
not enough info but any help would be much appreciated.
Regards,
Tom.Tom,
Sounds like the database is in full recovery mode and has never been backed
up. I would truncate the log. Shrink it to something reasonable... say
500Mb. Set the recovery model on the database to simple. And even though
you don't use it today, go ahead and use the maintenance wizard to configure
and automatic backup of the database at least once per week. All of these
tasks can be done through the Enterprise manager GUI.
"Tom P via SQLMonster.com" <forum@.SQLMonster.com> wrote in message
news:5262B70E980A0@.SQLMonster.com...
> Hello. We have had a new Win 2003 SBS Server installed 2 months ago. All
> has
> bee ok for the last 2 months but today I have noticed that the d: drive
> 120Gb
> partition only has just under a Gb of space left. On further inspection I
> have found a 99Gb log file (log.ldf) This is under MSSQL$SHAREPOINT\Data.
> Sharepoint is not even used atm.
> My question is why is there a log file this large and also how do I go
> about
> clearing it. I have read about truncation etc but a file this large seems
> that there maybe something else wrong. I am fairly new to SQL etc so sorry
> if
> not enough info but any help would be much appreciated.
> Regards,
> Tom.|||Look at this.
http://groups.google.ch/group/microsoft.public.sqlserver.programming/browse_thread/thread/a1f9700d9b8177b5/77157c86a71bf8f9?lnk=st&q=sql+transaction+log+large&rnum=5&hl=en#77157c86a71bf8f9
It has all got to do with the recovery setting and if you backup your log or
not.
--
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Tom P via SQLMonster.com" wrote:
> Hello. We have had a new Win 2003 SBS Server installed 2 months ago. All has
> bee ok for the last 2 months but today I have noticed that the d: drive 120Gb
> partition only has just under a Gb of space left. On further inspection I
> have found a 99Gb log file (log.ldf) This is under MSSQL$SHAREPOINT\Data.
> Sharepoint is not even used atm.
> My question is why is there a log file this large and also how do I go about
> clearing it. I have read about truncation etc but a file this large seems
> that there maybe something else wrong. I am fairly new to SQL etc so sorry if
> not enough info but any help would be much appreciated.
> Regards,
> Tom.
>|||Sorted it...Shrunk the log down to 56Mb from 99Gb...Will set a maintenance
program too.
Thnaks for all the help.
Danny wrote:
>Tom,
>Sounds like the database is in full recovery mode and has never been backed
>up. I would truncate the log. Shrink it to something reasonable... say
>500Mb. Set the recovery model on the database to simple. And even though
>you don't use it today, go ahead and use the maintenance wizard to configure
>and automatic backup of the database at least once per week. All of these
>tasks can be done through the Enterprise manager GUI.
>> Hello. We have had a new Win 2003 SBS Server installed 2 months ago. All
>> has
>[quoted text clipped - 14 lines]
>> Tom.

99Gb log file...help

Hello. We have had a new Win 2003 SBS Server installed 2 months ago. All has
bee ok for the last 2 months but today I have noticed that the d: drive 120G
b
partition only has just under a Gb of space left. On further inspection I
have found a 99Gb log file (log.ldf) This is under MSSQL$SHAREPOINT\Data.
Sharepoint is not even used atm.
My question is why is there a log file this large and also how do I go about
clearing it. I have read about truncation etc but a file this large seems
that there maybe something else wrong. I am fairly new to SQL etc so sorry i
f
not enough info but any help would be much appreciated.
Regards,
Tom.Look at this.
http://groups.google.ch/group/micro...7157c86a71bf8f9
It has all got to do with the recovery setting and if you backup your log or
not.
--
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Tom P via droptable.com" wrote:

> Hello. We have had a new Win 2003 SBS Server installed 2 months ago. All h
as
> bee ok for the last 2 months but today I have noticed that the d: drive 12
0Gb
> partition only has just under a Gb of space left. On further inspection I
> have found a 99Gb log file (log.ldf) This is under MSSQL$SHAREPOINT\Data.
> Sharepoint is not even used atm.
> My question is why is there a log file this large and also how do I go abo
ut
> clearing it. I have read about truncation etc but a file this large seems
> that there maybe something else wrong. I am fairly new to SQL etc so sorry
if
> not enough info but any help would be much appreciated.
> Regards,
> Tom.
>|||Tom,
Sounds like the database is in full recovery mode and has never been backed
up. I would truncate the log. Shrink it to something reasonable... say
500Mb. Set the recovery model on the database to simple. And even though
you don't use it today, go ahead and use the maintenance wizard to configure
and automatic backup of the database at least once per week. All of these
tasks can be done through the Enterprise manager GUI.
"Tom P via droptable.com" <forum@.droptable.com> wrote in message
news:5262B70E980A0@.droptable.com...
> Hello. We have had a new Win 2003 SBS Server installed 2 months ago. All
> has
> bee ok for the last 2 months but today I have noticed that the d: drive
> 120Gb
> partition only has just under a Gb of space left. On further inspection I
> have found a 99Gb log file (log.ldf) This is under MSSQL$SHAREPOINT\Data.
> Sharepoint is not even used atm.
> My question is why is there a log file this large and also how do I go
> about
> clearing it. I have read about truncation etc but a file this large seems
> that there maybe something else wrong. I am fairly new to SQL etc so sorry
> if
> not enough info but any help would be much appreciated.
> Regards,
> Tom.|||Sorted it...Shrunk the log down to 56Mb from 99Gb...Will set a maintenance
program too.
Thnaks for all the help.
Danny wrote:[vbcol=seagreen]
>Tom,
>Sounds like the database is in full recovery mode and has never been backed
>up. I would truncate the log. Shrink it to something reasonable... say
>500Mb. Set the recovery model on the database to simple. And even though
>you don't use it today, go ahead and use the maintenance wizard to configur
e
>and automatic backup of the database at least once per week. All of these
>tasks can be done through the Enterprise manager GUI.
>
>[quoted text clipped - 14 lines]

95 gig Transaction log!

Hi all, I am a lowly help desk operator who has been thrown into the position of maintaining our SQL server until a new DBA is hired.

The problem is the transaction log has grown to 95GB. I truncated the log file and it shows 95 GB allocated, 588MB in use. I have researched and found that I need to use the DBCC SHRINKFILE command to free up the space, however, I have no clue how to use this command. I can't seem to find any documents on the syntax to use this with osql from the command line.

We are running out of space on the drive and everyone is looking at me to do something about it. Any help would be immensely appreciated.Hi all, I am a lowly help desk operator who has been thrown into the position of maintaining our SQL server until a new DBA is hired.

The problem is the transaction log has grown to 95GB. I truncated the log file and it shows 95 GB allocated, 588MB in use. I have researched and found that I need to use the DBCC SHRINKFILE command to free up the space, however, I have no clue how to use this command. I can't seem to find any documents on the syntax to use this with osql from the command line.

We are running out of space on the drive and everyone is looking at me to do something about it. Any help would be immensely appreciated.

See this ...http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=653804&SiteID=1 (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=653804&SiteID=1)|||This still doesn't help me much. What I am looking for in instructions on HOW to run the commands to shrink the log file. Do I run it from command line? and if so do I just type in "DBCC SHRINKFILE filename" ?|||First make sure there are no open transactions:

select * from master.dbo.sysprocesses where open_tran > 0

then run:
dbcc sqlperf(logspace)

Use the name retreived above and run dbcc shrinkfile
dbcc shrinkfile([database_Log])

exec sp_spaceused

if the size does not go down, you can always dump the transaction log
dump tran [databasename] with no_log

Please do research before executing the last line of code to fully understand what you are about to do.

Good luck,
Hope this helped|||You should run it in query analyzer, assuming you are using sql server 2000|||I don't have much to add beyond what Reghardt has already said, but I will mention that properly scheduled backups of your transaction log should handle keeping your filesize down quite nicely.

My guess is that there is no transaction log backup scheduled, or they are scheduled, but have been failing for a while now & havn't been monitored.

Here is a great guide that should help you with this.
http://searchsqlserver.techtarget.com/generic/0,295582,sid87_gci1166473,00.html

Shrinking your log-file will solve your problem now, but it will just happen all over again down the road if you don't set up proper backups.

In addition, it is a very good idea to put a threshold on all of your transaction logs. That way, if a transaction log starts growing too big, it will only affect the database it is assigned to, instead of filling up your entire server.|||This worked perfectly, I was able to get it down to 4.6 gigs. Appreciate all the help.

8gb of log files - how to i stop ?

Hi,
Reporting services has been running for a couple of months. I noticed today
that I had 8GB of log files. Is there anything I can do to stop so much
being logged ? i don't really need it.
Thanks
ScottThis is a known issue (Bug #: 304241 -
http://support.microsoft.com/kb/885286/) and is fixed in Reporting Services
SP2 http://www.microsoft.com/downloads/details.aspx?FamilyID=502C0D89-130...
--
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"scott" <nospamscott@.yahoo.com> wrote in message
news:uConQxBlFHA.708@.TK2MSFTNGP09.phx.gbl...
> Hi,
> Reporting services has been running for a couple of months. I noticed
> today that I had 8GB of log files. Is there anything I can do to stop so
> much being logged ? i don't really need it.
> Thanks
> Scott
>|||many thanks
scott

Sunday, March 11, 2012

8 concurrent queries?

This occurs many times in our w2k event view application log with various
choices of numbers exceeded by.
What is it referring to and how do I increase the number of concurrent
queries?
Thanks.
17052 :
This SQL Server has been optimized for 8 concurrent queries. This limit has
been exceeded by 10 queries and performance may be adversely affected.This is a multi-part message in MIME format.
--=_NextPart_000_05A6_01C376F0.628EA510
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Sounds like you are using MSDE or SQL Server Personal Edition. If you =want to run a bunch of concurrent queries - without performance =degradation - then you will need to go to SQL Server Standard or =Enterprise Edition.
-- Tom
---
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinnaclepublishing.com/sql
"Todd A. Carter" <tcarter@.activelinkarts.com> wrote in message =news:ubHAVExdDHA.748@.TK2MSFTNGP10.phx.gbl...
This occurs many times in our w2k event view application log with =various
choices of numbers exceeded by.
What is it referring to and how do I increase the number of concurrent
queries?
Thanks.
17052 :
This SQL Server has been optimized for 8 concurrent queries. This limit =has
been exceeded by 10 queries and performance may be adversely affected.
--=_NextPart_000_05A6_01C376F0.628EA510
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

Sounds like you are using MSDE or SQL =Server Personal Edition. If you want to run a bunch of concurrent queries =- without performance degradation - then you will need to go to SQL Server =Standard or Enterprise Edition.
-- Tom
---T=homas A. Moreau, BSc, PhD, MCSE, MCDBASQL Server MVPColumnist, SQL =Server ProfessionalToronto, ON Canadahttp://www.pinnaclepublishing.com/sql">www.pinnaclepublishing.com=/sql
"Todd A. Carter" wrote in message news:ubHAVExdDHA.748@.T=K2MSFTNGP10.phx.gbl...This occurs many times in our w2k event view application log with =variouschoices of numbers exceeded by.What is it referring to and how do I =increase the number of concurrentqueries?Thanks.17052 :This SQL Server has been optimized for 8 concurrent queries. =This limit hasbeen exceeded by 10 queries and performance may be adversely affected.

--=_NextPart_000_05A6_01C376F0.628EA510--|||What it refers to is that the governor in MSDE (or SQL Server Personal
Edition) has been activated as the result of too many queries being
submitted concurrently. The implication is that the users of MSDE will
experience a slowdown until the number of concurrent queries drops below 8.
If this is a rare event, then I wouldn't worry about it. If you are seeing
this message frequently (as you indicate), then check to see if your users
are experiencing performance problems running the application that is using
MSDE. If they are then you need to purchase and upgrade to SQL Server 2000
Standard Edition. But if your users aren't complaining, then you can just
ignore the messages and keep in mind that should they start complaining
about the performance then you know the likely reason.
--
Hal Berenson, SQL Server MVP
True Mountain Group LLC
"Todd A. Carter" <tcarter@.activelinkarts.com> wrote in message
news:ubHAVExdDHA.748@.TK2MSFTNGP10.phx.gbl...
> This occurs many times in our w2k event view application log with various
> choices of numbers exceeded by.
> What is it referring to and how do I increase the number of concurrent
> queries?
> Thanks.
>
> 17052 :
> This SQL Server has been optimized for 8 concurrent queries. This limit
has
> been exceeded by 10 queries and performance may be adversely affected.
>
>|||It is personal edition. Is there a clean method for
upgrading? We own the software license already.
Todd
>--Original Message--
>Thank you everyone... but this is supposed to be an
Enterprise Server. How
>can I verify/validate that the correct software was
loaded?
>Thanks.
>Todd
>"Hal Berenson" <haroldb@.truemountainconsulting.com>
wrote in message
>news:uJ1v#1ydDHA.560@.tk2msftngp13.phx.gbl...
>> What it refers to is that the governor in MSDE (or SQL
Server Personal
>> Edition) has been activated as the result of too many
queries being
>> submitted concurrently. The implication is that the
users of MSDE will
>> experience a slowdown until the number of concurrent
queries drops below
>8.
>> If this is a rare event, then I wouldn't worry about
it. If you are
>seeing
>> this message frequently (as you indicate), then check
to see if your users
>> are experiencing performance problems running the
application that is
>using
>> MSDE. If they are then you need to purchase and
upgrade to SQL Server
>2000
>> Standard Edition. But if your users aren't
complaining, then you can just
>> ignore the messages and keep in mind that should they
start complaining
>> about the performance then you know the likely reason.
>> --
>> Hal Berenson, SQL Server MVP
>> True Mountain Group LLC
>>
>> "Todd A. Carter" <tcarter@.activelinkarts.com> wrote in
message
>> news:ubHAVExdDHA.748@.TK2MSFTNGP10.phx.gbl...
>> > This occurs many times in our w2k event view
application log with
>various
>> > choices of numbers exceeded by.
>> >
>> > What is it referring to and how do I increase the
number of concurrent
>> > queries?
>> >
>> > Thanks.
>> >
>> >
>> >
>> > 17052 :
>> >
>> > This SQL Server has been optimized for 8 concurrent
queries. This limit
>> has
>> > been exceeded by 10 queries and performance may be
adversely affected.
>> >
>> >
>> >
>>
>
>.
>|||I do not think you can upgrade Personal SQL 2k to Enterprise SQL 2k, only to
Standard and then To Enterprise.
for more Info go here
http://msdn.microsoft.com/library/en-us/instsql/in_overview_2xtf.asp
"Todd A. Carter" <tcarter@.activelinkarts.com> wrote in message
news:001a01c37741$e151cd40$a001280a@.phx.gbl...
> It is personal edition. Is there a clean method for
> upgrading? We own the software license already.
> Todd
> >--Original Message--
> >Thank you everyone... but this is supposed to be an
> Enterprise Server. How
> >can I verify/validate that the correct software was
> loaded?
> >
> >Thanks.
> >
> >Todd
> >
> >"Hal Berenson" <haroldb@.truemountainconsulting.com>
> wrote in message
> >news:uJ1v#1ydDHA.560@.tk2msftngp13.phx.gbl...
> >> What it refers to is that the governor in MSDE (or SQL
> Server Personal
> >> Edition) has been activated as the result of too many
> queries being
> >> submitted concurrently. The implication is that the
> users of MSDE will
> >> experience a slowdown until the number of concurrent
> queries drops below
> >8.
> >> If this is a rare event, then I wouldn't worry about
> it. If you are
> >seeing
> >> this message frequently (as you indicate), then check
> to see if your users
> >> are experiencing performance problems running the
> application that is
> >using
> >> MSDE. If they are then you need to purchase and
> upgrade to SQL Server
> >2000
> >> Standard Edition. But if your users aren't
> complaining, then you can just
> >> ignore the messages and keep in mind that should they
> start complaining
> >> about the performance then you know the likely reason.
> >>
> >> --
> >> Hal Berenson, SQL Server MVP
> >> True Mountain Group LLC
> >>
> >>
> >> "Todd A. Carter" <tcarter@.activelinkarts.com> wrote in
> message
> >> news:ubHAVExdDHA.748@.TK2MSFTNGP10.phx.gbl...
> >> > This occurs many times in our w2k event view
> application log with
> >various
> >> > choices of numbers exceeded by.
> >> >
> >> > What is it referring to and how do I increase the
> number of concurrent
> >> > queries?
> >> >
> >> > Thanks.
> >> >
> >> >
> >> >
> >> > 17052 :
> >> >
> >> > This SQL Server has been optimized for 8 concurrent
> queries. This limit
> >> has
> >> > been exceeded by 10 queries and performance may be
> adversely affected.
> >> >
> >> >
> >> >
> >>
> >>
> >
> >
> >.
> >|||First you need to check your operating system. If it is a desktop operating
system such as Windows XP then you need to upgrade that first as Enterprise
Edition will only install on server operating systems. Then take a look at
the link that Yovan provided. If you can't do a direct upgrade then you can
look at detaching the databases, installing Enterprise Edition, and
re-attaching the databases.
--
Hal Berenson, SQL Server MVP
True Mountain Group LLC
"Todd A. Carter" <tcarter@.activelinkarts.com> wrote in message
news:001a01c37741$e151cd40$a001280a@.phx.gbl...
> It is personal edition. Is there a clean method for
> upgrading? We own the software license already.
> Todd
> >--Original Message--
> >Thank you everyone... but this is supposed to be an
> Enterprise Server. How
> >can I verify/validate that the correct software was
> loaded?
> >
> >Thanks.
> >
> >Todd
> >
> >"Hal Berenson" <haroldb@.truemountainconsulting.com>
> wrote in message
> >news:uJ1v#1ydDHA.560@.tk2msftngp13.phx.gbl...
> >> What it refers to is that the governor in MSDE (or SQL
> Server Personal
> >> Edition) has been activated as the result of too many
> queries being
> >> submitted concurrently. The implication is that the
> users of MSDE will
> >> experience a slowdown until the number of concurrent
> queries drops below
> >8.
> >> If this is a rare event, then I wouldn't worry about
> it. If you are
> >seeing
> >> this message frequently (as you indicate), then check
> to see if your users
> >> are experiencing performance problems running the
> application that is
> >using
> >> MSDE. If they are then you need to purchase and
> upgrade to SQL Server
> >2000
> >> Standard Edition. But if your users aren't
> complaining, then you can just
> >> ignore the messages and keep in mind that should they
> start complaining
> >> about the performance then you know the likely reason.
> >>
> >> --
> >> Hal Berenson, SQL Server MVP
> >> True Mountain Group LLC
> >>
> >>
> >> "Todd A. Carter" <tcarter@.activelinkarts.com> wrote in
> message
> >> news:ubHAVExdDHA.748@.TK2MSFTNGP10.phx.gbl...
> >> > This occurs many times in our w2k event view
> application log with
> >various
> >> > choices of numbers exceeded by.
> >> >
> >> > What is it referring to and how do I increase the
> number of concurrent
> >> > queries?
> >> >
> >> > Thanks.
> >> >
> >> >
> >> >
> >> > 17052 :
> >> >
> >> > This SQL Server has been optimized for 8 concurrent
> queries. This limit
> >> has
> >> > been exceeded by 10 queries and performance may be
> adversely affected.
> >> >
> >> >
> >> >
> >>
> >>
> >
> >
> >.
> >

Friday, February 24, 2012

64 bit 60 gb db with RAID 10 4 VOLUME

I am working with SQL 2005 64 bit sp1 , i am facing problem continues in
error log file mentioned below, can you please help me
SQL Server has encountered 1 occurrence(s) of I/O requests taking longer
than 15 seconds to complete on file
[E:\ITS247DBFiles\ItSupport247DB1.mdf:MSSQL_DBCC11 ] in database
[ItSupport247DB] (11). The OS file handle is 0x0000000000007F5C. The offset
of the latest long I/O is: 0x0000032dac0000
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
"Jay" <Jay@.discussions.microsoft.com> wrote in message
news:926CD051-B1BF-481A-AA4D-BA06AB7DBA72@.microsoft.com...
>I am working with SQL 2005 64 bit sp1 , i am facing problem continues in
> error log file mentioned below, can you please help me
> SQL Server has encountered 1 occurrence(s) of I/O requests taking longer
> than 15 seconds to complete on file
> [E:\ITS247DBFiles\ItSupport247DB1.mdf:MSSQL_DBCC11 ] in database
> [ItSupport247DB] (11). The OS file handle is 0x0000000000007F5C. The
> offset
> of the latest long I/O is: 0x0000032dac0000
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
I'd look at the disk array first, make sure you have the latest drivers,
that there's no hardware issues, etc.
Greg Moore
SQL Server DBA Consulting
sql (at) greenms.com http://www.greenms.com
|||Generally indicates a HW problem.
Had this recently, first line of defense is to power-cycle the server,
second is to refresh RAID controller microcode and power-cycle. Doing
this seems to have "fixed" two of our servers where we were getting
this message - except at much, much higher volumes!
J.
On Tue, 27 Feb 2007 19:59:05 -0800, Jay
<Jay@.discussions.microsoft.com> wrote:

>I am working with SQL 2005 64 bit sp1 , i am facing problem continues in
>error log file mentioned below, can you please help me
>SQL Server has encountered 1 occurrence(s) of I/O requests taking longer
>than 15 seconds to complete on file
>[E:\ITS247DBFiles\ItSupport247DB1.mdf:MSSQL_DBCC1 1] in database
>[ItSupport247DB] (11). The OS file handle is 0x0000000000007F5C. The offset
>of the latest long I/O is: 0x0000032dac0000
>For more information, see Help and Support Center at
>http://go.microsoft.com/fwlink/events.asp.
|||very very Thanks to Greg and JXStern,
can you provide some links related this issues, so that i can show to my
boss.it will be more helpfull to me.
waiting for you alls reply.
regards
Jay
"JXStern" wrote:

> Generally indicates a HW problem.
> Had this recently, first line of defense is to power-cycle the server,
> second is to refresh RAID controller microcode and power-cycle. Doing
> this seems to have "fixed" two of our servers where we were getting
> this message - except at much, much higher volumes!
> J.
>
> On Tue, 27 Feb 2007 19:59:05 -0800, Jay
> <Jay@.discussions.microsoft.com> wrote:
>
>
|||Me, I don't have anything, just called the sysadmin guys (emailed,
actually), and they told me this story, then did it, and it worked!
Twice!
These are only fairly current HP servers, so the problem is probably
very, very, very common.
J.
On Wed, 28 Feb 2007 06:55:52 -0800, Jay
<Jay@.discussions.microsoft.com> wrote:
[vbcol=seagreen]
>very very Thanks to Greg and JXStern,
>can you provide some links related this issues, so that i can show to my
>boss.it will be more helpfull to me.
>waiting for you alls reply.
>regards
>Jay
>
>"JXStern" wrote:
|||thanks JXStern,
i am trying for a link to this issues, so that i can tell to my BOSS
thanks thanks very much
jay
"JXStern" wrote:

> Me, I don't have anything, just called the sysadmin guys (emailed,
> actually), and they told me this story, then did it, and it worked!
> Twice!
> These are only fairly current HP servers, so the problem is probably
> very, very, very common.
> J.
>
> On Wed, 28 Feb 2007 06:55:52 -0800, Jay
> <Jay@.discussions.microsoft.com> wrote:
>
>

64 bit 60 gb db with RAID 10 4 VOLUME

I am working with SQL 2005 64 bit sp1 , i am facing problem continues in
error log file mentioned below, can you please help me
SQL Server has encountered 1 occurrence(s) of I/O requests taking longer
than 15 seconds to complete on file
[E:\ITS247DBFiles\ItSupport247DB1.mdf:MSSQL_DBCC11] in database
[ItSupport247DB] (11). The OS file handle is 0x0000000000007F5C. The o
ffset
of the latest long I/O is: 0x0000032dac0000
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp."Jay" <Jay@.discussions.microsoft.com> wrote in message
news:926CD051-B1BF-481A-AA4D-BA06AB7DBA72@.microsoft.com...
>I am working with SQL 2005 64 bit sp1 , i am facing problem continues in
> error log file mentioned below, can you please help me
> SQL Server has encountered 1 occurrence(s) of I/O requests taking longer
> than 15 seconds to complete on file
> [E:\ITS247DBFiles\ItSupport247DB1.mdf:MSSQL_DBCC11] in database
> [ItSupport247DB] (11). The OS file handle is 0x0000000000007F5C. The
> offset
> of the latest long I/O is: 0x0000032dac0000
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
I'd look at the disk array first, make sure you have the latest drivers,
that there's no hardware issues, etc.
Greg Moore
SQL Server DBA Consulting
sql (at) greenms.com http://www.greenms.com|||Generally indicates a HW problem.
Had this recently, first line of defense is to power-cycle the server,
second is to refresh RAID controller microcode and power-cycle. Doing
this seems to have "fixed" two of our servers where we were getting
this message - except at much, much higher volumes!
J.
On Tue, 27 Feb 2007 19:59:05 -0800, Jay
<Jay@.discussions.microsoft.com> wrote:

>I am working with SQL 2005 64 bit sp1 , i am facing problem continues in
>error log file mentioned below, can you please help me
>SQL Server has encountered 1 occurrence(s) of I/O requests taking longer
>than 15 seconds to complete on file
>[E:\ITS247DBFiles\ItSupport247DB1.mdf:MSSQL_DBCC11] in database
>[ItSupport247DB] (11). The OS file handle is 0x0000000000007F5C. The
offset
>of the latest long I/O is: 0x0000032dac0000
>For more information, see Help and Support Center at
>http://go.microsoft.com/fwlink/events.asp.|||very very Thanks to Greg and JXStern,
can you provide some links related this issues, so that i can show to my
boss.it will be more helpfull to me.
waiting for you alls reply.
regards
Jay
"JXStern" wrote:

> Generally indicates a HW problem.
> Had this recently, first line of defense is to power-cycle the server,
> second is to refresh RAID controller microcode and power-cycle. Doing
> this seems to have "fixed" two of our servers where we were getting
> this message - except at much, much higher volumes!
> J.
>
> On Tue, 27 Feb 2007 19:59:05 -0800, Jay
> <Jay@.discussions.microsoft.com> wrote:
>
>|||Me, I don't have anything, just called the sysadmin guys (emailed,
actually), and they told me this story, then did it, and it worked!
Twice!
These are only fairly current HP servers, so the problem is probably
very, very, very common.
J.
On Wed, 28 Feb 2007 06:55:52 -0800, Jay
<Jay@.discussions.microsoft.com> wrote:
[vbcol=seagreen]
>very very Thanks to Greg and JXStern,
>can you provide some links related this issues, so that i can show to my
>boss.it will be more helpfull to me.
>waiting for you alls reply.
>regards
>Jay
>
>"JXStern" wrote:
>|||thanks JXStern,
i am trying for a link to this issues, so that i can tell to my BOSS
thanks thanks very much
jay
"JXStern" wrote:

> Me, I don't have anything, just called the sysadmin guys (emailed,
> actually), and they told me this story, then did it, and it worked!
> Twice!
> These are only fairly current HP servers, so the problem is probably
> very, very, very common.
> J.
>
> On Wed, 28 Feb 2007 06:55:52 -0800, Jay
> <Jay@.discussions.microsoft.com> wrote:
>
>

64 bit 60 gb db with RAID 10 4 VOLUME

I am working with SQL 2005 64 bit sp1 , i am facing problem continues in
error log file mentioned below, can you please help me
SQL Server has encountered 1 occurrence(s) of I/O requests taking longer
than 15 seconds to complete on file
[E:\ITS247DBFiles\ItSupport247DB1.mdf:MSSQL_DBCC11] in database
[ItSupport247DB] (11). The OS file handle is 0x0000000000007F5C. The offset
of the latest long I/O is: 0x0000032dac0000
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp."Jay" <Jay@.discussions.microsoft.com> wrote in message
news:926CD051-B1BF-481A-AA4D-BA06AB7DBA72@.microsoft.com...
>I am working with SQL 2005 64 bit sp1 , i am facing problem continues in
> error log file mentioned below, can you please help me
> SQL Server has encountered 1 occurrence(s) of I/O requests taking longer
> than 15 seconds to complete on file
> [E:\ITS247DBFiles\ItSupport247DB1.mdf:MSSQL_DBCC11] in database
> [ItSupport247DB] (11). The OS file handle is 0x0000000000007F5C. The
> offset
> of the latest long I/O is: 0x0000032dac0000
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
I'd look at the disk array first, make sure you have the latest drivers,
that there's no hardware issues, etc.
Greg Moore
SQL Server DBA Consulting
sql (at) greenms.com http://www.greenms.com|||Generally indicates a HW problem.
Had this recently, first line of defense is to power-cycle the server,
second is to refresh RAID controller microcode and power-cycle. Doing
this seems to have "fixed" two of our servers where we were getting
this message - except at much, much higher volumes!
J.
On Tue, 27 Feb 2007 19:59:05 -0800, Jay
<Jay@.discussions.microsoft.com> wrote:
>I am working with SQL 2005 64 bit sp1 , i am facing problem continues in
>error log file mentioned below, can you please help me
>SQL Server has encountered 1 occurrence(s) of I/O requests taking longer
>than 15 seconds to complete on file
>[E:\ITS247DBFiles\ItSupport247DB1.mdf:MSSQL_DBCC11] in database
>[ItSupport247DB] (11). The OS file handle is 0x0000000000007F5C. The offset
>of the latest long I/O is: 0x0000032dac0000
>For more information, see Help and Support Center at
>http://go.microsoft.com/fwlink/events.asp.|||very very Thanks to Greg and JXStern,
can you provide some links related this issues, so that i can show to my
boss.it will be more helpfull to me.
waiting for you alls reply.
regards
Jay
"JXStern" wrote:
> Generally indicates a HW problem.
> Had this recently, first line of defense is to power-cycle the server,
> second is to refresh RAID controller microcode and power-cycle. Doing
> this seems to have "fixed" two of our servers where we were getting
> this message - except at much, much higher volumes!
> J.
>
> On Tue, 27 Feb 2007 19:59:05 -0800, Jay
> <Jay@.discussions.microsoft.com> wrote:
> >I am working with SQL 2005 64 bit sp1 , i am facing problem continues in
> >error log file mentioned below, can you please help me
> >
> >SQL Server has encountered 1 occurrence(s) of I/O requests taking longer
> >than 15 seconds to complete on file
> >[E:\ITS247DBFiles\ItSupport247DB1.mdf:MSSQL_DBCC11] in database
> >[ItSupport247DB] (11). The OS file handle is 0x0000000000007F5C. The offset
> >of the latest long I/O is: 0x0000032dac0000
> >
> >For more information, see Help and Support Center at
> >http://go.microsoft.com/fwlink/events.asp.
>|||Me, I don't have anything, just called the sysadmin guys (emailed,
actually), and they told me this story, then did it, and it worked!
Twice!
These are only fairly current HP servers, so the problem is probably
very, very, very common.
J.
On Wed, 28 Feb 2007 06:55:52 -0800, Jay
<Jay@.discussions.microsoft.com> wrote:
>very very Thanks to Greg and JXStern,
>can you provide some links related this issues, so that i can show to my
>boss.it will be more helpfull to me.
>waiting for you alls reply.
>regards
>Jay
>
>"JXStern" wrote:
>> Generally indicates a HW problem.
>> Had this recently, first line of defense is to power-cycle the server,
>> second is to refresh RAID controller microcode and power-cycle. Doing
>> this seems to have "fixed" two of our servers where we were getting
>> this message - except at much, much higher volumes!
>> J.
>>
>> On Tue, 27 Feb 2007 19:59:05 -0800, Jay
>> <Jay@.discussions.microsoft.com> wrote:
>> >I am working with SQL 2005 64 bit sp1 , i am facing problem continues in
>> >error log file mentioned below, can you please help me
>> >
>> >SQL Server has encountered 1 occurrence(s) of I/O requests taking longer
>> >than 15 seconds to complete on file
>> >[E:\ITS247DBFiles\ItSupport247DB1.mdf:MSSQL_DBCC11] in database
>> >[ItSupport247DB] (11). The OS file handle is 0x0000000000007F5C. The offset
>> >of the latest long I/O is: 0x0000032dac0000
>> >
>> >For more information, see Help and Support Center at
>> >http://go.microsoft.com/fwlink/events.asp.
>>|||thanks JXStern,
i am trying for a link to this issues, so that i can tell to my BOSS
thanks thanks very much
jay
"JXStern" wrote:
> Me, I don't have anything, just called the sysadmin guys (emailed,
> actually), and they told me this story, then did it, and it worked!
> Twice!
> These are only fairly current HP servers, so the problem is probably
> very, very, very common.
> J.
>
> On Wed, 28 Feb 2007 06:55:52 -0800, Jay
> <Jay@.discussions.microsoft.com> wrote:
> >very very Thanks to Greg and JXStern,
> >
> >can you provide some links related this issues, so that i can show to my
> >boss.it will be more helpfull to me.
> >
> >waiting for you alls reply.
> >
> >regards
> >
> >Jay
> >
> >
> >
> >"JXStern" wrote:
> >
> >> Generally indicates a HW problem.
> >>
> >> Had this recently, first line of defense is to power-cycle the server,
> >> second is to refresh RAID controller microcode and power-cycle. Doing
> >> this seems to have "fixed" two of our servers where we were getting
> >> this message - except at much, much higher volumes!
> >>
> >> J.
> >>
> >>
> >> On Tue, 27 Feb 2007 19:59:05 -0800, Jay
> >> <Jay@.discussions.microsoft.com> wrote:
> >>
> >> >I am working with SQL 2005 64 bit sp1 , i am facing problem continues in
> >> >error log file mentioned below, can you please help me
> >> >
> >> >SQL Server has encountered 1 occurrence(s) of I/O requests taking longer
> >> >than 15 seconds to complete on file
> >> >[E:\ITS247DBFiles\ItSupport247DB1.mdf:MSSQL_DBCC11] in database
> >> >[ItSupport247DB] (11). The OS file handle is 0x0000000000007F5C. The offset
> >> >of the latest long I/O is: 0x0000032dac0000
> >> >
> >> >For more information, see Help and Support Center at
> >> >http://go.microsoft.com/fwlink/events.asp.
> >>
> >>
>

Sunday, February 19, 2012

6.5 to 2000 upgrade wizard

where is the name of the log file for the upgrade wizard?
thanksnevermind, found them.

Thursday, February 16, 2012

4gb limit

Hi There

I recently read up and found an msdn forum post that said the 4gb limit only applied to data files not log files.

However recently i had an error on a sql express database saying that the log file was full, the database log file was set to auto grow and there was plenty of space left.

So i am guessing the 4gb limit applies to any database file mdf or ldf, is this correct ?

Thanx

Hi,

you have to backup your log file.

BACKUP LOG <DB_NAME> WITH TRUNCATE_ONLY -- modell "simple"

BACKUP LOG <DB_NAME> -- modell "full"

or shrink it without backup:

BACKUP LOG <DB_NAME> WITH NO_LOG

|||

I cannot do this, DB is in simple recovery. It is one big transaction that causes this, i cannot do this in the middle of a transaction.

Thanx

|||

There is not a size limit for log files.

From: http://msdn2.microsoft.com/en-us/library/ms345154.aspx

"The 4 GB database size limit applies only to data files and not to log files."

Did you check the computer application log file for errors?
The SQL Server log file?

|||

Thanx Arnie

It just is so strange that it happended exactly when the log file hit 4Gb?

But thanx for the feedback

4gb limit

Hi There

I recently read up and found an msdn forum post that said the 4gb limit only applied to data files not log files.

However recently i had an error on a sql express database saying that the log file was full, the database log file was set to auto grow and there was plenty of space left.

So i am guessing the 4gb limit applies to any database file mdf or ldf, is this correct ?

Thanx

Hi,

you have to backup your log file.

BACKUP LOG <DB_NAME> WITH TRUNCATE_ONLY -- modell "simple"

BACKUP LOG <DB_NAME> -- modell "full"

or shrink it without backup:

BACKUP LOG <DB_NAME> WITH NO_LOG

|||

I cannot do this, DB is in simple recovery. It is one big transaction that causes this, i cannot do this in the middle of a transaction.

Thanx

|||

There is not a size limit for log files.

From: http://msdn2.microsoft.com/en-us/library/ms345154.aspx

"The 4 GB database size limit applies only to data files and not to log files."

Did you check the computer application log file for errors?
The SQL Server log file?

|||

Thanx Arnie

It just is so strange that it happended exactly when the log file hit 4Gb?

But thanx for the feedback

Monday, February 13, 2012

4G table's delete uses 20G log

I've a table with a size of ~4G and 6million rows in SQL server 2005.
Shen deleting all rows from it it takes closer to an hour and uses
~20G of transaction log. I wasn't able to truncate it due to FK's, but
should I not be able to truncat it by disabling FKs - how can I do
that? Or how can I expedite this delete because it;s annoying to let
server use 20G log for 4G table. My DB recovery model is set to SIMPLE
(for minimum logging)
TIA,
DataDealer
Do not delete with one big batch, instead , divide it into small batches
SET ROWCOUNT 1000
delete_more:
DELETE .....
IF @.@.ROWCOUNT > 0 GOTO delete_more
SET ROWCOUNT 0
<Nasir111@.gmail.com> wrote in message
news:4285be79-87e3-4711-8fe6-344db8f3d77b@.s8g2000prg.googlegroups.com...
> I've a table with a size of ~4G and 6million rows in SQL server 2005.
> Shen deleting all rows from it it takes closer to an hour and uses
> ~20G of transaction log. I wasn't able to truncate it due to FK's, but
> should I not be able to truncat it by disabling FKs - how can I do
> that? Or how can I expedite this delete because it;s annoying to let
> server use 20G log for 4G table. My DB recovery model is set to SIMPLE
> (for minimum logging)
> TIA,
> DataDealer
|||Recovery model do not affect the amount of logging for a DELETE operation.
You cannot TRUNCATE TABLE as long as a FK is referencing that table. It doesn't help if you disable
that constraint. How about dropping the constraint, TRUNCATE TABLE and then adding it back? That
will by far be the quickest way. If that doesn't suit you, follow Uri's advice to delete in batches
so not all is in one large transaction.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
<Nasir111@.gmail.com> wrote in message
news:4285be79-87e3-4711-8fe6-344db8f3d77b@.s8g2000prg.googlegroups.com...
> I've a table with a size of ~4G and 6million rows in SQL server 2005.
> Shen deleting all rows from it it takes closer to an hour and uses
> ~20G of transaction log. I wasn't able to truncate it due to FK's, but
> should I not be able to truncat it by disabling FKs - how can I do
> that? Or how can I expedite this delete because it;s annoying to let
> server use 20G log for 4G table. My DB recovery model is set to SIMPLE
> (for minimum logging)
> TIA,
> DataDealer

4G table's delete uses 20G log

I've a table with a size of ~4G and 6million rows in SQL server 2005.
Shen deleting all rows from it it takes closer to an hour and uses
~20G of transaction log. I wasn't able to truncate it due to FK's, but
should I not be able to truncat it by disabling FKs - how can I do
that? Or how can I expedite this delete because it;s annoying to let
server use 20G log for 4G table. My DB recovery model is set to SIMPLE
(for minimum logging)
TIA,
DataDealerDo not delete with one big batch, instead , divide it into small batches
SET ROWCOUNT 1000
delete_more:
DELETE .....
IF @.@.ROWCOUNT > 0 GOTO delete_more
SET ROWCOUNT 0
<Nasir111@.gmail.com> wrote in message
news:4285be79-87e3-4711-8fe6-344db8f3d77b@.s8g2000prg.googlegroups.com...
> I've a table with a size of ~4G and 6million rows in SQL server 2005.
> Shen deleting all rows from it it takes closer to an hour and uses
> ~20G of transaction log. I wasn't able to truncate it due to FK's, but
> should I not be able to truncat it by disabling FKs - how can I do
> that? Or how can I expedite this delete because it;s annoying to let
> server use 20G log for 4G table. My DB recovery model is set to SIMPLE
> (for minimum logging)
> TIA,
> DataDealer|||Recovery model do not affect the amount of logging for a DELETE operation.
You cannot TRUNCATE TABLE as long as a FK is referencing that table. It doesn't help if you disable
that constraint. How about dropping the constraint, TRUNCATE TABLE and then adding it back? That
will by far be the quickest way. If that doesn't suit you, follow Uri's advice to delete in batches
so not all is in one large transaction.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
<Nasir111@.gmail.com> wrote in message
news:4285be79-87e3-4711-8fe6-344db8f3d77b@.s8g2000prg.googlegroups.com...
> I've a table with a size of ~4G and 6million rows in SQL server 2005.
> Shen deleting all rows from it it takes closer to an hour and uses
> ~20G of transaction log. I wasn't able to truncate it due to FK's, but
> should I not be able to truncat it by disabling FKs - how can I do
> that? Or how can I expedite this delete because it;s annoying to let
> server use 20G log for 4G table. My DB recovery model is set to SIMPLE
> (for minimum logging)
> TIA,
> DataDealer

403 error: The remote server returned an error: (403) Forbidden.

When I try to view the report, I got the error "The remote server returned an error: (403) Forbidden. ". And in the event log , I got the detaiil excception:


Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 2007-7-16
Time: 11:28:29
User: N/A
Computer: WEIGUANG
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 2007-7-16 11:28:29
Event time (UTC): 2007-7-16 3:28:29
Event ID: 3c4daa414c89430786c106f3c9085b56
Event sequence: 10
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/Root/Reports-2-128290300818412520
Trust level: RosettaMgr
Application Virtual Path: /Reports
Application Path: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportManager\
Machine name: WEIGUANG
Process information:
Process ID: 4152
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: WebException
Exception message: The remote server returned an error: (403) Forbidden.
Request information:
Request URL: http://localhost/Reports/Reserved.ReportViewerWebControl.axd?OpType=StyleSheet&Version=2005.090.3042.00
Request path: /Reports/Reserved.ReportViewerWebControl.axd
User host address: 127.0.0.1
User: ASIAPACIFIC\liweig
Is authenticated: True
Authentication Type: NTLM
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 5
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: True
Stack trace: at Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
at Microsoft.Reporting.WebForms.ServerReport.GetStyleSheet(String styleSheetName)
at Microsoft.Reporting.WebForms.ReportServerStyleSheetOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)
at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Custom event details: For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

I'm using reporting service 2005, does anybody know the reason?

Many thanks.

Kevin

we encounter the same problem. did you already resolved it? can you give us a hint?

thx in advance,
rainer
|||

IIS permissions.

403?

You're not even touching the Report Server.

You need to get your IIS admin to allow your group/users permission to see the RS folders

|||well i am getting the following entry in the eventlog:

Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 24.07.2007
Time: 12:37:38
User: N/A
Computer: HERAS75
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 24.07.2007 12:37:38
Event time (UTC): 24.07.2007 10:37:38
Event ID: f6730dc158f640c7924c590d73226477
Event sequence: 112
Event occurrence: 5
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/root/AdminReports-1-128297459440092913
Trust level: RosettaMgr
Application Virtual Path: /AdminReports
Application Path: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportManager\
Machine name: HERAS75

Process information:
Process ID: 5052
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
Exception type: WebException
Exception message: The remote server returned an error: (403) Forbidden.

Request information:
Request URL: http://heras75/AdminReports/Reserved.ReportViewerWebControl.axd?OpType=StyleSheet&Version=2005.090.3042.00
Request path: /AdminReports/Reserved.ReportViewerWebControl.axd
User host address: 10.101.7.26
User: HER\admin_arnken
Is authenticated: True
Authentication Type: Negotiate
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 7
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: True
Stack trace: at Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
at Microsoft.Reporting.WebForms.ServerReport.GetStyleSheet(String styleSheetName)
at Microsoft.Reporting.WebForms.ReportServerStyleSheetOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)
at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


if am opening a report page it starts rendering the page but then throws the following error and no data is shown:
  • The remote server returned an error: (403) Forbidden.|||Admin tools -> IIS
    directory security
    edit
    select 'integrated windows authentication'
    ok

    right click 'permissions'
    from here you can see which groups/users have access

    it is better to administer with groups as that way, when someone bothers you to see a report, you can tell them to go and see the helpdesk/whoever manages AD groups instead, and get them to add them to the group

  • 403 error: The remote server returned an error: (403) Forbidden.

    When I try to view the report, I got the error "The remote server returned an error: (403) Forbidden. ". And in the event log , I got the detaiil excception:


    Event Type: Warning
    Event Source: ASP.NET 2.0.50727.0
    Event Category: Web Event
    Event ID: 1309
    Date: 2007-7-16
    Time: 11:28:29
    User: N/A
    Computer: WEIGUANG
    Description:
    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 2007-7-16 11:28:29
    Event time (UTC): 2007-7-16 3:28:29
    Event ID: 3c4daa414c89430786c106f3c9085b56
    Event sequence: 10
    Event occurrence: 1
    Event detail code: 0
    Application information:
    Application domain: /LM/W3SVC/1/Root/Reports-2-128290300818412520
    Trust level: RosettaMgr
    Application Virtual Path: /Reports
    Application Path: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportManager\
    Machine name: WEIGUANG
    Process information:
    Process ID: 4152
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
    Exception information:
    Exception type: WebException
    Exception message: The remote server returned an error: (403) Forbidden.
    Request information:
    Request URL: http://localhost/Reports/Reserved.ReportViewerWebControl.axd?OpType=StyleSheet&Version=2005.090.3042.00
    Request path: /Reports/Reserved.ReportViewerWebControl.axd
    User host address: 127.0.0.1
    User: ASIAPACIFIC\liweig
    Is authenticated: True
    Authentication Type: NTLM
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Thread information:
    Thread ID: 5
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: True
    Stack trace: at Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
    at Microsoft.Reporting.WebForms.ServerReport.GetStyleSheet(String styleSheetName)
    at Microsoft.Reporting.WebForms.ReportServerStyleSheetOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)
    at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Custom event details: For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    I'm using reporting service 2005, does anybody know the reason?

    Many thanks.

    Kevin

    we encounter the same problem. did you already resolved it? can you give us a hint?

    thx in advance,
    rainer
    |||

    IIS permissions.

    403?

    You're not even touching the Report Server.

    You need to get your IIS admin to allow your group/users permission to see the RS folders

    |||well i am getting the following entry in the eventlog:

    Event Type: Warning
    Event Source: ASP.NET 2.0.50727.0
    Event Category: Web Event
    Event ID: 1309
    Date: 24.07.2007
    Time: 12:37:38
    User: N/A
    Computer: HERAS75
    Description:
    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 24.07.2007 12:37:38
    Event time (UTC): 24.07.2007 10:37:38
    Event ID: f6730dc158f640c7924c590d73226477
    Event sequence: 112
    Event occurrence: 5
    Event detail code: 0

    Application information:
    Application domain: /LM/W3SVC/1/root/AdminReports-1-128297459440092913
    Trust level: RosettaMgr
    Application Virtual Path: /AdminReports
    Application Path: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportManager\
    Machine name: HERAS75

    Process information:
    Process ID: 5052
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE

    Exception information:
    Exception type: WebException
    Exception message: The remote server returned an error: (403) Forbidden.

    Request information:
    Request URL: http://heras75/AdminReports/Reserved.ReportViewerWebControl.axd?OpType=StyleSheet&Version=2005.090.3042.00
    Request path: /AdminReports/Reserved.ReportViewerWebControl.axd
    User host address: 10.101.7.26
    User: HER\admin_arnken
    Is authenticated: True
    Authentication Type: Negotiate
    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Thread information:
    Thread ID: 7
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: True
    Stack trace: at Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
    at Microsoft.Reporting.WebForms.ServerReport.GetStyleSheet(String styleSheetName)
    at Microsoft.Reporting.WebForms.ReportServerStyleSheetOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)
    at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


    if am opening a report page it starts rendering the page but then throws the following error and no data is shown:
  • The remote server returned an error: (403) Forbidden.|||Admin tools -> IIS
    directory security
    edit
    select 'integrated windows authentication'
    ok

    right click 'permissions'
    from here you can see which groups/users have access

    it is better to administer with groups as that way, when someone bothers you to see a report, you can tell them to go and see the helpdesk/whoever manages AD groups instead, and get them to add them to the group

  • Sunday, February 12, 2012

    4 Transaction Log questions

    1) Can one find the location of the 'Transaction Log' at: <Hard
    Disk>\Program Files\Microsoft SQL Server\MSSQL\Data\MyDb_Log.ldf?

    2) Is it safe to delete it, as SQL will create a new Transaction Log when it
    realises none already exist?

    3) When trying to do 2) I get error message that file is in use, even though
    SQL Server is closed. Any suggestions?

    4) Can anyone shed light on the error message 'Write on ... <my path
    here>... failed, status = 112. BACKUP LOG is terminating abnormally'? I get
    this when trying to manually backup the Transaction Log 'All Tasks - Backup'

    Thanks for any replies to my ignorance.See inline:
    "TZoner" <tzoner@.hotmail.com> wrote in message
    news:3ef952a0$0$31277$afc38c87@.news.optusnet.com.a u...
    > 1) Can one find the location of the 'Transaction Log' at: <Hard
    > Disk>\Program Files\Microsoft SQL Server\MSSQL\Data\MyDb_Log.ldf?
    I am not sure what you are asking but sp_helpfile will give the names and
    locations of the files associated with a current database.
    > 2) Is it safe to delete it, as SQL will create a new Transaction Log when
    it
    > realises none already exist?
    I would not recommend deleting any logfile. If SQLServer is running then you
    won't be able to as the file is locked. If you have detatched the database
    or SQL Server is not running, you may have problems re-attaching the
    database or connecting to it once SQL Server is running.

    > 3) When trying to do 2) I get error message that file is in use, even
    though
    > SQL Server is closed. Any suggestions?
    I doubt if you have stopped the service, but in any case you should not be
    deleting it.
    If all you want to do is move the file then check out
    http://support.microsoft.com/defaul...kb;EN-US;224071

    If you want to shrink it check out
    http://msdn.microsoft.com/library/d...-us/architec/8_
    ar_da2_1uzr.asp

    > 4) Can anyone shed light on the error message 'Write on ... <my path
    > here>... failed, status = 112. BACKUP LOG is terminating abnormally'? I
    get
    > this when trying to manually backup the Transaction Log 'All Tasks -
    Backup'
    I don't know what this error is, at a guess there is a lack of disk space.
    Maybe there is more information in the SQL Server log file or in the Event
    log. You will also get errors if you backup to a mapped network drive.

    John
    >
    > Thanks for any replies to my ignorance.|||John, thanks for the valuable information.

    Where is the 'Transaction Log' located? I can't find the answer sp_helpfile
    or after endless searches on google.

    Does a Transaction Log exist per database in SQL Server? When backup occurs,
    does these Transaction Log shrink?

    "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
    news:3ef95a3b$0$18495$ed9e5944@.reading.news.pipex. net...
    > See inline:
    > "TZoner" <tzoner@.hotmail.com> wrote in message
    > news:3ef952a0$0$31277$afc38c87@.news.optusnet.com.a u...
    > > 1) Can one find the location of the 'Transaction Log' at: <Hard
    > > Disk>\Program Files\Microsoft SQL Server\MSSQL\Data\MyDb_Log.ldf?
    > I am not sure what you are asking but sp_helpfile will give the names and
    > locations of the files associated with a current database.
    > > 2) Is it safe to delete it, as SQL will create a new Transaction Log
    when
    > it
    > > realises none already exist?
    > I would not recommend deleting any logfile. If SQLServer is running then
    you
    > won't be able to as the file is locked. If you have detatched the database
    > or SQL Server is not running, you may have problems re-attaching the
    > database or connecting to it once SQL Server is running.
    > > 3) When trying to do 2) I get error message that file is in use, even
    > though
    > > SQL Server is closed. Any suggestions?
    > I doubt if you have stopped the service, but in any case you should not be
    > deleting it.
    > If all you want to do is move the file then check out
    > http://support.microsoft.com/defaul...kb;EN-US;224071
    > If you want to shrink it check out
    http://msdn.microsoft.com/library/d...-us/architec/8_
    > ar_da2_1uzr.asp
    > > 4) Can anyone shed light on the error message 'Write on ... <my path
    > > here>... failed, status = 112. BACKUP LOG is terminating abnormally'? I
    > get
    > > this when trying to manually backup the Transaction Log 'All Tasks -
    > Backup'
    > I don't know what this error is, at a guess there is a lack of disk space.
    > Maybe there is more information in the SQL Server log file or in the Event
    > log. You will also get errors if you backup to a mapped network drive.
    > John
    > > Thanks for any replies to my ignorance.|||Your transction logs are held in the ldf file which sp_help would give e.g
    for Northwind you would get something like:

    Name FileId filename filegroup Size Maxsize Growth Usage
    Northwind 1 E:\MSSQL\DATA\northwnd.mdf PRIMARY 3008 KB
    Unlimited 10% data only
    Northwind_log 2 E:\MSSQL\DATA\northwnd.ldf NULL 1024 KB Unlimited
    10% log only

    Northwind_log is the internal logical name for the Transaction Log file
    located at E:\MSSQL\DATA\northwnd.ldf. The log only usage shows it is a log
    file.

    The log file will not automatically shrink on backup, see the link I posted
    in the last reply regarding how to shrink it.

    John

    "TZoner" <tzoner@.hotmail.com> wrote in message
    news:3ef9813b$0$31280$afc38c87@.news.optusnet.com.a u...
    > John, thanks for the valuable information.
    > Where is the 'Transaction Log' located? I can't find the answer
    sp_helpfile
    > or after endless searches on google.
    > Does a Transaction Log exist per database in SQL Server? When backup
    occurs,
    > does these Transaction Log shrink?
    >
    >
    >
    >
    >
    >
    >
    > "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
    > news:3ef95a3b$0$18495$ed9e5944@.reading.news.pipex. net...
    > > See inline:
    > > "TZoner" <tzoner@.hotmail.com> wrote in message
    > > news:3ef952a0$0$31277$afc38c87@.news.optusnet.com.a u...
    > > > 1) Can one find the location of the 'Transaction Log' at: <Hard
    > > > Disk>\Program Files\Microsoft SQL Server\MSSQL\Data\MyDb_Log.ldf?
    > > I am not sure what you are asking but sp_helpfile will give the names
    and
    > > locations of the files associated with a current database.
    > > > > 2) Is it safe to delete it, as SQL will create a new Transaction Log
    > when
    > > it
    > > > realises none already exist?
    > > I would not recommend deleting any logfile. If SQLServer is running then
    > you
    > > won't be able to as the file is locked. If you have detatched the
    database
    > > or SQL Server is not running, you may have problems re-attaching the
    > > database or connecting to it once SQL Server is running.
    > > > > 3) When trying to do 2) I get error message that file is in use, even
    > > though
    > > > SQL Server is closed. Any suggestions?
    > > I doubt if you have stopped the service, but in any case you should not
    be
    > > deleting it.
    > > If all you want to do is move the file then check out
    > > http://support.microsoft.com/defaul...kb;EN-US;224071
    > > If you want to shrink it check out
    http://msdn.microsoft.com/library/d...-us/architec/8_
    > > ar_da2_1uzr.asp
    > > > > 4) Can anyone shed light on the error message 'Write on ... <my path
    > > > here>... failed, status = 112. BACKUP LOG is terminating abnormally'?
    I
    > > get
    > > > this when trying to manually backup the Transaction Log 'All Tasks -
    > > Backup'
    > > I don't know what this error is, at a guess there is a lack of disk
    space.
    > > Maybe there is more information in the SQL Server log file or in the
    Event
    > > log. You will also get errors if you backup to a mapped network drive.
    > > John
    > > > > > Thanks for any replies to my ignorance.
    > > >|||John you've nearly solved my dilemma!!

    As per your excellent like I was able to work out that running the 2
    following lines will reduce the Transaction File back to it's size!!!
    Hooray!!

    BACKUP LOG MyDb WITH TRUNCATE_ONLY
    DBCC SHRINKFILE (MyDb_log)

    However, because MyDb has it's Transaction File full, hence I can't execute
    the above two lines. How do I run these commands when MyDb won't let me do
    anything to it? To test that the two commands worked I created a dummy MyDb,
    grew its Transaction File then executed the two lines and it worked 100%.

    Thank you so much for your suggestions!

    "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
    news:3ef98e4f$0$10627$ed9e5944@.reading.news.pipex. net...
    > Your transction logs are held in the ldf file which sp_help would give e.g
    > for Northwind you would get something like:
    > Name FileId filename filegroup Size Maxsize Growth Usage
    > Northwind 1 E:\MSSQL\DATA\northwnd.mdf PRIMARY 3008 KB
    > Unlimited 10% data only
    > Northwind_log 2 E:\MSSQL\DATA\northwnd.ldf NULL 1024 KB Unlimited
    > 10% log only
    > Northwind_log is the internal logical name for the Transaction Log file
    > located at E:\MSSQL\DATA\northwnd.ldf. The log only usage shows it is a
    log
    > file.
    > The log file will not automatically shrink on backup, see the link I
    posted
    > in the last reply regarding how to shrink it.
    > John
    > "TZoner" <tzoner@.hotmail.com> wrote in message
    > news:3ef9813b$0$31280$afc38c87@.news.optusnet.com.a u...
    > > John, thanks for the valuable information.
    > > Where is the 'Transaction Log' located? I can't find the answer
    > sp_helpfile
    > > or after endless searches on google.
    > > Does a Transaction Log exist per database in SQL Server? When backup
    > occurs,
    > > does these Transaction Log shrink?
    > > "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
    > > news:3ef95a3b$0$18495$ed9e5944@.reading.news.pipex. net...
    > > > See inline:
    > > > "TZoner" <tzoner@.hotmail.com> wrote in message
    > > > news:3ef952a0$0$31277$afc38c87@.news.optusnet.com.a u...
    > > > > 1) Can one find the location of the 'Transaction Log' at: <Hard
    > > > > Disk>\Program Files\Microsoft SQL Server\MSSQL\Data\MyDb_Log.ldf?
    > > > I am not sure what you are asking but sp_helpfile will give the names
    > and
    > > > locations of the files associated with a current database.
    > > > > > > 2) Is it safe to delete it, as SQL will create a new Transaction Log
    > > when
    > > > it
    > > > > realises none already exist?
    > > > I would not recommend deleting any logfile. If SQLServer is running
    then
    > > you
    > > > won't be able to as the file is locked. If you have detatched the
    > database
    > > > or SQL Server is not running, you may have problems re-attaching the
    > > > database or connecting to it once SQL Server is running.
    > > > > > > > 3) When trying to do 2) I get error message that file is in use,
    even
    > > > though
    > > > > SQL Server is closed. Any suggestions?
    > > > I doubt if you have stopped the service, but in any case you should
    not
    > be
    > > > deleting it.
    > > > If all you want to do is move the file then check out
    > > > http://support.microsoft.com/defaul...kb;EN-US;224071
    > > > > If you want to shrink it check out
    > http://msdn.microsoft.com/library/d...-us/architec/8_
    > > > ar_da2_1uzr.asp
    > > > > > > > 4) Can anyone shed light on the error message 'Write on ... <my path
    > > > > here>... failed, status = 112. BACKUP LOG is terminating
    abnormally'?
    > I
    > > > get
    > > > > this when trying to manually backup the Transaction Log 'All Tasks -
    > > > Backup'
    > > > I don't know what this error is, at a guess there is a lack of disk
    > space.
    > > > Maybe there is more information in the SQL Server log file or in the
    > Event
    > > > log. You will also get errors if you backup to a mapped network drive.
    > > > > John
    > > > > > > > > Thanks for any replies to my ignorance.
    > > > > > > > >|||Hi

    I am not sure what you mean by not work. As in the link previously posted,
    if you last virtual log is in use the file will not shrink

    "TZoner" <tzoner@.hotmail.com> wrote in message
    news:3ef9a575$0$31280$afc38c87@.news.optusnet.com.a u...
    > John you've nearly solved my dilemma!!
    > As per your excellent like I was able to work out that running the 2
    > following lines will reduce the Transaction File back to it's size!!!
    > Hooray!!
    > BACKUP LOG MyDb WITH TRUNCATE_ONLY
    > DBCC SHRINKFILE (MyDb_log)
    > However, because MyDb has it's Transaction File full, hence I can't
    execute
    > the above two lines. How do I run these commands when MyDb won't let me do
    > anything to it? To test that the two commands worked I created a dummy
    MyDb,
    > grew its Transaction File then executed the two lines and it worked 100%.
    > Thank you so much for your suggestions!
    >
    >
    >
    >
    >
    >
    > "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
    > news:3ef98e4f$0$10627$ed9e5944@.reading.news.pipex. net...
    > > Your transction logs are held in the ldf file which sp_help would give
    e.g
    > > for Northwind you would get something like:
    > > Name FileId filename filegroup Size Maxsize Growth
    Usage
    > > Northwind 1 E:\MSSQL\DATA\northwnd.mdf PRIMARY 3008 KB
    > > Unlimited 10% data only
    > > Northwind_log 2 E:\MSSQL\DATA\northwnd.ldf NULL 1024 KB
    Unlimited
    > > 10% log only
    > > Northwind_log is the internal logical name for the Transaction Log file
    > > located at E:\MSSQL\DATA\northwnd.ldf. The log only usage shows it is a
    > log
    > > file.
    > > The log file will not automatically shrink on backup, see the link I
    > posted
    > > in the last reply regarding how to shrink it.
    > > John
    > > "TZoner" <tzoner@.hotmail.com> wrote in message
    > > news:3ef9813b$0$31280$afc38c87@.news.optusnet.com.a u...
    > > > John, thanks for the valuable information.
    > > > > Where is the 'Transaction Log' located? I can't find the answer
    > > sp_helpfile
    > > > or after endless searches on google.
    > > > > Does a Transaction Log exist per database in SQL Server? When backup
    > > occurs,
    > > > does these Transaction Log shrink?
    > > > > > > > > > > > > > > > > > > "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
    > > > news:3ef95a3b$0$18495$ed9e5944@.reading.news.pipex. net...
    > > > > See inline:
    > > > > "TZoner" <tzoner@.hotmail.com> wrote in message
    > > > > news:3ef952a0$0$31277$afc38c87@.news.optusnet.com.a u...
    > > > > > 1) Can one find the location of the 'Transaction Log' at: <Hard
    > > > > > Disk>\Program Files\Microsoft SQL Server\MSSQL\Data\MyDb_Log.ldf?
    > > > > I am not sure what you are asking but sp_helpfile will give the
    names
    > > and
    > > > > locations of the files associated with a current database.
    > > > > > > > > 2) Is it safe to delete it, as SQL will create a new Transaction
    Log
    > > > when
    > > > > it
    > > > > > realises none already exist?
    > > > > I would not recommend deleting any logfile. If SQLServer is running
    > then
    > > > you
    > > > > won't be able to as the file is locked. If you have detatched the
    > > database
    > > > > or SQL Server is not running, you may have problems re-attaching the
    > > > > database or connecting to it once SQL Server is running.
    > > > > > > > > > > 3) When trying to do 2) I get error message that file is in use,
    > even
    > > > > though
    > > > > > SQL Server is closed. Any suggestions?
    > > > > I doubt if you have stopped the service, but in any case you should
    > not
    > > be
    > > > > deleting it.
    > > > > If all you want to do is move the file then check out
    > > > > http://support.microsoft.com/defaul...kb;EN-US;224071
    > > > > > > If you want to shrink it check out
    > > > http://msdn.microsoft.com/library/d...-us/architec/8_
    > > > > ar_da2_1uzr.asp
    > > > > > > > > > > 4) Can anyone shed light on the error message 'Write on ... <my
    path
    > > > > > here>... failed, status = 112. BACKUP LOG is terminating
    > abnormally'?
    > > I
    > > > > get
    > > > > > this when trying to manually backup the Transaction Log 'All
    Tasks -
    > > > > Backup'
    > > > > I don't know what this error is, at a guess there is a lack of disk
    > > space.
    > > > > Maybe there is more information in the SQL Server log file or in the
    > > Event
    > > > > log. You will also get errors if you backup to a mapped network
    drive.
    > > > > > > John
    > > > > > > > > > > > Thanks for any replies to my ignorance.
    > > > > > > > > > > > > > > >|||Hi

    I am not sure what you mean by the transaction log being full. It would
    normally wrap around or expand if you have the disk space.

    What does DBCC SQLPERF(LOGSPACE) say?

    Have you looked at the output from DBCC OPENTRAN ( 'database_name' )?

    You may want to look at:
    http://www.support.microsoft.com/?id=256650
    http://support.microsoft.com/defaul...kb;EN-US;110139
    http://support.microsoft.com/defaul...=kb;EN-US;62866

    John

    "TZoner" <tzoner@.hotmail.com> wrote in message
    news:3ef9a575$0$31280$afc38c87@.news.optusnet.com.a u...
    > John you've nearly solved my dilemma!!
    > As per your excellent like I was able to work out that running the 2
    > following lines will reduce the Transaction File back to it's size!!!
    > Hooray!!
    > BACKUP LOG MyDb WITH TRUNCATE_ONLY
    > DBCC SHRINKFILE (MyDb_log)
    > However, because MyDb has it's Transaction File full, hence I can't
    execute
    > the above two lines. How do I run these commands when MyDb won't let me do
    > anything to it? To test that the two commands worked I created a dummy
    MyDb,
    > grew its Transaction File then executed the two lines and it worked 100%.
    > Thank you so much for your suggestions!
    >
    >
    >
    >
    >
    >
    > "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
    > news:3ef98e4f$0$10627$ed9e5944@.reading.news.pipex. net...
    > > Your transction logs are held in the ldf file which sp_help would give
    e.g
    > > for Northwind you would get something like:
    > > Name FileId filename filegroup Size Maxsize Growth
    Usage
    > > Northwind 1 E:\MSSQL\DATA\northwnd.mdf PRIMARY 3008 KB
    > > Unlimited 10% data only
    > > Northwind_log 2 E:\MSSQL\DATA\northwnd.ldf NULL 1024 KB
    Unlimited
    > > 10% log only
    > > Northwind_log is the internal logical name for the Transaction Log file
    > > located at E:\MSSQL\DATA\northwnd.ldf. The log only usage shows it is a
    > log
    > > file.
    > > The log file will not automatically shrink on backup, see the link I
    > posted
    > > in the last reply regarding how to shrink it.
    > > John
    > > "TZoner" <tzoner@.hotmail.com> wrote in message
    > > news:3ef9813b$0$31280$afc38c87@.news.optusnet.com.a u...
    > > > John, thanks for the valuable information.
    > > > > Where is the 'Transaction Log' located? I can't find the answer
    > > sp_helpfile
    > > > or after endless searches on google.
    > > > > Does a Transaction Log exist per database in SQL Server? When backup
    > > occurs,
    > > > does these Transaction Log shrink?
    > > > > > > > > > > > > > > > > > > "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
    > > > news:3ef95a3b$0$18495$ed9e5944@.reading.news.pipex. net...
    > > > > See inline:
    > > > > "TZoner" <tzoner@.hotmail.com> wrote in message
    > > > > news:3ef952a0$0$31277$afc38c87@.news.optusnet.com.a u...
    > > > > > 1) Can one find the location of the 'Transaction Log' at: <Hard
    > > > > > Disk>\Program Files\Microsoft SQL Server\MSSQL\Data\MyDb_Log.ldf?
    > > > > I am not sure what you are asking but sp_helpfile will give the
    names
    > > and
    > > > > locations of the files associated with a current database.
    > > > > > > > > 2) Is it safe to delete it, as SQL will create a new Transaction
    Log
    > > > when
    > > > > it
    > > > > > realises none already exist?
    > > > > I would not recommend deleting any logfile. If SQLServer is running
    > then
    > > > you
    > > > > won't be able to as the file is locked. If you have detatched the
    > > database
    > > > > or SQL Server is not running, you may have problems re-attaching the
    > > > > database or connecting to it once SQL Server is running.
    > > > > > > > > > > 3) When trying to do 2) I get error message that file is in use,
    > even
    > > > > though
    > > > > > SQL Server is closed. Any suggestions?
    > > > > I doubt if you have stopped the service, but in any case you should
    > not
    > > be
    > > > > deleting it.
    > > > > If all you want to do is move the file then check out
    > > > > http://support.microsoft.com/defaul...kb;EN-US;224071
    > > > > > > If you want to shrink it check out
    > > > http://msdn.microsoft.com/library/d...-us/architec/8_
    > > > > ar_da2_1uzr.asp
    > > > > > > > > > > 4) Can anyone shed light on the error message 'Write on ... <my
    path
    > > > > > here>... failed, status = 112. BACKUP LOG is terminating
    > abnormally'?
    > > I
    > > > > get
    > > > > > this when trying to manually backup the Transaction Log 'All
    Tasks -
    > > > > Backup'
    > > > > I don't know what this error is, at a guess there is a lack of disk
    > > space.
    > > > > Maybe there is more information in the SQL Server log file or in the
    > > Event
    > > > > log. You will also get errors if you backup to a mapped network
    drive.
    > > > > > > John
    > > > > > > > > > > > Thanks for any replies to my ignorance.
    > > > > > > > > > > > > > > >|||Ooops!!!

    "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
    news:3ef9abc1$0$10629$ed9e5944@.reading.news.pipex. net...
    > Hi
    > I am not sure what you mean by not work. As in the link previously posted,
    > if you last virtual log is in use the file will not shrink
    >
    > "TZoner" <tzoner@.hotmail.com> wrote in message
    > news:3ef9a575$0$31280$afc38c87@.news.optusnet.com.a u...
    > > John you've nearly solved my dilemma!!
    > > As per your excellent like I was able to work out that running the 2
    > > following lines will reduce the Transaction File back to it's size!!!
    > > Hooray!!
    > > BACKUP LOG MyDb WITH TRUNCATE_ONLY
    > > DBCC SHRINKFILE (MyDb_log)
    > > However, because MyDb has it's Transaction File full, hence I can't
    > execute
    > > the above two lines. How do I run these commands when MyDb won't let me
    do
    > > anything to it? To test that the two commands worked I created a dummy
    > MyDb,
    > > grew its Transaction File then executed the two lines and it worked
    100%.
    > > Thank you so much for your suggestions!
    > > "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
    > > news:3ef98e4f$0$10627$ed9e5944@.reading.news.pipex. net...
    > > > Your transction logs are held in the ldf file which sp_help would give
    > e.g
    > > > for Northwind you would get something like:
    > > > > Name FileId filename filegroup Size Maxsize Growth
    > Usage
    > > > Northwind 1 E:\MSSQL\DATA\northwnd.mdf PRIMARY 3008 KB
    > > > Unlimited 10% data only
    > > > Northwind_log 2 E:\MSSQL\DATA\northwnd.ldf NULL 1024 KB
    > Unlimited
    > > > 10% log only
    > > > > Northwind_log is the internal logical name for the Transaction Log
    file
    > > > located at E:\MSSQL\DATA\northwnd.ldf. The log only usage shows it is
    a
    > > log
    > > > file.
    > > > > The log file will not automatically shrink on backup, see the link I
    > > posted
    > > > in the last reply regarding how to shrink it.
    > > > > John
    > > > > "TZoner" <tzoner@.hotmail.com> wrote in message
    > > > news:3ef9813b$0$31280$afc38c87@.news.optusnet.com.a u...
    > > > > John, thanks for the valuable information.
    > > > > > > Where is the 'Transaction Log' located? I can't find the answer
    > > > sp_helpfile
    > > > > or after endless searches on google.
    > > > > > > Does a Transaction Log exist per database in SQL Server? When backup
    > > > occurs,
    > > > > does these Transaction Log shrink?
    > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
    > > > > news:3ef95a3b$0$18495$ed9e5944@.reading.news.pipex. net...
    > > > > > See inline:
    > > > > > "TZoner" <tzoner@.hotmail.com> wrote in message
    > > > > > news:3ef952a0$0$31277$afc38c87@.news.optusnet.com.a u...
    > > > > > > 1) Can one find the location of the 'Transaction Log' at: <Hard
    > > > > > > Disk>\Program Files\Microsoft SQL
    Server\MSSQL\Data\MyDb_Log.ldf?
    > > > > > I am not sure what you are asking but sp_helpfile will give the
    > names
    > > > and
    > > > > > locations of the files associated with a current database.
    > > > > > > > > > > 2) Is it safe to delete it, as SQL will create a new Transaction
    > Log
    > > > > when
    > > > > > it
    > > > > > > realises none already exist?
    > > > > > I would not recommend deleting any logfile. If SQLServer is
    running
    > > then
    > > > > you
    > > > > > won't be able to as the file is locked. If you have detatched the
    > > > database
    > > > > > or SQL Server is not running, you may have problems re-attaching
    the
    > > > > > database or connecting to it once SQL Server is running.
    > > > > > > > > > > > > > 3) When trying to do 2) I get error message that file is in use,
    > > even
    > > > > > though
    > > > > > > SQL Server is closed. Any suggestions?
    > > > > > I doubt if you have stopped the service, but in any case you
    should
    > > not
    > > > be
    > > > > > deleting it.
    > > > > > If all you want to do is move the file then check out
    > > > > > http://support.microsoft.com/defaul...kb;EN-US;224071
    > > > > > > > > If you want to shrink it check out
    > > > > > > http://msdn.microsoft.com/library/d...-us/architec/8_
    > > > > > ar_da2_1uzr.asp
    > > > > > > > > > > > > > 4) Can anyone shed light on the error message 'Write on ... <my
    > path
    > > > > > > here>... failed, status = 112. BACKUP LOG is terminating
    > > abnormally'?
    > > > I
    > > > > > get
    > > > > > > this when trying to manually backup the Transaction Log 'All
    > Tasks -
    > > > > > Backup'
    > > > > > I don't know what this error is, at a guess there is a lack of
    disk
    > > > space.
    > > > > > Maybe there is more information in the SQL Server log file or in
    the
    > > > Event
    > > > > > log. You will also get errors if you backup to a mapped network
    > drive.
    > > > > > > > > John
    > > > > > > > > > > > > > > Thanks for any replies to my ignorance.
    > > > > > > > > > > > > > > > > > > > > > > > >|||John

    BACKUP LOG MyDb WITH TRUNCATE_ONLY
    DBCC SHRINKFILE (MyDb_log)

    If a Transaction File has grown from originally 1Mb to 100Mb, executing the
    above 2 lines in a stored procedure will shrink that Transaction File to as
    close to 1Mb as possible. This is exactly what I urgently need to do.
    However, if the Transaction File is full, hence I'm prevented from running
    the stored procedure, how do I execute these 2 lines of code against MyDb?
    I've tried using the Query Analyser. Line 1 executes correctly. However line
    2 causes the error "Server: Msg 8985, Level 16, State 1, Line 1. Could not
    locate file 'MyDb_Log' in sysfiles". I've manually verified that MyDb_Log
    does indeed exist in the sysfiles table of MyDb.

    Any suggestions?


    "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
    news:3ef9abc1$0$10629$ed9e5944@.reading.news.pipex. net...
    > Hi
    > I am not sure what you mean by not work. As in the link previously posted,
    > if you last virtual log is in use the file will not shrink
    >
    > "TZoner" <tzoner@.hotmail.com> wrote in message
    > news:3ef9a575$0$31280$afc38c87@.news.optusnet.com.a u...
    > > John you've nearly solved my dilemma!!
    > > As per your excellent like I was able to work out that running the 2
    > > following lines will reduce the Transaction File back to it's size!!!
    > > Hooray!!
    > > BACKUP LOG MyDb WITH TRUNCATE_ONLY
    > > DBCC SHRINKFILE (MyDb_log)
    > > However, because MyDb has it's Transaction File full, hence I can't
    > execute
    > > the above two lines. How do I run these commands when MyDb won't let me
    do
    > > anything to it? To test that the two commands worked I created a dummy
    > MyDb,
    > > grew its Transaction File then executed the two lines and it worked
    100%.
    > > Thank you so much for your suggestions!
    > > "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
    > > news:3ef98e4f$0$10627$ed9e5944@.reading.news.pipex. net...
    > > > Your transction logs are held in the ldf file which sp_help would give
    > e.g
    > > > for Northwind you would get something like:
    > > > > Name FileId filename filegroup Size Maxsize Growth
    > Usage
    > > > Northwind 1 E:\MSSQL\DATA\northwnd.mdf PRIMARY 3008 KB
    > > > Unlimited 10% data only
    > > > Northwind_log 2 E:\MSSQL\DATA\northwnd.ldf NULL 1024 KB
    > Unlimited
    > > > 10% log only
    > > > > Northwind_log is the internal logical name for the Transaction Log
    file
    > > > located at E:\MSSQL\DATA\northwnd.ldf. The log only usage shows it is
    a
    > > log
    > > > file.
    > > > > The log file will not automatically shrink on backup, see the link I
    > > posted
    > > > in the last reply regarding how to shrink it.
    > > > > John
    > > > > "TZoner" <tzoner@.hotmail.com> wrote in message
    > > > news:3ef9813b$0$31280$afc38c87@.news.optusnet.com.a u...
    > > > > John, thanks for the valuable information.
    > > > > > > Where is the 'Transaction Log' located? I can't find the answer
    > > > sp_helpfile
    > > > > or after endless searches on google.
    > > > > > > Does a Transaction Log exist per database in SQL Server? When backup
    > > > occurs,
    > > > > does these Transaction Log shrink?
    > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
    > > > > news:3ef95a3b$0$18495$ed9e5944@.reading.news.pipex. net...
    > > > > > See inline:
    > > > > > "TZoner" <tzoner@.hotmail.com> wrote in message
    > > > > > news:3ef952a0$0$31277$afc38c87@.news.optusnet.com.a u...
    > > > > > > 1) Can one find the location of the 'Transaction Log' at: <Hard
    > > > > > > Disk>\Program Files\Microsoft SQL
    Server\MSSQL\Data\MyDb_Log.ldf?
    > > > > > I am not sure what you are asking but sp_helpfile will give the
    > names
    > > > and
    > > > > > locations of the files associated with a current database.
    > > > > > > > > > > 2) Is it safe to delete it, as SQL will create a new Transaction

    > Log
    > > > > when
    > > > > > it
    > > > > > > realises none already exist?
    > > > > > I would not recommend deleting any logfile. If SQLServer is
    running
    > > then
    > > > > you
    > > > > > won't be able to as the file is locked. If you have detatched the
    > > > database
    > > > > > or SQL Server is not running, you may have problems re-attaching
    the
    > > > > > database or connecting to it once SQL Server is running.
    > > > > > > > > > > > > > 3) When trying to do 2) I get error message that file is in use,
    > > even
    > > > > > though
    > > > > > > SQL Server is closed. Any suggestions?
    > > > > > I doubt if you have stopped the service, but in any case you
    should
    > > not
    > > > be
    > > > > > deleting it.
    > > > > > If all you want to do is move the file then check out
    > > > > > http://support.microsoft.com/defaul...kb;EN-US;224071
    > > > > > > > > If you want to shrink it check out
    > > > > > > http://msdn.microsoft.com/library/d...-us/architec/8_
    > > > > > ar_da2_1uzr.asp
    > > > > > > > > > > > > > 4) Can anyone shed light on the error message 'Write on ... <my
    > path
    > > > > > > here>... failed, status = 112. BACKUP LOG is terminating
    > > abnormally'?
    > > > I
    > > > > > get
    > > > > > > this when trying to manually backup the Transaction Log 'All
    > Tasks -
    > > > > > Backup'
    > > > > > I don't know what this error is, at a guess there is a lack of
    disk
    > > > space.
    > > > > > Maybe there is more information in the SQL Server log file or in
    the
    > > > Event
    > > > > > log. You will also get errors if you backup to a mapped network
    > drive.
    > > > > > > > > John
    > > > > > > > > > > > > > > Thanks for any replies to my ignorance.
    > > > > > > > > > > > > > > > > > > > > > > > >|||Hi

    Try using the file id instead of the logical file name.

    sp_helpfile will give your bother the logical name and the file id.

    John

    "TZoner" <tzoner@.hotmail.com> wrote in message
    news:3ef9aec4$0$31274$afc38c87@.news.optusnet.com.a u...
    > John
    > BACKUP LOG MyDb WITH TRUNCATE_ONLY
    > DBCC SHRINKFILE (MyDb_log)
    > If a Transaction File has grown from originally 1Mb to 100Mb, executing
    the
    > above 2 lines in a stored procedure will shrink that Transaction File to
    as
    > close to 1Mb as possible. This is exactly what I urgently need to do.
    > However, if the Transaction File is full, hence I'm prevented from running
    > the stored procedure, how do I execute these 2 lines of code against MyDb?
    > I've tried using the Query Analyser. Line 1 executes correctly. However
    line
    > 2 causes the error "Server: Msg 8985, Level 16, State 1, Line 1. Could not
    > locate file 'MyDb_Log' in sysfiles". I've manually verified that MyDb_Log
    > does indeed exist in the sysfiles table of MyDb.
    > Any suggestions?
    >
    >
    >
    >
    >
    > "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
    > news:3ef9abc1$0$10629$ed9e5944@.reading.news.pipex. net...
    > > Hi
    > > I am not sure what you mean by not work. As in the link previously
    posted,
    > > if you last virtual log is in use the file will not shrink
    > > "TZoner" <tzoner@.hotmail.com> wrote in message
    > > news:3ef9a575$0$31280$afc38c87@.news.optusnet.com.a u...
    > > > John you've nearly solved my dilemma!!
    > > > > As per your excellent like I was able to work out that running the 2
    > > > following lines will reduce the Transaction File back to it's size!!!
    > > > Hooray!!
    > > > > BACKUP LOG MyDb WITH TRUNCATE_ONLY
    > > > DBCC SHRINKFILE (MyDb_log)
    > > > > However, because MyDb has it's Transaction File full, hence I can't
    > > execute
    > > > the above two lines. How do I run these commands when MyDb won't let
    me
    > do
    > > > anything to it? To test that the two commands worked I created a dummy
    > > MyDb,
    > > > grew its Transaction File then executed the two lines and it worked
    > 100%.
    > > > > Thank you so much for your suggestions!
    > > > > > > > > > > > > > > > > "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
    > > > news:3ef98e4f$0$10627$ed9e5944@.reading.news.pipex. net...
    > > > > Your transction logs are held in the ldf file which sp_help would
    give
    > > e.g
    > > > > for Northwind you would get something like:
    > > > > > > Name FileId filename filegroup Size Maxsize Growth
    > > Usage
    > > > > Northwind 1 E:\MSSQL\DATA\northwnd.mdf PRIMARY 3008
    KB
    > > > > Unlimited 10% data only
    > > > > Northwind_log 2 E:\MSSQL\DATA\northwnd.ldf NULL 1024 KB
    > > Unlimited
    > > > > 10% log only
    > > > > > > Northwind_log is the internal logical name for the Transaction Log
    > file
    > > > > located at E:\MSSQL\DATA\northwnd.ldf. The log only usage shows it
    is
    > a
    > > > log
    > > > > file.
    > > > > > > The log file will not automatically shrink on backup, see the link I
    > > > posted
    > > > > in the last reply regarding how to shrink it.
    > > > > > > John
    > > > > > > "TZoner" <tzoner@.hotmail.com> wrote in message
    > > > > news:3ef9813b$0$31280$afc38c87@.news.optusnet.com.a u...
    > > > > > John, thanks for the valuable information.
    > > > > > > > > Where is the 'Transaction Log' located? I can't find the answer
    > > > > sp_helpfile
    > > > > > or after endless searches on google.
    > > > > > > > > Does a Transaction Log exist per database in SQL Server? When
    backup
    > > > > occurs,
    > > > > > does these Transaction Log shrink?
    > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
    > > > > > news:3ef95a3b$0$18495$ed9e5944@.reading.news.pipex. net...
    > > > > > > See inline:
    > > > > > > "TZoner" <tzoner@.hotmail.com> wrote in message
    > > > > > > news:3ef952a0$0$31277$afc38c87@.news.optusnet.com.a u...
    > > > > > > > 1) Can one find the location of the 'Transaction Log' at:
    <Hard
    > > > > > > > Disk>\Program Files\Microsoft SQL
    > Server\MSSQL\Data\MyDb_Log.ldf?
    > > > > > > I am not sure what you are asking but sp_helpfile will give the
    > > names
    > > > > and
    > > > > > > locations of the files associated with a current database.
    > > > > > > > > > > > > 2) Is it safe to delete it, as SQL will create a new
    Transaction
    > > Log
    > > > > > when
    > > > > > > it
    > > > > > > > realises none already exist?
    > > > > > > I would not recommend deleting any logfile. If SQLServer is
    > running
    > > > then
    > > > > > you
    > > > > > > won't be able to as the file is locked. If you have detatched
    the
    > > > > database
    > > > > > > or SQL Server is not running, you may have problems re-attaching
    > the
    > > > > > > database or connecting to it once SQL Server is running.
    > > > > > > > > > > > > > > > > 3) When trying to do 2) I get error message that file is in
    use,
    > > > even
    > > > > > > though
    > > > > > > > SQL Server is closed. Any suggestions?
    > > > > > > I doubt if you have stopped the service, but in any case you
    > should
    > > > not
    > > > > be
    > > > > > > deleting it.
    > > > > > > If all you want to do is move the file then check out
    > > > > > > http://support.microsoft.com/defaul...kb;EN-US;224071
    > > > > > > > > > > If you want to shrink it check out
    > > > > > > > > > > http://msdn.microsoft.com/library/d...-us/architec/8_
    > > > > > > ar_da2_1uzr.asp
    > > > > > > > > > > > > > > > > 4) Can anyone shed light on the error message 'Write on ...
    <my
    > > path
    > > > > > > > here>... failed, status = 112. BACKUP LOG is terminating
    > > > abnormally'?
    > > > > I
    > > > > > > get
    > > > > > > > this when trying to manually backup the Transaction Log 'All
    > > Tasks -
    > > > > > > Backup'
    > > > > > > I don't know what this error is, at a guess there is a lack of
    > disk
    > > > > space.
    > > > > > > Maybe there is more information in the SQL Server log file or in
    > the
    > > > > Event
    > > > > > > log. You will also get errors if you backup to a mapped network
    > > drive.
    > > > > > > > > > > John
    > > > > > > > > > > > > > > > > > Thanks for any replies to my ignorance.
    > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >|||Hi there, I've also got the error "Server: Msg 8985, Level 16, State 1, Line 1. Could not locate file 'MyDb_Log' in sysfiles" when trying to shrink one of my databases's log files. I think I know the cause of the problem. When you de-attach a database, rename the database file and then re-attach the database then this error message will apear. The solution, delete that current database and create a new one but NEVER EVER rename the file name of the database