Weird Backup DB Problems In SQL Server 7

Jul 20, 2005

Here's a weird one.

I'm running SQL Server 7 and when I run a backup something weird
happens. When I perform the backup via Enterprise Manager by right
clicking on the database I want to backup, I click on OK but no
progress blocks show up in the window showing you the status of the
backup. The completion window pops up saying that the DB has been
backed up. OK--Fine, maybe the backup is really quick. Then, through
Explorer, I look at the directory where the database backup is placed.
It reads 0 KB - but - about a minute later the the size of the backup
changes to the correct size. Seems strange, wouldn't the "completed"
window show up after the backup is out there??

Well, to make matters a little more interesting, when I define this
one database in a maintenance plan, the plan will complete but no
backup is present! The log file shows it runs OK - and - when I run
the plan through query analyser it says OK, too. But, no backup is
present.

What gives?

View 2 Replies


ADVERTISEMENT

Weird Backup-restore Problem

Nov 21, 2000

This is so weird, I have never seen something like this before.
There is this very small testing database, only about 7MB.
I dump it to a file, then restore it to a new database
in other server. However the data in the new database is
not the same as the data in the testing database. It not
the most updated data.
There is no open trans in testing database, no open trans in
new database, I issued checkpoint on both databases,
truncated the log. Then dump it again to a file. But
after I restore it to the new database, the data in it
still doesn't match the data in testing database?
I am very sure there is no typo. I try to restore from GUI and
command line, same result, what I have after restoration is not
the most current data in testing database.

Any idea?

ps. there is no duplcated tables in either of the database.

View 3 Replies View Related

SQL Server Weird Problem???

Jun 2, 2004

Hello,

I've set up a basic login page that grabs some data from sql server. I've set up an sql server user for the connection and it all works fine.... until now that is... I get an "System.Data.SqlClient.SqlException: SQL Server does not exist or access denied." error..

Here's the weird thing though - I'm storing my connection string in web.config. If I open up web.config and re-save it, my login system works again - for a while anyway. Then it goes back to not working. When you save a web.config file, is it compiled in any sort of way? because when I do save it and run my web page, there's that sort of delay the first time round like there is when you update an aspx page or a dll. ? Anyway - it's as if that process sorts out my problem but only for a an hour or so and then the problem happens again.

I'm not making any changes to the web.config, just re-saving it. And everything else works fine, for a while at least, then the sql error happens.

Any ideas?

Thanks.

View 2 Replies View Related

Weird SQL Server 2005 EE

Apr 12, 2006

Hi, I just installed SQL Server 2005 EE. After installed it, I took a
look at the program. However, I found out that SQL Server 2005 EE
doesn't any program that you can create your database on. There nothing
like Ms. Access where you can run the program to create access database
file. SQL Server 2005 EE doesn't have something like that so that I
will have to create the database file under Visual Studio 2005
applications such as VWD or VB.

Is this just me or is that the way SQL Server 2005 EE is?

View 1 Replies View Related

Weird SQL Server Problem

Sep 21, 2001

I have an application which is a SQL Server 7 back end with VB 6 SP5 front end.

For some of my users, when the VB code calls a particular stored procedure, it causes VB to die without executing the stored procedure. I am connecting via ADO.


If I execute the same stored procedure via Query Analyzer on the same machines it works perfectly.

The same code also works perfectly on all the development machines.

The error only occurs for a particular stored procedure. Other stored procedures execute perfectly on the users' machines.

Any ideas?????

View 2 Replies View Related

Weird SQL Server 6.5 Problem

Jul 31, 2002

I have a weird problem!

I have a database which takes up 12.5Gb of disk space yet when I drop all the objects out of it, it says that I still have 9.5 Gb of disk taken up by the database!

The database itself is nothing special. There are a couple of inefficient tables (char rather than varchar etc) and one that contains a column of datatype "image" but other than that it is pretty good.

Can anyone help?

View 2 Replies View Related

Weird Problem With Sql Server Table

Dec 4, 2007

Hi Guys,I have got a weird problem which I have never faced. I have a table which has 3.8 million records. I found this information from sysindexes since I could not find the count using the Count(*). After breaking my head for a while I tried to use the Top function to get the results and I did get them but till 630000 record not a record more than that. I tried DBCC CheckDB as well as DBCC Checktable with no success. I would really appreciate if anyone can solve this problem. 

View 6 Replies View Related

Weird SQL Server 2000 Behavior

Aug 2, 2006

I was able to successfully create a database maintenance plan for SQL Server 2000 Transaction Log Shipping for a few databases a few weeks ago. Yesterday, I created a few more but to my surprise, I can no longer do it. I can create a maintenance plan but the job it creates does not start even if I force the job to start. I did exactly the same thing as what I did (as I document everything I do) before but no luck.

Has anybody had this experience before?

View 5 Replies View Related

Weird Behaviour With Logins At Server Level

Aug 27, 2007

Hi,
This thread is a reformulation of a prior thread. 
I created a login 'Network service' at server level in Management Studio express.I use windows authentification.Then i defined an user for my database which is associated to login 'Network service', because the application asp.net uses that account (IIS 6.0). This user received db_read and db_write roles.This works.Now i experimented a little bit and i removed from the logins at server level the login 'Network service'.Result: the application still works..Then i removed the Builtinusers login from the login list at server level.Result: i get the error: "login failed for Network service".I recreated then the login 'Network Service' at server level but not the Builtinusers login.Result: it works again.My conclusion is: one of the two logins must be in the list: Network Service or BuiltinusersIs this right?Why do i get that error when both logins are removed and not only when Network Service is removed?Thanks

View 1 Replies View Related

Weird Millisecond Part Of Datetime Data In SQL Server 2000

Dec 18, 2006

Execute following T-SQL within Queary Analyzer of SQL Server 2000:=======================================DECLARE @dTest DATETIMESET @dTest='2001-1-1 1:1:1:991'SELECT @dTestSET @dTest='2001-1-1 1:1:1:997'SELECT @dTestSET @dTest='2001-1-1 1:1:1:999'SELECT @dTest=======================================You get what?This is my result which is weird:2001-01-01 01:01:01.9902001-01-01 01:01:01.9972001-01-01 01:01:02.000Then what's the reason of this weird problem?

View 3 Replies View Related

Weird One. An Internal Error Occurred On The Report Server. (System Date?)

Mar 27, 2006

Hi guys,

We've had Reporting Services running in a production environ. for 6 months fine, but from Saturday every report now causes the following error (in both the Report Manager and Soap calls):

An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help

Specified argument was out of the range of valid values. Parameter name: date

Now, before you jump to conclusions - this error is occurring on reports with both parameters and no parameters (ie in reports that have no "date" parameter in the report).

The next bit of info is the weird bit...

It was working on Friday (25/March/2006) - so as a test, i switched the servers clock back to Friday - and BINGO... it worked. Then I changed it to Saturday (26th March) and it doesnt work. In fact for the next 7 days - the service will not work until April 2nd 2006 - (when I changed the systems date to the 2nd it worked again.) Moving forward, it looks like its working fine.

Does anyone have any suggestions? This is in a production environment, so obviously changing the sytsem date as a quick fix workaround wont suffice.

Thanks in advance.

Grey



View 1 Replies View Related

SQL Server 2008 :: Backup Running Long And Backup Threads Show Suspended

Feb 18, 2015

SQL Server 2008 r2 - 6 GB memory...I attempted a backup on a 500GB database but it was taking way too long. I checked the resources on the box and saw the CPU at 100%. I checked the SQL Server activity log and saw a hung query (user was not even logged on) that had multiple threads so I killed it and now the CPU utilization is back to normal.

Trouble is, now all of the threads in the activity monitor for the backup show 'suspended' and the backup appears to be not doing anything.

View 3 Replies View Related

SQL Server Admin 2014 :: Restore DB With Full Backup And Transactional Log Backup

Aug 3, 2015

Need to restore database,here's the scenario:

Data got deleted on Friday evening, need to have database restored to FRiday afternoon and also some data has been entered on Monday, which needs to be there.

View 8 Replies View Related

Can Windows 2003 Server Backup Utility Be Used To Backup A SQL 2000 Dbase

Dec 28, 2007

Windows 2003 backup utility uses the shadow copy option that allows it to copy open files.
Therefore, can I use this utility to backup the .mdf and .ldf files for my SQL 2000 database?
I can then attach the .mdf files if I need to restore the database to another server.
Can anyone tell me if this is safe? I've tried it and it worked but I'm worried there maybe some lurking danger in using this approach.

View 4 Replies View Related

SQL Server 2008 :: Count Number Of Backup Files Deleted From A Default Backup Location

Mar 13, 2015

I've written a custom script to delete backup files from location. But unable to modify now to count the number of files are deleted. How to modify the script...

/* Script to delete older than N days backup from a specific directory */

USE [db_admin]
GO
IF OBJECT_ID('usp_DeleteBackup', 'P') IS NOT NULL
DROP PROC usp_DeleteBackup
GO

[Code] .....

View 2 Replies View Related

How SQL SERVER 2005 Backup && ArcServe Backup Coexist ??

Apr 15, 2008

I have only one tape drive.
My server is using the SQL server 2005 backup tool and arcserve backup tool to backup different files .

Everytime I need to disable and enable the tape device driver (in device manager /windows) before I can use SQL server 2005 backup tool.

Everytime I need to disable and enable the tape device driver (in device manager /windows) before I can use arcserve backup tool.

It seems that the tape device resource is held by softwares even the tape drive is not in use.

What should I do to make the tape drive shared by different softwares?


Regards,
Manuel

View 2 Replies View Related

SQl Server 2000 Backup And Win2k Backup

Nov 29, 2001

I want to know how people are backup up their win2k system and SQL 2000 server. If you want a run backup once a night and first backup win2k file system and then run backup using sql agent will that work?
Thanks.

View 2 Replies View Related

SQL Server Backup And Third Part Backup Tool

Oct 2, 2001

SQL 7.0 SP1.
We do SQL Server backup and also third part backup (with SQL agent active) of SQL Server databases.
Sometimes happen this situation:

01.00 SQL Server backup of DB1
01.00 third part backup of DB1
02.00 SQL Server T-LOG backup of DB1
03.00 SQL Server T-LOG backup of DB1
03.30 SQL Server differnatial DB backup of DB1
04.00 SQL Server T-LOG backup of DB1

or this situation:

01.00 SQL Server backup of DB1
02.00 SQL Server T-LOG backup of DB1
03.00 SQL Server T-LOG backup of DB1
03.10 third part backup of DB1
03.30 SQL Server differnatial DB backup of DB1
04.00 SQL Server T-LOG backup of DB1

My questions now are:
Are my SQL Server backups valid (DB,Differenatial and T-LOG)?
In case of a restore operation, can I use my SQL Server backups without problem?
In other words, can we leave the third part backup tool active or it should be taken away?


Can anybody clarify this for me?
Thank you in advance.
Franco

View 1 Replies View Related

BACKUP LOG Cannot Be Performed Because There Is No Current Database Backup. BACKUP LOG Is Terminating Abnormally.

Jan 31, 2008



Hi there

I'm getting this message on my third automated backup of the transaction logs of the day. Both databases are in full recovery mode, both successfully backed up at 01.00. The transaction logs backed up perfectly happily at 01:30 and 05:30, but failed at 09:30.

The only difference between 05:30 and 09:30's backups is that the log files were shrunk at 08:15 (the databases in question are the ones that sit under ILM2007, and keeping the log files small keeps the system running better).


Is it possible that shrinking the log files causes the database to think that there hasn't been a full database backup?

Thanks

Jane

View 3 Replies View Related

Here Is A Weird One!!

Sep 24, 2001

I have a dts package that is mysteriously changing back to a previously saved version. Package is saved, and re-opened with saved changes, then moments later opened again to have been reverted back to an older version. Has anyone ran into this before?
The only thing that I can think of is that if a version of the package is left open on some other machine (as the older version0, it may be auto-saving, and reverting back.

View 3 Replies View Related

Really Weird One Here...

Mar 31, 2008

I run a website, so all of this is done remotely, I do not have access to the servers directly.

On my prior host, everything on the DB worked just fine. Had it optimized and running pretty good for the site by adding indexes, etc.

Then I moved to my new faster server (new host) and at first everything seemed to be just fine. However, some users started complaining about speed in spots.

Sure enough when I checked a given page -- WHAM... the page took about 14 seconds to load. Not exactly fast. :)

So I checked to make sure the indexes copied over and sure enough they did. But it was still slow, even in Query Analyzer/MSE.

So I decided to rerun my view script... on a lark... just to see if that affected something. And sure enough it did. The page started running at 1 second or less. OK, I thought, the view just got corrupted or something.

All was fine until the next night when it happened again. I had added 12 new rows to the table (I do this nightly) and it seemed that adding the new rows slowed down the system. Until the view was rebuilt. With that done again, it's worked fine.

But each night now I have to rerun that view.

What gives??? Is there a DB setting or something causing views/indexes to not be maintained?

The prior server was 2000 or 2003. The new one is 2005.

Again, I cannot get access to the box itself except through Management Studio. The host's tech support group is less than useless, treating everyone as incompetent before they help you.

Any hints or solutions would be a big help!

View 8 Replies View Related

Weird E+006

Mar 12, 2008

I'm trying to CAST an integer to a varchar and I keep getting e+006 in my result set. The reason I need to do this is so that I can combine 2 columns to return a string.

Here is my table:

incomeBracket | lowIncome(int) | highIncome(int)
-----------------------------------------------
1 1000001 5000000
2 5000001 10000000

Here is my query:

SELECT CAST(incomeLow AS varchar) + ' - ' + CAST(incomeHigh AS varchar) AS incomeRange
FROM IncomeBracket_Currency

How can I get my result to look like this:

1000001 - 5000000
5000001 - 10000000

Instead of what it is returning now:

1e+006 - 5e+006
5e+006 - 1e+007

The query works fine for values that have a character length of 6 and less.

Thanks in advance.

View 3 Replies View Related

A Weird Error !

Jul 25, 2006

I was developing a data-driven website but I got this error
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)
 
(I have Sql server 2005 also downloaded before)
Please help me cause any website that has data can not be executed even the quick start tutorial that ships with the ASP.NET 2.0
What should I do?

View 1 Replies View Related

Weird Concantenation

Nov 14, 2006

Hello and thanks for taking a moment to read this message.I have two colums from which I am taking values. One of which(a bit field), i am running a CASE statement against it to get SQL Server to return a string. The other is just a simple varchar column. My SELECT statement for the columns look like this:
SELECT Case tblDisplayProfile.Approved When 0 then 'Not Approved' when 1 then 'Approved' else 'Not looked at' END AS Approved, tblDisplayProfile.DisplayProfileDesc
These statements do return me something. Now what I want to do is combine (concantenate) the two fields. This is where I have problems. Any suggestions would be greatly appreciated.
 
Jason

View 13 Replies View Related

Weird Ado.net 2.0 Error

Nov 19, 2006

Why does ado.net produce this error when I kow for a fact that there are no connections to any sql server 2005 database involved - this could and probbaly has had people off looking at the wrong connection strings in their web.configs.
Note:- The connection string we have is to a sql 200 db I just wanted to make that clear.
CheersGegor
Error Message: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)Stack Trace:   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)   at System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner, Boolean& failoverDemandDone, String host, String failoverPartner, String protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject, Boolean aliasLookup)   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.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)   at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)   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 System.Web.SessionState.SqlSessionStateStore.SqlStateConnection..ctor(SqlPartitionInfo sqlPartitionInfo)

View 8 Replies View Related

Weird Problem

Jun 5, 2008

Hi, I moved a SQL 2000 DB to a SQL 2005 server.    When I run my .NET 1.1 or 3.5 website to call a stored procedure it returns the wrong results.The SQL stored proc runs fine when I excute it within SQL Manager  but gives a different result when called via  .NET The funny thing is I have 3 SQL servers 2000 , 2005 , and another 2005. The same data on each of the databases and the same website.  Two of the databases work but the second 2005 database my production server decrements the dates some how.  The funny thing is the stroed proc is not returning dates as such but a varchar of the name of the day that's getting decremented. My stored proc is SELECT

Case datepart(dw, DT_DATE)
When 2 Then 'Mon'
When 3 Then 'Tue'
When 4 Then 'Wed'
When 5 Then 'Thu'
When 6 Then 'Fri' End AS [WeekDay],
Sum(VL_HOURS) as Total

FROM ...

WHERE ....

GROUP BY datepart(dw, DT_DATE) and My c# .net code is "SqlHelper.ExecuteReader( connectionstring, storedproc, paramaeters);"using MS.ApplicationBlocksWhat happens that from sql, and 2 of my websites is when week day = 4 it returns   "Wed"    However on my Production server it returns "Tue" ??? 

View 4 Replies View Related

Weird Error

Mar 18, 2004

i have a form which takes in a lot of input...one of them is a date field..am passing all the values to the stored proc and inserting into a table from there...pretty simple...however when the user does not enter any value in the field...its errors out as...

String was not recognized as a valid DateTime.

heres the code in asp.net

myCommand.Parameters.Add(New SqlParameter("@cusbday",SqlDbType.datetime))
myCommand.Parameters("@cusbday").Value = trim(bday.text)


the field is optional....in my stored proc i am setting a default value too

....@cusbday Datetime =NULL,...

i also xplicitly set it to null through code
if @cusbday is null set @cusbday=null


how else do i resolve this...

thanks

View 13 Replies View Related

Weird Question

Apr 25, 2001

Hello!
MSSQL Server 7.0 SP1
When I open DTS designer for some unknown reason I'm getting error message "Could not create Component Categories manager".
Then under Task I don't have any choices.
Is there a quick way to fix it?

Thanks

Lena

View 1 Replies View Related

WEIRD ERROR

Feb 20, 2001

I was running a DTS package which transfer a complete database, about 2.3GB in size, to another database on the same server. It was necessary for environment change from dev to QA. I baby sat the package till it was rebuilding indexes (90%) complete. This morning I have the following error message on my screen,

[Microsoft][ODBC SQL Server Driver][SQL Server]
[Microsoft][ODBC SQL Server Driver][SQL Server]Location: r:SPHINXNTDBMSqueryqeexecqsxchng.inl:749
Expression: (m_cbPageMac + ulPxvarSize) <=m_pxpktdesc->m_cbPageMax
SPID: 40
ProcessID: 347

I have no idea at this time what caused it. And as far as I can tell there in r drive mapped wither on the serve or my computer ( I was running the DTS package from my machine).Any help is appreciated

View 1 Replies View Related

Really Weird SQL Failure

Jun 9, 2003

Last night our production server went crazy. The primary (production) database MDF file had size 15Gb and then for some reason the size became 0 (zero) K, So the SQL right away reported the error:

I/O error 38(Reached end of file.) detected during read of page buffer..

Error: 823, Severity: 24, State: 10

And the database became "suspected".
Now we restoring it, but have anybody seen such a thing before? I'm breaking my head to figure out what could cause this problem!!!!!

Dim

View 5 Replies View Related

Weird Prob!!!HELP

Aug 1, 2002

Whenever I am creating a new database, I am not getting any system stored procedures created :o( the system tables & views are created though :o(
what maybe the problem?

thanks!

View 4 Replies View Related

Weird Behaviour On Net Use

Jul 5, 2004

When I run the command:
exec master..xp_cmdshell 'NET USE'
from the analyzer the box responds there are no entries in the list.

After that, I run the command:
exec master..xp_cmdshell 'NET USE Z: /DELETE'
after which the box responds with a "network connection could not be found."
and that's all okay.

The weird thing is:
exec master..xp_cmdshell 'NET USE Z: \MACHINESHARENAME'
results in a "The local device name is already in use.".

The machine in this particular case is the box itself. I have no problem accessing other disks on other systems. I can see the share using the view command. There's no maximum on the share itself and I can connect to the share using another sql box with the same user.

I don't know why it won't budge, worked before like a charm. After six months or so it just stopped. Anyone seen/solved this behaviour?

thanx,

View 5 Replies View Related

Weird DateTime Value

Dec 20, 2004

I have a datetime field with a value of '-28049-03-16 10:01:16.267' in SQl Server 2000. I haven't a clue how or why this value was entered as I did not design or write the database. However, I do have the task of writing a DTS package to export the data to Access. The problem is that the DTS fails when it tries to export the record with the above value into an Access table with a Date/Time field. I thought I could get round this by using a UDF to say if the date equals this value then make it null:

RETURNS DateTime

As
BEGIN
DECLARE @CheckDate varChar(300)
SET @CheckDate = CONVERT(varChar(300),@Date)

IF (@CheckDate = '-28049-03-16 10:01:16.267')
BEGIN
SET @Date = Null
END
RETURN (@Date)
END

However when I use the UDF it gives me the following error:

Server: Msg 542, Level 16, State 1, Procedure UDFn_CheckDate, Line 23
An invalid datetime value was encountered. Value exceeds the year 9999.

I have tried many variations of Convert, Cast etc. but still can't get it to work.

Anybody got any ideas???

View 8 Replies View Related







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