Showing posts with label dear. Show all posts
Showing posts with label dear. Show all posts

Tuesday, March 20, 2012

Could you tell me the VB code to check the file size in a folder and mail to xyz@abc.com automat

Dear all,

Could you tell me which code of vb scrip that i can check file size as follow ?

Dim FSO, Fyl
Set FSO = CreateObject("Scripting.FileSystemObject")
Set Fyl = CreateObject("File")

If FSO.FileExists("C:\temp\lcbseg.log") Then
Set Fyl = FSO.GetFile("C:\temp\lcbseg.log")
If Fyl.Size > 0 Then
Main = DTSStepScriptResult_ExecuteTask
Else
Main = DTSStepScriptResult_DontExecuteTask
End If
End if

Thanks

Best regards,

Kusuma

You need to do this in two stages, since there is no workflow script anymore.

Here is a sample for nthe Script Task. It uses a variable called FileSize, into which it stores the file size, surpirse!

Public Sub Main()

Dim info As System.IO.FileInfo = New System.IO.FileInfo("C:\File.txt")

Dim variables As New Variables

Dts.VariableDispenser.LockOneForWrite("FileSize", variables)

variables(0).Value = info.Length

variables.Unlock()

Dts.TaskResult = Dts.Results.Success

End Sub

Now you would use a precedenc constraint from the sript task to the next task, but be sure to include an expression. Double-click to get the UI, and try and expression like this-

@.[Use::FileSize] > 0

|||

I've tried to follow your code DarrenSQLIS, but it has the error "FileSize" for read/write access with error 0xC0010001 "The variable cannot be found. how can i fix this problem?

So i've some questions where can i declare FileSize variable. It's on SSIS menu=> varible,isn't it? and what's type of FileSize variable. For next what's property of expresstion to use @.[Use::FileSize] > 0.

Many thanks.

Best Regards,

Kusuma

|||I know you asked how do check for a file size equal to non zero in a script task, which can certainly be done with a script task as Darren illustrates.

Another technique for checking file existence and size simultaneously is use of "WMI Data Reader Task" with WQL. Use of the WMI data reader task will require a WMI connection manager, which is quick simple to configure, and available through the task's UI.

For example, the following WQL query checks for the existence and size of c:\boot.ini. simultaneously.

Select FileSize From CIM_Datafile Where Name = 'C:\\boot.ini'

After the WMI task, a downstream task can constrained by the following expression, which evaluates to true only for an existent, non zero byte file.

@.FileLength > "0\r\n"

NOTE, in this case, @.FileLength is a string variable, unlike the script task case. The reason the variable for file size is a string rather than a uint64 is that the WMI Data Reader task writes string and/or object variable types. The backslash is a special character to WMI, and as such is doubled up (escaped) in the WQL query.
|||

KUS wrote:

Dear all,

Could you tell me which code of vb scrip that i can check file size as follow ?

Dim FSO, Fyl
Set FSO = CreateObject("Scripting.FileSystemObject")
Set Fyl = CreateObject("File")

If FSO.FileExists("C:\temp\lcbseg.log") Then
Set Fyl = FSO.GetFile("C:\temp\lcbseg.log")
If Fyl.Size > 0 Then
Main = DTSStepScriptResult_ExecuteTask
Else
Main = DTSStepScriptResult_DontExecuteTask
End If
End if

Thanks

Best regards,

Kusuma

|||Hey hi . Could you tell me a VB code so that I can check a file size in a folder and mail to abc@.xyz.com if the file size is less than 10MB?|||First of all read the code above, it shows you how to get the file size into a variable. Then use an SMTP Send Mail Task to send the mail. To restrict the email to only files < 10MB, add an expression on the precendence constraint between the Script Task and Mail Task, @.Var < 10000sql

Could you please help me?

Dear All,
I have taken SQL courses three years ago and I have not use it since
then. Right now, I ran into a question. I am wondering if you could
kindly help me out:
There is a table with student_ids('sid') and professor_ids('pid'). Each
student can only have one professor as a mentor and each professor can
mentor several students. How do you find out how many students work for
each and every professor? Please provide the SQL.
Thank you very much for your help.If the pid is stored in the Student table and not in a external table
you could issue sort of this query:
Select count(*), pid
from students
Group by pid
HTH, Jens Suessmeyer.

could not start the database engine service in Sql Server 2005

Dear All,

I am not able to start the sql server 2005 database engine services...

Sql server 2005 server is installed in one machine(SERVER) and we have 10 client machine connecting to the server

When i try to start the service from the Service.msc in the SERVER i am getting the following error

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

Cannot connect to KEYSKILL.

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

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)


Error Number: 2
Severity: 20
State: 0

Program Location:

at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.ValidateConnection(UIConnectionInfo ci, IServerType server)
at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

Could any one help me to resolve the error

Thanks in Advance

Lalitha

Look in the Windows event log, there might be a hardware failure which is described in the event log. If you are not sure what to do with the log, send them over for investigation.

Jens K. Suessmeyer.

http://www.sqlserver2005.de
|||Could you post Errorlog & Event log information which will provide more info to sort out the problem.|||

HI Vidya,

This is the ERROR LOG information

2007-07-17 10:28:38.56 Server Microsoft SQL Server 2005 - 9.00.1406.00 (Intel X86)
Mar 3 2007 18:40:02
Copyright (c) 1988-2005 Microsoft Corporation
Developer Edition on Windows NT 5.2 (Build 3790: Service Pack 1)

2007-07-17 10:28:38.56 Server (c) 2005 Microsoft Corporation.
2007-07-17 10:28:38.56 Server All rights reserved.
2007-07-17 10:28:38.56 Server Server process ID is 3332.
2007-07-17 10:28:38.56 Server Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG'.
2007-07-17 10:28:38.56 Server This instance of SQL Server last reported using a process ID of 6000 at 7/17/2007 10:28:33 AM (local) 7/17/2007 4:58:33 AM (UTC). This is an informational message only; no user action is required.
2007-07-17 10:28:38.56 Server Registry startup parameters:
2007-07-17 10:28:38.56 Server -d C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf
2007-07-17 10:28:38.56 Server -e C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG
2007-07-17 10:28:38.56 Server -l C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf
2007-07-17 10:28:38.57 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2007-07-17 10:28:38.57 Server Detected 2 CPUs. This is an informational message; no user action is required.
2007-07-17 10:28:38.75 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required.
2007-07-17 10:28:38.76 Server Attempting to initialize Microsoft Distributed Transaction Coordinator (MS DTC). This is an informational message only. No user action is required.
2007-07-17 10:28:39.79 Server Attempting to recover in-doubt distributed transactions involving Microsoft Distributed Transaction Coordinator (MS DTC). This is an informational message only. No user action is required.
2007-07-17 10:28:39.79 Server Database Mirroring Transport is disabled in the endpoint configuration.
2007-07-17 10:28:39.81 spid5s Starting up database 'master'.
2007-07-17 10:28:39.93 spid5s SQL Trace ID 1 was started by login "sa".
2007-07-17 10:28:39.95 spid5s Starting up database 'mssqlsystemresource'.
2007-07-17 10:28:39.98 spid5s Error: 17207, Severity: 16, State: 1.
2007-07-17 10:28:39.98 spid5s FCB:Surprisepen: Operating system error 21(The device is not ready.) occurred while creating or opening file 'E:\sql\MSSQL.1\MSSQL\DATA\mssqlsystemresource.mdf'. Diagnose and correct the operating system error, and retry the operation.
2007-07-17 10:28:39.98 spid5s Error: 17204, Severity: 16, State: 1.
2007-07-17 10:28:39.98 spid5s FCB:Surprisepen failed: Could not open file E:\sql\MSSQL.1\MSSQL\DATA\mssqlsystemresource.mdf for file number 1. OS error: 21(The device is not ready.).
2007-07-17 10:28:39.98 spid5s Error: 5120, Severity: 16, State: 101.
2007-07-17 10:28:39.98 spid5s Unable to open the physical file "E:\sql\MSSQL.1\MSSQL\DATA\mssqlsystemresource.mdf". Operating system error 21: "21(The device is not ready.)".
2007-07-17 10:28:40.00 spid5s Error: 17207, Severity: 16, State: 1.
2007-07-17 10:28:40.00 spid5s FileMgr:Tongue TiedtartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'E:\sql\MSSQL.1\MSSQL\DATA\mssqlsystemresource.ldf'. Diagnose and correct the operating system error, and retry the operation.
2007-07-17 10:28:40.00 spid5s File activation failure. The physical file name "E:\sql\MSSQL.1\MSSQL\DATA\mssqlsystemresource.ldf" may be incorrect.
2007-07-17 10:28:40.00 spid5s Error: 945, Severity: 14, State: 2.
2007-07-17 10:28:40.00 spid5s Database 'mssqlsystemresource' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details.
2007-07-17 10:28:40.00 spid5s SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.

and i didnt find the event log file....

could u please tell me the path...

Regards

Lalitha

|||

Examine the location

E:\sql\MSSQL.1\MSSQL\DATA\mssqlsystemresource.*"


Does the file exist ?
Does the service account have the appropiate permissions to access it ?
Does the directory exists ?
is the directory on a shared network drive ?

Jens K. Suessmeyer

http://www.sqlserver2005.de

Thursday, March 8, 2012

Could not find stored procedure 'dbo.sp_MS_replication_installed'.

Dear all,
I want to add a new server as a publisher to an existing distributor,
but each time I try, I get this error:
Could not find stored procedure 'dbo.sp_MS_replication_installed'.
I also tried making this machine it's own distributor, but the same
error comes up.
Thanks in advance.
Aramid
Aramid,
Does the proc exist?
Try:
USE MASTER
GO
IF OBJECT_ID('SP_MS_REPLICATION_INSTALLED') IS NULL
PRINT 'PROC NOT INSTALLED'
ELSE
PRINT 'PROC INSTALLED'
Also, you may want to post this to:
http://www.microsoft.com/technet/com...replica tion
HTH
Jerry
"Aramid" <aramid@.hotmail.com> wrote in message
news:6t8sl19hf5c6mbgphm3nubjhim3b6ncg7b@.4ax.com...
> Dear all,
> I want to add a new server as a publisher to an existing distributor,
> but each time I try, I get this error:
> Could not find stored procedure 'dbo.sp_MS_replication_installed'.
> I also tried making this machine it's own distributor, but the same
> error comes up.
> Thanks in advance.
>
> Aramid

Could not find stored procedure 'dbo.sp_MS_replication_installed'.

Dear all,
I want to add a new server as a publisher to an existing distributor,
but each time I try, I get this error:
Could not find stored procedure 'dbo.sp_MS_replication_installed'.
I also tried making this machine it's own distributor, but the same
error comes up.
Thanks in advance.
Aramid
Reapply the latest sp. There seems to be a problem with the sp setup program
where it drops all the replication related procs, but somehow occasionally
forgets to reinstall them.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Aramid" <aramid@.hotmail.com> wrote in message
news:cs5sl1lm2mh8bso89aujduaii1gjpovpn4@.4ax.com...
> Dear all,
> I want to add a new server as a publisher to an existing distributor,
> but each time I try, I get this error:
> Could not find stored procedure 'dbo.sp_MS_replication_installed'.
> I also tried making this machine it's own distributor, but the same
> error comes up.
> Thanks in advance.
>
> Aramid
|||Thanks so much Hillary, I will try this one.
Aramid
On Tue, 25 Oct 2005 11:05:45 -0400, "Hilary Cotter"
<hilary.cotter@.gmail.com> wrote:

>Reapply the latest sp. There seems to be a problem with the sp setup program
>where it drops all the replication related procs, but somehow occasionally
>forgets to reinstall them.

Could not find stored procedure 'dbo.sp_MS_replication_installed'.

Dear all,
I want to add a new server as a publisher to an existing distributor,
but each time I try, I get this error:
Could not find stored procedure 'dbo.sp_MS_replication_installed'.
I also tried making this machine it's own distributor, but the same
error comes up.
Thanks in advance.
AramidAramid,
Does the proc exist?
Try:
USE MASTER
GO
IF OBJECT_ID('SP_MS_REPLICATION_INSTALLED')
IS NULL
PRINT 'PROC NOT INSTALLED'
ELSE
PRINT 'PROC INSTALLED'
Also, you may want to post this to:
http://www.microsoft.com/technet/co...ver.replication
HTH
Jerry
"Aramid" <aramid@.hotmail.com> wrote in message
news:6t8sl19hf5c6mbgphm3nubjhim3b6ncg7b@.
4ax.com...
> Dear all,
> I want to add a new server as a publisher to an existing distributor,
> but each time I try, I get this error:
> Could not find stored procedure 'dbo.sp_MS_replication_installed'.
> I also tried making this machine it's own distributor, but the same
> error comes up.
> Thanks in advance.
>
> Aramid

Could not find stored procedure 'dbo.sp_MS_replication_installed'.

Dear all,
I want to add a new server as a publisher to an existing distributor,
but each time I try, I get this error:
Could not find stored procedure 'dbo.sp_MS_replication_installed'.
I also tried making this machine it's own distributor, but the same
error comes up. :(
Thanks in advance.
AramidAramid,
Does the proc exist?
Try:
USE MASTER
GO
IF OBJECT_ID('SP_MS_REPLICATION_INSTALLED') IS NULL
PRINT 'PROC NOT INSTALLED'
ELSE
PRINT 'PROC INSTALLED'
Also, you may want to post this to:
http://www.microsoft.com/technet/community/newsgroups/dgbrowser/en-us/default.mspx?dg=microsoft.public.sqlserver.replication
HTH
Jerry
"Aramid" <aramid@.hotmail.com> wrote in message
news:6t8sl19hf5c6mbgphm3nubjhim3b6ncg7b@.4ax.com...
> Dear all,
> I want to add a new server as a publisher to an existing distributor,
> but each time I try, I get this error:
> Could not find stored procedure 'dbo.sp_MS_replication_installed'.
> I also tried making this machine it's own distributor, but the same
> error comes up. :(
> Thanks in advance.
>
> Aramid

Friday, February 24, 2012

Could not bulk insert

Dear All,
Im trying to execute the follownf command:
(BULK INSERT LOUIS_Publication.dbo.mbbmPlanSheetCache21
FROM '\\Ntp\app\HARRIS\MBSSTABRIXIROGA.TMP')
from Query analyzer and I get the message:
(Server: Msg 4861, Level 16, State 1, Line 1
Could not bulk insert because
file '\\Ntp\app\HARRIS\MBSSTABRIXIROGA.TMP' could not be
opened. Operating system error code 5(error not found).)
what might be the problem:
Hi,
This error normally comes when you are not able to access the remote share.
The problem might be the account under which your SQL Server runs, must be
authorized to access
the share on \\Ntp\app\HARRIS .
This will not work if SQL Server runs under the local system account. So
ensure that you start your SQL server using a domain account which has
access to \\Ntp\app\HARRIS share.
Thanks
Hari
MCDBA
"HARRIS ARISTOTELOUS" <harris@.glprodata.com> wrote in message
news:187bb01c41ae7$77752530$a101280a@.phx.gbl...
> Dear All,
> Im trying to execute the follownf command:
> (BULK INSERT LOUIS_Publication.dbo.mbbmPlanSheetCache21
> FROM '\\Ntp\app\HARRIS\MBSSTABRIXIROGA.TMP')
>
> from Query analyzer and I get the message:
> (Server: Msg 4861, Level 16, State 1, Line 1
> Could not bulk insert because
> file '\\Ntp\app\HARRIS\MBSSTABRIXIROGA.TMP' could not be
> opened. Operating system error code 5(error not found).)
> what might be the problem:
>
|||1. \\server\shared is relative to the sqlserver.
2. check to see if the NT acct used to start sqlserver service has access to
network shared. LocalSystem acct will not have any access to network
resources.
-oj
http://www.rac4sql.net
"HARRIS ARISTOTELOUS" <harris@.glprodata.com> wrote in message
news:187bb01c41ae7$77752530$a101280a@.phx.gbl...
> Dear All,
> Im trying to execute the follownf command:
> (BULK INSERT LOUIS_Publication.dbo.mbbmPlanSheetCache21
> FROM '\\Ntp\app\HARRIS\MBSSTABRIXIROGA.TMP')
>
> from Query analyzer and I get the message:
> (Server: Msg 4861, Level 16, State 1, Line 1
> Could not bulk insert because
> file '\\Ntp\app\HARRIS\MBSSTABRIXIROGA.TMP' could not be
> opened. Operating system error code 5(error not found).)
> what might be the problem:
>

Could not bulk insert

Dear All,
Im trying to execute the follownf command:
(BULK INSERT LOUIS_Publication.dbo.mbbmPlanSheetCache21
FROM '\\Ntp\app\HARRIS\MBSSTABRIXIROGA.TMP')
from Query analyzer and I get the message:
(Server: Msg 4861, Level 16, State 1, Line 1
Could not bulk insert because
file '\\Ntp\app\HARRIS\MBSSTABRIXIROGA.TMP' could not be
opened. Operating system error code 5(error not found).)
what might be the problem:Hi,
This error normally comes when you are not able to access the remote share.
The problem might be the account under which your SQL Server runs, must be
authorized to access
the share on \\Ntp\app\HARRIS .
This will not work if SQL Server runs under the local system account. So
ensure that you start your SQL server using a domain account which has
access to \\Ntp\app\HARRIS share.
Thanks
Hari
MCDBA
"HARRIS ARISTOTELOUS" <harris@.glprodata.com> wrote in message
news:187bb01c41ae7$77752530$a101280a@.phx
.gbl...
> Dear All,
> Im trying to execute the follownf command:
> (BULK INSERT LOUIS_Publication.dbo.mbbmPlanSheetCache21
> FROM '\\Ntp\app\HARRIS\MBSSTABRIXIROGA.TMP')
>
> from Query analyzer and I get the message:
> (Server: Msg 4861, Level 16, State 1, Line 1
> Could not bulk insert because
> file '\\Ntp\app\HARRIS\MBSSTABRIXIROGA.TMP' could not be
> opened. Operating system error code 5(error not found).)
> what might be the problem:
>|||1. \\server\shared is relative to the sqlserver.
2. check to see if the NT acct used to start sqlserver service has access to
network shared. LocalSystem acct will not have any access to network
resources.
-oj
http://www.rac4sql.net
"HARRIS ARISTOTELOUS" <harris@.glprodata.com> wrote in message
news:187bb01c41ae7$77752530$a101280a@.phx
.gbl...
> Dear All,
> Im trying to execute the follownf command:
> (BULK INSERT LOUIS_Publication.dbo.mbbmPlanSheetCache21
> FROM '\\Ntp\app\HARRIS\MBSSTABRIXIROGA.TMP')
>
> from Query analyzer and I get the message:
> (Server: Msg 4861, Level 16, State 1, Line 1
> Could not bulk insert because
> file '\\Ntp\app\HARRIS\MBSSTABRIXIROGA.TMP' could not be
> opened. Operating system error code 5(error not found).)
> what might be the problem:
>

Friday, February 17, 2012

could anybody explain to me why sqldatadpater does not allow subqueries?

Dear experts,

Recently i got an error msg looks like this: you cannot use subqueries within a sqldatadpter except the subquery is introduced with EXISTS.

Well, actually i was using IN.

I know I can revise my query sting to use INNER JOIN or such stuff just to remove the nested queries. But i'm realllllly curious why it's not allowed??

Really appreciate it if some expert can tell me.

Thanks in advance

Hi Paul,

Can you post the source code here? I have used subqueries (using IN) and they have worked for me.

Girish


Corruption of backup file on remote server

Dear all,

What I want to do is to backup my database through the SQL script, when the backup is successful, the .bak file is saved in my local harddisk. After that, I used the XYRunProc to execute a "copy" command to copy the .bak file to a remote server.

However, when I want to restore the database using the .bak on the remote server, I found that the .bak is corrupted. This problem does not exist if the file is copied to the remote server manually (click copy on local server and click paste on remote server).

Do anyone know what's the problem of this? This really made me very frustrated. Hope someone can help me, thank you very much!

Regards,
Strike

Hi Strike,

XYRunProc is an extended stored procedure written by someone outside of Microsoft. I couldn't even begin to tell you how it works or why it might be causing problems when copying files. Since a manual copy doesn't seem to affect the .bak file, it's clearly something about how XYRunProc is handling it.

I would suggest you contact the author of the xProc to determine what might be happening during the file copy.

Regards,

Mike Wachal
SQL Express team

-
Mark the best posts as Answers!

Tuesday, February 14, 2012

corrupted db with error when restore from transactionlog

Dear All,
A dabase index corrupted yesterday, and then we restore the database from
yesterday early morning with norecovery option, when I try to restore log,
get error message:
sql server is stand edit with sp4
Processed 374033 pages for database 'database', file 'log_file' on file 1.
Server: Msg 9004, Level 21, State 20, Line 1
An error occurred while processing the log for database ' '.
Connection Broken
Anyone can help me, please?
Thanks
YifeiHi
DBCC CHECKDB did you run?
"Yifei" <yifei.jiang@.sdg.aust.com> wrote in message
news:%23tsGCj7QGHA.5900@.tk2msftngp13.phx.gbl...
> Dear All,
> A dabase index corrupted yesterday, and then we restore the database from
> yesterday early morning with norecovery option, when I try to restore log,
> get error message:
> sql server is stand edit with sp4
> Processed 374033 pages for database 'database', file 'log_file' on file 1.
> Server: Msg 9004, Level 21, State 20, Line 1
> An error occurred while processing the log for database ' '.
> Connection Broken
> Anyone can help me, please?
> Thanks
> Yifei
>
>|||the dbcc checkdb returns the error message.
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:eSSo3ybRGHA.3052@.TK2MSFTNGP09.phx.gbl...
> Hi
> DBCC CHECKDB did you run?
> "Yifei" <yifei.jiang@.sdg.aust.com> wrote in message
> news:%23tsGCj7QGHA.5900@.tk2msftngp13.phx.gbl...
>|||Does anyone know what will cause log file can not be restored?
Cheers
Yifei
"Yifei" <yifei.jiang@.sdg.aust.com> wrote in message
news:%23tsGCj7QGHA.5900@.tk2msftngp13.phx.gbl...
> Dear All,
> A dabase index corrupted yesterday, and then we restore the database from
> yesterday early morning with norecovery option, when I try to restore log,
> get error message:
> sql server is stand edit with sp4
> Processed 374033 pages for database 'database', file 'log_file' on file 1.
> Server: Msg 9004, Level 21, State 20, Line 1
> An error occurred while processing the log for database ' '.
> Connection Broken
> Anyone can help me, please?
> Thanks
> Yifei
>
>

corrupted db with error when restore from transactionlog

Dear All,
A dabase index corrupted yesterday, and then we restore the database from
yesterday early morning with norecovery option, when I try to restore log,
get error message:
sql server is stand edit with sp4
Processed 374033 pages for database 'database', file 'log_file' on file 1.
Server: Msg 9004, Level 21, State 20, Line 1
An error occurred while processing the log for database ' '.
Connection Broken
Anyone can help me, please?
Thanks
YifeiHi
DBCC CHECKDB did you run?
"Yifei" <yifei.jiang@.sdg.aust.com> wrote in message
news:%23tsGCj7QGHA.5900@.tk2msftngp13.phx.gbl...
> Dear All,
> A dabase index corrupted yesterday, and then we restore the database from
> yesterday early morning with norecovery option, when I try to restore log,
> get error message:
> sql server is stand edit with sp4
> Processed 374033 pages for database 'database', file 'log_file' on file 1.
> Server: Msg 9004, Level 21, State 20, Line 1
> An error occurred while processing the log for database ' '.
> Connection Broken
> Anyone can help me, please?
> Thanks
> Yifei
>
>|||the dbcc checkdb returns the error message.
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:eSSo3ybRGHA.3052@.TK2MSFTNGP09.phx.gbl...
> Hi
> DBCC CHECKDB did you run?
> "Yifei" <yifei.jiang@.sdg.aust.com> wrote in message
> news:%23tsGCj7QGHA.5900@.tk2msftngp13.phx.gbl...
>> Dear All,
>> A dabase index corrupted yesterday, and then we restore the database from
>> yesterday early morning with norecovery option, when I try to restore
>> log,
>> get error message:
>> sql server is stand edit with sp4
>> Processed 374033 pages for database 'database', file 'log_file' on file
>> 1.
>> Server: Msg 9004, Level 21, State 20, Line 1
>> An error occurred while processing the log for database ' '.
>> Connection Broken
>> Anyone can help me, please?
>> Thanks
>> Yifei
>>
>|||Does anyone know what will cause log file can not be restored?
Cheers
Yifei
"Yifei" <yifei.jiang@.sdg.aust.com> wrote in message
news:%23tsGCj7QGHA.5900@.tk2msftngp13.phx.gbl...
> Dear All,
> A dabase index corrupted yesterday, and then we restore the database from
> yesterday early morning with norecovery option, when I try to restore log,
> get error message:
> sql server is stand edit with sp4
> Processed 374033 pages for database 'database', file 'log_file' on file 1.
> Server: Msg 9004, Level 21, State 20, Line 1
> An error occurred while processing the log for database ' '.
> Connection Broken
> Anyone can help me, please?
> Thanks
> Yifei
>
>

corrupted db with error when restore from transactionlog

Dear All,
A dabase index corrupted yesterday, and then we restore the database from
yesterday early morning with norecovery option, when I try to restore log,
get error message:
sql server is stand edit with sp4
Processed 374033 pages for database 'database', file 'log_file' on file 1.
Server: Msg 9004, Level 21, State 20, Line 1
An error occurred while processing the log for database ' '.
Connection Broken
Anyone can help me, please?
Thanks
Yifei
Hi
DBCC CHECKDB did you run?
"Yifei" <yifei.jiang@.sdg.aust.com> wrote in message
news:%23tsGCj7QGHA.5900@.tk2msftngp13.phx.gbl...
> Dear All,
> A dabase index corrupted yesterday, and then we restore the database from
> yesterday early morning with norecovery option, when I try to restore log,
> get error message:
> sql server is stand edit with sp4
> Processed 374033 pages for database 'database', file 'log_file' on file 1.
> Server: Msg 9004, Level 21, State 20, Line 1
> An error occurred while processing the log for database ' '.
> Connection Broken
> Anyone can help me, please?
> Thanks
> Yifei
>
>
|||the dbcc checkdb returns the error message.
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:eSSo3ybRGHA.3052@.TK2MSFTNGP09.phx.gbl...
> Hi
> DBCC CHECKDB did you run?
> "Yifei" <yifei.jiang@.sdg.aust.com> wrote in message
> news:%23tsGCj7QGHA.5900@.tk2msftngp13.phx.gbl...
>
|||Does anyone know what will cause log file can not be restored?
Cheers
Yifei
"Yifei" <yifei.jiang@.sdg.aust.com> wrote in message
news:%23tsGCj7QGHA.5900@.tk2msftngp13.phx.gbl...
> Dear All,
> A dabase index corrupted yesterday, and then we restore the database from
> yesterday early morning with norecovery option, when I try to restore log,
> get error message:
> sql server is stand edit with sp4
> Processed 374033 pages for database 'database', file 'log_file' on file 1.
> Server: Msg 9004, Level 21, State 20, Line 1
> An error occurred while processing the log for database ' '.
> Connection Broken
> Anyone can help me, please?
> Thanks
> Yifei
>
>