Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Thursday, March 29, 2012

DB2K- VB6 execution halts in between...database error

I am using VB6, on windows XP and using ODBC to connect to DB2 Database on database server internal network. I need to retrieve around 4000 - 5000 records and display information in Rich Text Box (RTB) on VB6 form. When I executes the program, it runs well for sometime and displays around 3000- 3500 records in RTB, then after some time it gives me following error.

Run-time error'-2147467259(80004005)';

[Microsoft][ODBC dBase Driver] Reserved Error (-3034); there is no message for this error.

When I press "DEBUG" button on message error box, it points to 2nd line of following code

strqueryAddrCust = "SELECT CUSTOMER from CUST where CUST_ID = '" + CStr(CustID) + "'"

Set localrecordsetAddrCust = AGFDB.CONAGF.Execute(strqueryAddrCust)
totalRecCountAddrCust = localrecordsetAddrCust.RecordCount

but goes through well while doing single stepping (F8) and executes well . It just stops sometimes.

When I copy the same database on my local host and map network drive to it, code runs perfectly fine without any error.

Please let me know what mght be the possible cause of this error...and any suggestions..

regards,

Anurag GuptaI've replied (http://www.dbforums.com/t991424.html) in the programming language forum. I think that your SQL is just fine, the problem lies elsewhere.

-PatP

Tuesday, March 27, 2012

db_owners unable to see login list

Hi. We are using SQL Server 2005 64-bit on Windows Server 2003 R2 x64
Enterprise Edition. I have a really weird problem where I have people
out there who are placed in the db_owner, db_accessadmin, and
db_securityadmin roles in their database, and yet they are unable to
add new users to their databases, despite the fact that logins exist
for these users on the server. The reason is that when attempting to
add a new user in Management Studio, upon using the "Browse" option to
look at the logins, the complete list is not presented to them. In
fact, they only see a couple of logins or so (the server has hundreds
of logins). Also, if they try to type in the login name directly,
they get a "permission denied" error message. Since they cannot add
users to their databases, they have to call me and have me do it for
them.

I created a test, non-privileged, SQL-authenticated login to test
things for my own sake, and when logged in under the test account, I
saw the same behavior. I had db_owner role for a single test
database, and when I went to add users, the only server logins that
were displayed were my own (the test login in this case) and that of
sa. Further, when I queried the master.sys.syslogins view, I saw the
same thing, it only came back with the rows for myself and sa.

It appears that this is clearly a security problem, but I'm not sure
at what level to look. We never had this problem with SQL Server 2000
or earlier. Does anyone have any idea what I can do to allow my
db_owners to see all the server logins, and therefore be able to add
users to their databases as they see fit? I really do NOT want to
assign them to server-level security roles, for obvious reasons.

Thanks,
SkyGringo[posted and mailed]

You asked the same question yesterday. For your convenience, I repeat
my answer, and send a mail copy as well. Please reply in the newsgroup.

SkyGringo (doug@.bu.edu) writes:

Quote:

Originally Posted by

I'm using the 64-bit version of SQL Server 2005, SP2, on Windows
Server 2003 R2 X64 Enterprise Edition. I've got a bunch of users out
there who are the db_owner, db_accessadmin and db_securityadmin of
their different respective databases. I would expect that they would
be able to add users to their databases, given that a login exists on
the server. However, when they go to browse logins to add a user in
Management Studio, they are only shown a very short list (like,
themselves and sa, and that's it). We have hundreds of logins on the
server, and they should be able to add any one of them to their
databases if they wish. And if they try to type in the login name
directly, they get a permission denied error.


They need to have VIEW DEFINITION on the logins they need to add. There
is no permission VIEW ANY LOGIN, but there is a server-level VIEW ANY
DEFINITION you can grant to them, but I would think twice before you
did.

Quote:

Originally Posted by

The only other thing I can add is it's not just occurring with the GUI
interface; the same thing happens when I do a direct query on the
master.sys.syslogins view: I only see the same two logins. So it
appears it's happening at that level and the result appears up in the
GUI.


It appears that you are of the old SQL 2000 school. :-)

Microsoft did a lot around security in SQL 2005, and one thing is
that objects are no longer visible to everyone. Essentially, you
can only see an object, if you have permission to it.

And the place to look for logins these days, is sys.server_principals.
While the old system tables are around for compatibility, they may not
show aspects that are new to SQL 2005.

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx

Thursday, March 22, 2012

DB Transactional Log Files

I have SQL Server 2000 Enterprise with SP3A and Windows
2000 Advanced Server.
I have one database with two transactional log files. The
two transactional log files are on different drives
(F:,G:).
I would like to have the first transaction log file (F:)
set to automatically grow and the second transaction log
file restricted log growth to 30GB.
Please help me with this issue.
Thanks,
DanWithin Enterprise Manager (within the SQL Server program group) you =should be able to right click on the database icon
properties
transaction log tab
Configure one file to be restricted to a maximum file size and the other =file would be unrestricted.
With that said, 30GB is a fairly large transaction log file. If you =need more than this you are probably doing massive amounts of data =movement (into a reporting database, perhaps) OR you are not backing up =your data in the best manner. If you want to investigate backup =techniques, Books Online (within the SQL Server program group) has lots =of information regarding backup and restore as well as performing =transaction log backups and having the ability to restore to the point =of failure (should one occur).
-- Keith
"Dan" <anonymous@.discussions.microsoft.com> wrote in message =news:1e1ea01c4554f$266f1d10$a301280a@.phx.gbl...
> > I have SQL Server 2000 Enterprise with SP3A and Windows > 2000 Advanced Server.
> > I have one database with two transactional log files. The > two transactional log files are on different drives > (F:,G:). > > I would like to have the first transaction log file (F:) > set to automatically grow and the second transaction log > file restricted log growth to 30GB.
> > Please help me with this issue.
> > Thanks,
> > Dan

Monday, March 19, 2012

DB restore error to new server

Hi,
We have just built a new Windows 2003 Std Ed, SP1 server with SQL
Server 2005 no SP.
We are attempting to restore the databases from an old server to this
new one, however after the restore process gets to 100% we recive the
following error:
SQL Server detected a logical consistency-based I/O error: incorrect
checksum (expected: 0x65f3e4dc; actual: 0x65f3e4de). It occurred during
a read of page (1:32625) in database ID 7 at offset 0x0000000fee2000 in
file 'D:\sqldata\filename.mdf'. Additional messages in the SQL Server
error log or system event log may provide more detail. This is a severe
error condition that threatens database integrity and must be corrected
immediately. Complete a full database consistency check (DBCC CHECKDB)
Does anybody know what might be the problem?
Regards
Paul RobertsBob wrote:
> Hi,
> We have just built a new Windows 2003 Std Ed, SP1 server with SQL
> Server 2005 no SP.
> We are attempting to restore the databases from an old server to this
> new one, however after the restore process gets to 100% we recive the
> following error:
> SQL Server detected a logical consistency-based I/O error: incorrect
> checksum (expected: 0x65f3e4dc; actual: 0x65f3e4de). It occurred during
> a read of page (1:32625) in database ID 7 at offset 0x0000000fee2000 in
> file 'D:\sqldata\filename.mdf'. Additional messages in the SQL Server
> error log or system event log may provide more detail. This is a severe
> error condition that threatens database integrity and must be corrected
> immediately. Complete a full database consistency check (DBCC CHECKDB)
> Does anybody know what might be the problem?
> Regards
> Paul Roberts
>
Sounds like a corrupt backup. That error is occurring as SQL tries to
"recover" the new database to bring it online. It's telling you that
database has an internal problem of some kind. I would run a new backup
of the original database to restore from. Barring that, use DBCC
CHECKDB to attempt a repair of the restored database.
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||Hi,
We tried that too with no luck.
This database is from a replicated database being restored to a
non-replication system.|||Bob wrote:
> Hi,
> We tried that too with no luck.
> This database is from a replicated database being restored to a
> non-replication system.
>
Tried the new backup, or tried running DBCC? If the new backup gave the
same error, you might want to run DBCC CHECKDB against the original
database.
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||The RESTORE command has a CONTINUE_AFTER_ERROR option. That should at lest g
et the database there,
so you can do something with it (like last resort emergency mode). But you s
hould really CHECKDB the
source database. If that db is clean, you shouldn't get corrupted backups.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Bob" <pmroberts@.talk21.com> wrote in message
news:1152811634.990074.129800@.p79g2000cwp.googlegroups.com...
> Hi,
> We tried that too with no luck.
> This database is from a replicated database being restored to a
> non-replication system.
>|||2 questions -
1. How are you copying over the .bak file between the 2 machines?
2. Is the file sie the same?
"Bob" wrote:

> Hi,
> We have just built a new Windows 2003 Std Ed, SP1 server with SQL
> Server 2005 no SP.
> We are attempting to restore the databases from an old server to this
> new one, however after the restore process gets to 100% we recive the
> following error:
> SQL Server detected a logical consistency-based I/O error: incorrect
> checksum (expected: 0x65f3e4dc; actual: 0x65f3e4de). It occurred during
> a read of page (1:32625) in database ID 7 at offset 0x0000000fee2000 in
> file 'D:\sqldata\filename.mdf'. Additional messages in the SQL Server
> error log or system event log may provide more detail. This is a severe
> error condition that threatens database integrity and must be corrected
> immediately. Complete a full database consistency check (DBCC CHECKDB)
> Does anybody know what might be the problem?
> Regards
> Paul Roberts
>|||Hi,
The files are being copied using windows drag and drop.
The file sizes are the same.
I am using SQL server management studio, I cannot see the RESTORE
command has a CONTINUE_AFTER_ERROR, I tried this option under the
backup option but with no luck.
I also tried new backups.
Is there a limit to the size of the backups?|||How do I use DBCC CHECKDB?|||Bob wrote:
> Hi,
> The files are being copied using windows drag and drop.
> The file sizes are the same.
> I am using SQL server management studio, I cannot see the RESTORE
> command has a CONTINUE_AFTER_ERROR, I tried this option under the
> backup option but with no luck.
> I also tried new backups.
> Is there a limit to the size of the backups?
>
You might need to do the restore with the sql command in order to
specify the CONTINUE AFTER ERROR option.
Try to look up RESTORE Database in Books On Line.
Also, have you tried to restore the files to a different drive? It might
not be the case, but you could have a bad spot on the disk and that's
why it fails (..I know it's a wild guess but it should be fairly easy to
try...).
Regards
Steen Schlter Persson
Databaseadministrator / Systemadministrator|||Hi,
Problem solved.
The issue is due to the fact that they are replication databases.
Since I am restoring to a different server, without replication, the
SQL server is supposed to realise this and remove replication status,
however it does not and you have to remove this manually with the
command: sp_removedbreplication dbname
You can then bring the database online.
See http://msdn2.microsoft.com/en-us/library/ms151782(d=ide).aspx
for more information.

DB restore error to new server

Hi,
We have just built a new Windows 2003 Std Ed, SP1 server with SQL
Server 2005 no SP.
We are attempting to restore the databases from an old server to this
new one, however after the restore process gets to 100% we recive the
following error:
SQL Server detected a logical consistency-based I/O error: incorrect
checksum (expected: 0x65f3e4dc; actual: 0x65f3e4de). It occurred during
a read of page (1:32625) in database ID 7 at offset 0x0000000fee2000 in
file 'D:\sqldata\filename.mdf'. Additional messages in the SQL Server
error log or system event log may provide more detail. This is a severe
error condition that threatens database integrity and must be corrected
immediately. Complete a full database consistency check (DBCC CHECKDB)
Does anybody know what might be the problem?
Regards
Paul RobertsBob wrote:
> Hi,
> We have just built a new Windows 2003 Std Ed, SP1 server with SQL
> Server 2005 no SP.
> We are attempting to restore the databases from an old server to this
> new one, however after the restore process gets to 100% we recive the
> following error:
> SQL Server detected a logical consistency-based I/O error: incorrect
> checksum (expected: 0x65f3e4dc; actual: 0x65f3e4de). It occurred during
> a read of page (1:32625) in database ID 7 at offset 0x0000000fee2000 in
> file 'D:\sqldata\filename.mdf'. Additional messages in the SQL Server
> error log or system event log may provide more detail. This is a severe
> error condition that threatens database integrity and must be corrected
> immediately. Complete a full database consistency check (DBCC CHECKDB)
> Does anybody know what might be the problem?
> Regards
> Paul Roberts
>
Sounds like a corrupt backup. That error is occurring as SQL tries to
"recover" the new database to bring it online. It's telling you that
database has an internal problem of some kind. I would run a new backup
of the original database to restore from. Barring that, use DBCC
CHECKDB to attempt a repair of the restored database.
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||Hi,
We tried that too with no luck.
This database is from a replicated database being restored to a
non-replication system.|||Bob wrote:
> Hi,
> We tried that too with no luck.
> This database is from a replicated database being restored to a
> non-replication system.
>
Tried the new backup, or tried running DBCC? If the new backup gave the
same error, you might want to run DBCC CHECKDB against the original
database.
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||The RESTORE command has a CONTINUE_AFTER_ERROR option. That should at lest get the database there,
so you can do something with it (like last resort emergency mode). But you should really CHECKDB the
source database. If that db is clean, you shouldn't get corrupted backups.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Bob" <pmroberts@.talk21.com> wrote in message
news:1152811634.990074.129800@.p79g2000cwp.googlegroups.com...
> Hi,
> We tried that too with no luck.
> This database is from a replicated database being restored to a
> non-replication system.
>|||2 questions -
1. How are you copying over the .bak file between the 2 machines?
2. Is the file sie the same?
"Bob" wrote:
> Hi,
> We have just built a new Windows 2003 Std Ed, SP1 server with SQL
> Server 2005 no SP.
> We are attempting to restore the databases from an old server to this
> new one, however after the restore process gets to 100% we recive the
> following error:
> SQL Server detected a logical consistency-based I/O error: incorrect
> checksum (expected: 0x65f3e4dc; actual: 0x65f3e4de). It occurred during
> a read of page (1:32625) in database ID 7 at offset 0x0000000fee2000 in
> file 'D:\sqldata\filename.mdf'. Additional messages in the SQL Server
> error log or system event log may provide more detail. This is a severe
> error condition that threatens database integrity and must be corrected
> immediately. Complete a full database consistency check (DBCC CHECKDB)
> Does anybody know what might be the problem?
> Regards
> Paul Roberts
>|||Hi,
The files are being copied using windows drag and drop.
The file sizes are the same.
I am using SQL server management studio, I cannot see the RESTORE
command has a CONTINUE_AFTER_ERROR, I tried this option under the
backup option but with no luck.
I also tried new backups.
Is there a limit to the size of the backups?|||How do I use DBCC CHECKDB?|||This is a multi-part message in MIME format.
--090202070601080406010907
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Bob wrote:
> Hi,
> The files are being copied using windows drag and drop.
> The file sizes are the same.
> I am using SQL server management studio, I cannot see the RESTORE
> command has a CONTINUE_AFTER_ERROR, I tried this option under the
> backup option but with no luck.
> I also tried new backups.
> Is there a limit to the size of the backups?
>
You might need to do the restore with the sql command in order to
specify the CONTINUE AFTER ERROR option.
Try to look up RESTORE Database in Books On Line.
Also, have you tried to restore the files to a different drive? It might
not be the case, but you could have a bad spot on the disk and that's
why it fails (..I know it's a wild guess but it should be fairly easy to
try...).
Regards
Steen Schlüter Persson
Databaseadministrator / Systemadministrator
--090202070601080406010907
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Bob wrote:
<blockquote
cite="mid1152874083.247364.97190@.35g2000cwc.googlegroups.com"
type="cite">
<pre wrap="">Hi,
The files are being copied using windows drag and drop.
The file sizes are the same.
I am using SQL server management studio, I cannot see the RESTORE
command has a CONTINUE_AFTER_ERROR, I tried this option under the
backup option but with no luck.
I also tried new backups.
Is there a limit to the size of the backups?
</pre>
</blockquote>
<font size="-1"><font face="Arial">You might need to do the restore
with the sql command in order to specify the CONTINUE AFTER ERROR
option.<br>
Try to look up RESTORE Database in Books On Line.<br>
<br>
Also, have you tried to restore the files to a different drive? It
might not be the case, but you could have a bad spot on the disk and
that's why it fails (..I know it's a wild guess but it should be fairly
easy to try...).<br>
<br>
<br>
-- <br>
Regards<br>
Steen Schlüter Persson<br>
Databaseadministrator / Systemadministrator<br>
</font></font>
</body>
</html>
--090202070601080406010907--|||Hi,
Problem solved.
The issue is due to the fact that they are replication databases.
Since I am restoring to a different server, without replication, the
SQL server is supposed to realise this and remove replication status,
however it does not and you have to remove this manually with the
command: sp_removedbreplication dbname
You can then bring the database online.
See http://msdn2.microsoft.com/en-us/library/ms151782(d=ide).aspx
for more information.

Sunday, March 11, 2012

DB properties cannot be changed with Enterprise Manager

Hello,

after the upgrade of MS SQL Server 7 to MS SQL Server 2000 on MS Windows 2000 Server and installation of MS SQL Server 2000 SP2 it is not possible to make changes to DB properties of user DBs with Enterprise Manager. MS SQL Server Instance properties and System DB properties are changeable with Enterprise Manager, but user DB properties can only be changed using Query Analyzer.

Has anybody an idea how to fix this problem?

Regards
Joe :rolleyes:Hi,

Do u trying to change by local Enterprise Manager or over Network?

Remember that are some new things in (2000) Permissions topic.

Explain more your schema.

[ ]'s|||Hi,

I tried to use the enterprise manager local and remote. Both doesn't work. I can display the user DB properties, but the ok button is grey. So I cannot use it.
What do you mean with new permissions at SQL 2000?

Regards
Joe

db permissions

Hi
I have a query in relation to db permissions. I created a local Windows
login and then created a SQL Server login using the same account. I gave this
login access just to one database and assigned him to the db_denydatawriter
role in that databse. This works fine as I just want them to have SELECT
access only on that db. The problem is that that login can still do SELECT,
UPDATE, DELETE and INSERT on other db's within the server.
I thought that if you didn't select Permit against a database in the
Database Access screen that the user would not have access to the db?
What is the best way to prevent this user from accessing any db's apart from
the one which I specified. I could obviously go through each db and specify
db_denydatawriter but on servers with lots of db's that is not really
practical.
Thanks in advance"jonjo" <jonjo@.discussions.microsoft.com> wrote in message
news:3DA9DC0E-FEA9-48DD-A7B6-CBC6FAAA0D92@.microsoft.com...
> Hi
> I have a query in relation to db permissions. I created a local Windows
> login and then created a SQL Server login using the same account. I gave
> this
> login access just to one database and assigned him to the
> db_denydatawriter
> role in that databse. This works fine as I just want them to have SELECT
> access only on that db. The problem is that that login can still do
> SELECT,
> UPDATE, DELETE and INSERT on other db's within the server.
> I thought that if you didn't select Permit against a database in the
> Database Access screen that the user would not have access to the db?
> What is the best way to prevent this user from accessing any db's apart
> from
> the one which I specified. I could obviously go through each db and
> specify
> db_denydatawriter but on servers with lots of db's that is not really
> practical.
> Thanks in advance
Check those other DB's for a guest account. If you don't have explicit
access to a database and it has a guest account, then your login will use
that guest account.
Rick Sawtell
MCT, MCSD, MCDBA|||Thanks Rick
I'll do that
"Rick Sawtell" wrote:
> "jonjo" <jonjo@.discussions.microsoft.com> wrote in message
> news:3DA9DC0E-FEA9-48DD-A7B6-CBC6FAAA0D92@.microsoft.com...
> > Hi
> >
> > I have a query in relation to db permissions. I created a local Windows
> > login and then created a SQL Server login using the same account. I gave
> > this
> > login access just to one database and assigned him to the
> > db_denydatawriter
> > role in that databse. This works fine as I just want them to have SELECT
> > access only on that db. The problem is that that login can still do
> > SELECT,
> > UPDATE, DELETE and INSERT on other db's within the server.
> >
> > I thought that if you didn't select Permit against a database in the
> > Database Access screen that the user would not have access to the db?
> >
> > What is the best way to prevent this user from accessing any db's apart
> > from
> > the one which I specified. I could obviously go through each db and
> > specify
> > db_denydatawriter but on servers with lots of db's that is not really
> > practical.
> >
> > Thanks in advance
> Check those other DB's for a guest account. If you don't have explicit
> access to a database and it has a guest account, then your login will use
> that guest account.
> Rick Sawtell
> MCT, MCSD, MCDBA
>
>

Thursday, March 8, 2012

db owner

We are using SQL Express and I have a problem with dbo.
On my machine if I logon to SQL Express using windows authentication
and create a new database I automatically have db_owner role membership
on the new database.
On a colleagues machine, if he logs onto his SQL Express using windows
authentication and creates a new database he does NOT have db_owner role
membership on the new database.
How come?
I have checked pretty much everythng - windows built in admins, SQL express
sysadmin roles, service pack versions but I can not find any difference in
setup.
What should I do to his machine/SQL Express setup so he automatically has
db_owner role membership for every newly created database?
Thanks
CharlieCharlie
What if you create login as the following
CREATE LOGIN Charlie WITH password='pp'
CREATE USER Charlie FOR LOGIN Charlie
WITH DEFAULT_SCHEMA=dbo
EXEC sp_addrolemembe 'db_owner','Charlie'
"Charlie" <Charlie@.discussions.microsoft.com> wrote in message
news:0ECAEB63-1450-40C9-B51D-01F5F4C9B92E@.microsoft.com...
> We are using SQL Express and I have a problem with dbo.
> On my machine if I logon to SQL Express using windows authentication
> and create a new database I automatically have db_owner role membership
> on the new database.
> On a colleagues machine, if he logs onto his SQL Express using windows
> authentication and creates a new database he does NOT have db_owner role
> membership on the new database.
> How come?
> I have checked pretty much everythng - windows built in admins, SQL
> express
> sysadmin roles, service pack versions but I can not find any difference in
> setup.
> What should I do to his machine/SQL Express setup so he automatically has
> db_owner role membership for every newly created database?
>
> Thanks
> Charlie
>

Saturday, February 25, 2012

DB Mirror

Hello,
SQL Server 2005 SP1 SE on WINDOWS 2003 sp1 both principal and mirror
SQL Serverver Express SP1 on WINDOWS 2003 sp1 Witness
In mirror monitoring witness indicates disconected from mirror.
All else is green.
Can ping witness from mirror and connect via MSSMS.
No errors in Witness SQL server errorlog.
What can I do to debug this? I have drilled into the status and I do not
see any errors.Hi Joe
I think that this may be correct see http://tinyurl.com/2zbgu8
John
"Joe" wrote:

> Hello,
> SQL Server 2005 SP1 SE on WINDOWS 2003 sp1 both principal and mirror
> SQL Serverver Express SP1 on WINDOWS 2003 sp1 Witness
> In mirror monitoring witness indicates disconected from mirror.
> All else is green.
> Can ping witness from mirror and connect via MSSMS.
> No errors in Witness SQL server errorlog.
> What can I do to debug this? I have drilled into the status and I do not
> see any errors.|||Hi John.
Thanks for the reply.
I kinda assumed I had a connectivity problem. Any ideas on how to
debug/resolve it?
Joe
"John Bell" wrote:
[vbcol=seagreen]
> Hi Joe
> I think that this may be correct see http://tinyurl.com/2zbgu8
> John
> "Joe" wrote:
>|||Hi Joe
I am not a replication/mirroring export. You may want to try the replication
news group!
John
"Joe" wrote:
[vbcol=seagreen]
> Hi John.
> Thanks for the reply.
> I kinda assumed I had a connectivity problem. Any ideas on how to
> debug/resolve it?
> Joe
> "John Bell" wrote:
>

DB Mirror

Hello,
SQL Server 2005 SP1 SE on WINDOWS 2003 sp1 both principal and mirror
SQL Serverver Express SP1 on WINDOWS 2003 sp1 Witness
In mirror monitoring witness indicates disconected from mirror.
All else is green.
Can ping witness from mirror and connect via MSSMS.
No errors in Witness SQL server errorlog.
What can I do to debug this? I have drilled into the status and I do not
see any errors.Hi Joe
I think that this may be correct see http://tinyurl.com/2zbgu8
John
"Joe" wrote:
> Hello,
> SQL Server 2005 SP1 SE on WINDOWS 2003 sp1 both principal and mirror
> SQL Serverver Express SP1 on WINDOWS 2003 sp1 Witness
> In mirror monitoring witness indicates disconected from mirror.
> All else is green.
> Can ping witness from mirror and connect via MSSMS.
> No errors in Witness SQL server errorlog.
> What can I do to debug this? I have drilled into the status and I do not
> see any errors.|||Hi John.
Thanks for the reply.
I kinda assumed I had a connectivity problem. Any ideas on how to
debug/resolve it?
Joe
"John Bell" wrote:
> Hi Joe
> I think that this may be correct see http://tinyurl.com/2zbgu8
> John
> "Joe" wrote:
> > Hello,
> > SQL Server 2005 SP1 SE on WINDOWS 2003 sp1 both principal and mirror
> > SQL Serverver Express SP1 on WINDOWS 2003 sp1 Witness
> > In mirror monitoring witness indicates disconected from mirror.
> > All else is green.
> > Can ping witness from mirror and connect via MSSMS.
> > No errors in Witness SQL server errorlog.
> > What can I do to debug this? I have drilled into the status and I do not
> > see any errors.|||Hi Joe
I am not a replication/mirroring export. You may want to try the replication
news group!
John
"Joe" wrote:
> Hi John.
> Thanks for the reply.
> I kinda assumed I had a connectivity problem. Any ideas on how to
> debug/resolve it?
> Joe
> "John Bell" wrote:
> > Hi Joe
> >
> > I think that this may be correct see http://tinyurl.com/2zbgu8
> >
> > John
> >
> > "Joe" wrote:
> >
> > > Hello,
> > > SQL Server 2005 SP1 SE on WINDOWS 2003 sp1 both principal and mirror
> > > SQL Serverver Express SP1 on WINDOWS 2003 sp1 Witness
> > > In mirror monitoring witness indicates disconected from mirror.
> > > All else is green.
> > > Can ping witness from mirror and connect via MSSMS.
> > > No errors in Witness SQL server errorlog.
> > > What can I do to debug this? I have drilled into the status and I do not
> > > see any errors.

DB Mirror

Hello,
SQL Server 2005 SP1 SE on WINDOWS 2003 sp1 both principal and mirror
SQL Serverver Express SP1 on WINDOWS 2003 sp1 Witness
In mirror monitoring witness indicates disconected from mirror.
All else is green.
Can ping witness from mirror and connect via MSSMS.
No errors in Witness SQL server errorlog.
What can I do to debug this? I have drilled into the status and I do not
see any errors.
Hi Joe
I think that this may be correct see http://tinyurl.com/2zbgu8
John
"Joe" wrote:

> Hello,
> SQL Server 2005 SP1 SE on WINDOWS 2003 sp1 both principal and mirror
> SQL Serverver Express SP1 on WINDOWS 2003 sp1 Witness
> In mirror monitoring witness indicates disconected from mirror.
> All else is green.
> Can ping witness from mirror and connect via MSSMS.
> No errors in Witness SQL server errorlog.
> What can I do to debug this? I have drilled into the status and I do not
> see any errors.
|||Hi John.
Thanks for the reply.
I kinda assumed I had a connectivity problem. Any ideas on how to
debug/resolve it?
Joe
"John Bell" wrote:
[vbcol=seagreen]
> Hi Joe
> I think that this may be correct see http://tinyurl.com/2zbgu8
> John
> "Joe" wrote:
|||Hi Joe
I am not a replication/mirroring export. You may want to try the replication
news group!
John
"Joe" wrote:
[vbcol=seagreen]
> Hi John.
> Thanks for the reply.
> I kinda assumed I had a connectivity problem. Any ideas on how to
> debug/resolve it?
> Joe
> "John Bell" wrote:

Friday, February 24, 2012

DB Maintenance & Single-User Mode

SQL Server 2000 SP3 running on Windows Server 2003. The machine is a
quad-Xeon 2.2 GHz with 4 GB of RAM.
The SQL Server instance has 4 non-system databases, including the SharePoint
Services content database. We've been running, at 2:00 AM, weekly complete
backups and nightly transaction log backups--with integrity checks and
optimizations.
Every morning, we find that only the SharePoint database has been set to
"Single User" restricted access. Every time, the log shows:
"DBCC CHECKDB (STS_1182080930, repair_fast) executed by NT AUTHORITY\SYSTEM
found 0 errors and repaired 0 errors."
The links below point to related information. This appears to have been a
bug in SQL Server 7. Is it still a bug in SQL Server 2000 SP3?
Thanks,
Jim
"FIX: SQLMaint.exe Sets Database Status Incorrectly"
http://support.microsoft.com/default...b;EN-US;276234
"a problem about repair damaged database and single user mode"
http://groups.google.com/groups?q=sq...t.c om&rnum=5
Yes but it's not necessarily a good idea to use that option
and you'd probably want to clear the Attempt to repair any
minor problems check box in the maintenance plan.
If you get DBCC errors, you'd want to manually intervene and
do some type of root cause analysis. Then proceed with
whatever action from there.
-Sue
On Mon, 30 Aug 2004 16:29:38 -0500, "Jim Moon"
<jmoon()at()uab.edu> wrote:

>SQL Server 2000 SP3 running on Windows Server 2003. The machine is a
>quad-Xeon 2.2 GHz with 4 GB of RAM.
>The SQL Server instance has 4 non-system databases, including the SharePoint
>Services content database. We've been running, at 2:00 AM, weekly complete
>backups and nightly transaction log backups--with integrity checks and
>optimizations.
>Every morning, we find that only the SharePoint database has been set to
>"Single User" restricted access. Every time, the log shows:
>"DBCC CHECKDB (STS_1182080930, repair_fast) executed by NT AUTHORITY\SYSTEM
>found 0 errors and repaired 0 errors."
>The links below point to related information. This appears to have been a
>bug in SQL Server 7. Is it still a bug in SQL Server 2000 SP3?
>Thanks,
>Jim
>"FIX: SQLMaint.exe Sets Database Status Incorrectly"
>http://support.microsoft.com/default...b;EN-US;276234
>
>"a problem about repair damaged database and single user mode"
>http://groups.google.com/groups?q=sq...t.c om&rnum=5
>
|||Thank you, Sue.
Jim
"Sue Hoegemeier" <Sue_H@.nomail.please> wrote in message
news:8gq7j0pemr387cd2csrsainr9v11a0npf6@.4ax.com...
> Yes but it's not necessarily a good idea to use that option
> and you'd probably want to clear the Attempt to repair any
> minor problems check box in the maintenance plan.
> If you get DBCC errors, you'd want to manually intervene and
> do some type of root cause analysis. Then proceed with
> whatever action from there.
> -Sue
> On Mon, 30 Aug 2004 16:29:38 -0500, "Jim Moon"
> <jmoon()at()uab.edu> wrote:
>

DB Maintenance & Single-User Mode

SQL Server 2000 SP3 running on Windows Server 2003. The machine is a
quad-Xeon 2.2 GHz with 4 GB of RAM.
The SQL Server instance has 4 non-system databases, including the SharePoint
Services content database. We've been running, at 2:00 AM, weekly complete
backups and nightly transaction log backups--with integrity checks and
optimizations.
Every morning, we find that only the SharePoint database has been set to
"Single User" restricted access. Every time, the log shows:
"DBCC CHECKDB (STS_1182080930, repair_fast) executed by NT AUTHORITY\SYSTEM
found 0 errors and repaired 0 errors."
The links below point to related information. This appears to have been a
bug in SQL Server 7. Is it still a bug in SQL Server 2000 SP3?
Thanks,
Jim
"FIX: SQLMaint.exe Sets Database Status Incorrectly"
http://support.microsoft.com/default.aspx?scid=kb;EN-US;276234
"a problem about repair damaged database and single user mode"
http://groups.google.com/groups?q=sql+server+dbcc+checkdb+single+user+mode&hl=en&lr=&ie=UTF-8&selm=etEeJupv%24GA.176%40cppssbbsa01.microsoft.com&rnum=5Yes but it's not necessarily a good idea to use that option
and you'd probably want to clear the Attempt to repair any
minor problems check box in the maintenance plan.
If you get DBCC errors, you'd want to manually intervene and
do some type of root cause analysis. Then proceed with
whatever action from there.
-Sue
On Mon, 30 Aug 2004 16:29:38 -0500, "Jim Moon"
<jmoon()at()uab.edu> wrote:
>SQL Server 2000 SP3 running on Windows Server 2003. The machine is a
>quad-Xeon 2.2 GHz with 4 GB of RAM.
>The SQL Server instance has 4 non-system databases, including the SharePoint
>Services content database. We've been running, at 2:00 AM, weekly complete
>backups and nightly transaction log backups--with integrity checks and
>optimizations.
>Every morning, we find that only the SharePoint database has been set to
>"Single User" restricted access. Every time, the log shows:
>"DBCC CHECKDB (STS_1182080930, repair_fast) executed by NT AUTHORITY\SYSTEM
>found 0 errors and repaired 0 errors."
>The links below point to related information. This appears to have been a
>bug in SQL Server 7. Is it still a bug in SQL Server 2000 SP3?
>Thanks,
>Jim
>"FIX: SQLMaint.exe Sets Database Status Incorrectly"
>http://support.microsoft.com/default.aspx?scid=kb;EN-US;276234
>
>"a problem about repair damaged database and single user mode"
>http://groups.google.com/groups?q=sql+server+dbcc+checkdb+single+user+mode&hl=en&lr=&ie=UTF-8&selm=etEeJupv%24GA.176%40cppssbbsa01.microsoft.com&rnum=5
>|||Thank you, Sue.
Jim
"Sue Hoegemeier" <Sue_H@.nomail.please> wrote in message
news:8gq7j0pemr387cd2csrsainr9v11a0npf6@.4ax.com...
> Yes but it's not necessarily a good idea to use that option
> and you'd probably want to clear the Attempt to repair any
> minor problems check box in the maintenance plan.
> If you get DBCC errors, you'd want to manually intervene and
> do some type of root cause analysis. Then proceed with
> whatever action from there.
> -Sue
> On Mon, 30 Aug 2004 16:29:38 -0500, "Jim Moon"
> <jmoon()at()uab.edu> wrote:
>>SQL Server 2000 SP3 running on Windows Server 2003. The machine is a
>>quad-Xeon 2.2 GHz with 4 GB of RAM.
>>The SQL Server instance has 4 non-system databases, including the
>>SharePoint
>>Services content database. We've been running, at 2:00 AM, weekly
>>complete
>>backups and nightly transaction log backups--with integrity checks and
>>optimizations.
>>Every morning, we find that only the SharePoint database has been set to
>>"Single User" restricted access. Every time, the log shows:
>>"DBCC CHECKDB (STS_1182080930, repair_fast) executed by NT
>>AUTHORITY\SYSTEM
>>found 0 errors and repaired 0 errors."
>>The links below point to related information. This appears to have been a
>>bug in SQL Server 7. Is it still a bug in SQL Server 2000 SP3?
>>Thanks,
>>Jim
>>"FIX: SQLMaint.exe Sets Database Status Incorrectly"
>>http://support.microsoft.com/default.aspx?scid=kb;EN-US;276234
>>
>>"a problem about repair damaged database and single user mode"
>>http://groups.google.com/groups?q=sql+server+dbcc+checkdb+single+user+mode&hl=en&lr=&ie=UTF-8&selm=etEeJupv%24GA.176%40cppssbbsa01.microsoft.com&rnum=5
>

DB Maintenance & Single-User Mode

SQL Server 2000 SP3 running on Windows Server 2003. The machine is a
quad-Xeon 2.2 GHz with 4 GB of RAM.
The SQL Server instance has 4 non-system databases, including the SharePoint
Services content database. We've been running, at 2:00 AM, weekly complete
backups and nightly transaction log backups--with integrity checks and
optimizations.
Every morning, we find that only the SharePoint database has been set to
"Single User" restricted access. Every time, the log shows:
"DBCC CHECKDB (STS_1182080930, repair_fast) executed by NT AUTHORITY\SYSTEM
found 0 errors and repaired 0 errors."
The links below point to related information. This appears to have been a
bug in SQL Server 7. Is it still a bug in SQL Server 2000 SP3?
Thanks,
Jim
"FIX: SQLMaint.exe Sets Database Status Incorrectly"
http://support.microsoft.com/defaul...kb;EN-US;276234
"a problem about repair damaged database and single user mode"
de&hl=en&l
r=&ie=UTF-8&selm=etEeJupv%24GA.176%40cppssbbsa01.microsoft.com&rnum=5" target="_blank">http://groups.google.com/groups? q=...soft.com&rnum=5Yes but it's not necessarily a good idea to use that option
and you'd probably want to clear the Attempt to repair any
minor problems check box in the maintenance plan.
If you get DBCC errors, you'd want to manually intervene and
do some type of root cause analysis. Then proceed with
whatever action from there.
-Sue
On Mon, 30 Aug 2004 16:29:38 -0500, "Jim Moon"
<jmoon()at()uab.edu> wrote:

>SQL Server 2000 SP3 running on Windows Server 2003. The machine is a
>quad-Xeon 2.2 GHz with 4 GB of RAM.
>The SQL Server instance has 4 non-system databases, including the SharePoin
t
>Services content database. We've been running, at 2:00 AM, weekly complet
e
>backups and nightly transaction log backups--with integrity checks and
>optimizations.
>Every morning, we find that only the SharePoint database has been set to
>"Single User" restricted access. Every time, the log shows:
>"DBCC CHECKDB (STS_1182080930, repair_fast) executed by NT AUTHORITY\SYSTEM
>found 0 errors and repaired 0 errors."
>The links below point to related information. This appears to have been a
>bug in SQL Server 7. Is it still a bug in SQL Server 2000 SP3?
>Thanks,
>Jim
>"FIX: SQLMaint.exe Sets Database Status Incorrectly"
>http://support.microsoft.com/defaul...kb;EN-US;276234
>
>"a problem about repair damaged database and single user mode"
>de&hl=en&
lr=&ie=UTF-8&selm=etEeJupv%24GA.176%40cppssbbsa01.microsoft.com&rnum=5" target="_blank">http://groups.google.com/groups? q=...soft.com&rnum=5
>|||Thank you, Sue.
Jim
"Sue Hoegemeier" <Sue_H@.nomail.please> wrote in message
news:8gq7j0pemr387cd2csrsainr9v11a0npf6@.
4ax.com...
> Yes but it's not necessarily a good idea to use that option
> and you'd probably want to clear the Attempt to repair any
> minor problems check box in the maintenance plan.
> If you get DBCC errors, you'd want to manually intervene and
> do some type of root cause analysis. Then proceed with
> whatever action from there.
> -Sue
> On Mon, 30 Aug 2004 16:29:38 -0500, "Jim Moon"
> <jmoon()at()uab.edu> wrote:
>
>

Sunday, February 19, 2012

db maint plan fail

Hi ,
i am trying to set up a database maintainenance plan on SQL server 2000 with
SP3 on Windows 2000 server but i encountered the following error :
Executed as user : NT AUTHORITY\SYSTEM. sqlmaint.exe failed (SQLState 42000)
Error : 22029. The step failed
could anyone advise ?
tks & rdgs
Hi,
Could you tell us what sort of job you are performing using Maintenance
Plan. If it is Transaction log backup ensure that your database recovery
models selected for backup must be either FULL or BULK_LOGGED. If it is
SIMPLE then log backup will fail.
Thanks
Hari
SQL Server MVP
"maxzsim" <maxzsim@.discussions.microsoft.com> wrote in message
news:1764E240-8F7F-4A96-B316-095633386279@.microsoft.com...
> Hi ,
> i am trying to set up a database maintainenance plan on SQL server 2000
> with
> SP3 on Windows 2000 server but i encountered the following error :
> Executed as user : NT AUTHORITY\SYSTEM. sqlmaint.exe failed (SQLState
> 42000)
> Error : 22029. The step failed
> could anyone advise ?
> tks & rdgs
|||Hi ,
i am backing up only the master , msdb & model dbs and i have changed the
mode to full backup however , i still got the same error
rdgs
"Hari Prasad" wrote:

> Hi,
> Could you tell us what sort of job you are performing using Maintenance
> Plan. If it is Transaction log backup ensure that your database recovery
> models selected for backup must be either FULL or BULK_LOGGED. If it is
> SIMPLE then log backup will fail.
> Thanks
> Hari
> SQL Server MVP
> "maxzsim" <maxzsim@.discussions.microsoft.com> wrote in message
> news:1764E240-8F7F-4A96-B316-095633386279@.microsoft.com...
>
>
|||Hi
If you right click on the plan in Enterprise Manager and call up the
Maintenance Plan History do you get a more detailed error message?
Also are you just performing backups or are you also defining integrity
checks. If so do not attempt to repair minor problems on the system DBs as
the process cannot get exclusive access to master or msdb (too many other
processes).
Yours
Alasdair Russell
"maxzsim" wrote:
[vbcol=seagreen]
> Hi ,
> i am backing up only the master , msdb & model dbs and i have changed the
> mode to full backup however , i still got the same error
> rdgs
>
> "Hari Prasad" wrote:

db maint plan fail

Hi ,
i am trying to set up a database maintainenance plan on SQL server 2000 with
SP3 on Windows 2000 server but i encountered the following error :
Executed as user : NT AUTHORITY\SYSTEM. sqlmaint.exe failed (SQLState 42000)
Error : 22029. The step failed
could anyone advise ?
tks & rdgsHi,
Could you tell us what sort of job you are performing using Maintenance
Plan. If it is Transaction log backup ensure that your database recovery
models selected for backup must be either FULL or BULK_LOGGED. If it is
SIMPLE then log backup will fail.
Thanks
Hari
SQL Server MVP
"maxzsim" <maxzsim@.discussions.microsoft.com> wrote in message
news:1764E240-8F7F-4A96-B316-095633386279@.microsoft.com...
> Hi ,
> i am trying to set up a database maintainenance plan on SQL server 2000
> with
> SP3 on Windows 2000 server but i encountered the following error :
> Executed as user : NT AUTHORITY\SYSTEM. sqlmaint.exe failed (SQLState
> 42000)
> Error : 22029. The step failed
> could anyone advise ?
> tks & rdgs|||Hi ,
i am backing up only the master , msdb & model dbs and i have changed the
mode to full backup however , i still got the same error
rdgs
"Hari Prasad" wrote:

> Hi,
> Could you tell us what sort of job you are performing using Maintenance
> Plan. If it is Transaction log backup ensure that your database recovery
> models selected for backup must be either FULL or BULK_LOGGED. If it is
> SIMPLE then log backup will fail.
> Thanks
> Hari
> SQL Server MVP
> "maxzsim" <maxzsim@.discussions.microsoft.com> wrote in message
> news:1764E240-8F7F-4A96-B316-095633386279@.microsoft.com...
>
>|||Hi
If you right click on the plan in Enterprise Manager and call up the
Maintenance Plan History do you get a more detailed error message?
Also are you just performing backups or are you also defining integrity
checks. If so do not attempt to repair minor problems on the system DBs as
the process cannot get exclusive access to master or msdb (too many other
processes).
Yours
Alasdair Russell
"maxzsim" wrote:
[vbcol=seagreen]
> Hi ,
> i am backing up only the master , msdb & model dbs and i have changed t
he
> mode to full backup however , i still got the same error
> rdgs
>
> "Hari Prasad" wrote:
>

db maint plan fail

Hi ,
i am trying to set up a database maintainenance plan on SQL server 2000 with
SP3 on Windows 2000 server but i encountered the following error :
Executed as user : NT AUTHORITY\SYSTEM. sqlmaint.exe failed (SQLState 42000)
Error : 22029. The step failed
could anyone advise ?
tks & rdgsHi,
Could you tell us what sort of job you are performing using Maintenance
Plan. If it is Transaction log backup ensure that your database recovery
models selected for backup must be either FULL or BULK_LOGGED. If it is
SIMPLE then log backup will fail.
Thanks
Hari
SQL Server MVP
"maxzsim" <maxzsim@.discussions.microsoft.com> wrote in message
news:1764E240-8F7F-4A96-B316-095633386279@.microsoft.com...
> Hi ,
> i am trying to set up a database maintainenance plan on SQL server 2000
> with
> SP3 on Windows 2000 server but i encountered the following error :
> Executed as user : NT AUTHORITY\SYSTEM. sqlmaint.exe failed (SQLState
> 42000)
> Error : 22029. The step failed
> could anyone advise ?
> tks & rdgs|||Hi ,
i am backing up only the master , msdb & model dbs and i have changed the
mode to full backup however , i still got the same error
rdgs
"Hari Prasad" wrote:
> Hi,
> Could you tell us what sort of job you are performing using Maintenance
> Plan. If it is Transaction log backup ensure that your database recovery
> models selected for backup must be either FULL or BULK_LOGGED. If it is
> SIMPLE then log backup will fail.
> Thanks
> Hari
> SQL Server MVP
> "maxzsim" <maxzsim@.discussions.microsoft.com> wrote in message
> news:1764E240-8F7F-4A96-B316-095633386279@.microsoft.com...
> > Hi ,
> >
> > i am trying to set up a database maintainenance plan on SQL server 2000
> > with
> > SP3 on Windows 2000 server but i encountered the following error :
> > Executed as user : NT AUTHORITY\SYSTEM. sqlmaint.exe failed (SQLState
> > 42000)
> > Error : 22029. The step failed
> >
> > could anyone advise ?
> > tks & rdgs
>
>|||Hi
If you right click on the plan in Enterprise Manager and call up the
Maintenance Plan History do you get a more detailed error message?
Also are you just performing backups or are you also defining integrity
checks. If so do not attempt to repair minor problems on the system DBs as
the process cannot get exclusive access to master or msdb (too many other
processes).
Yours
Alasdair Russell
"maxzsim" wrote:
> Hi ,
> i am backing up only the master , msdb & model dbs and i have changed the
> mode to full backup however , i still got the same error
> rdgs
>
> "Hari Prasad" wrote:
> > Hi,
> >
> > Could you tell us what sort of job you are performing using Maintenance
> > Plan. If it is Transaction log backup ensure that your database recovery
> > models selected for backup must be either FULL or BULK_LOGGED. If it is
> > SIMPLE then log backup will fail.
> >
> > Thanks
> > Hari
> > SQL Server MVP
> >
> > "maxzsim" <maxzsim@.discussions.microsoft.com> wrote in message
> > news:1764E240-8F7F-4A96-B316-095633386279@.microsoft.com...
> > > Hi ,
> > >
> > > i am trying to set up a database maintainenance plan on SQL server 2000
> > > with
> > > SP3 on Windows 2000 server but i encountered the following error :
> > > Executed as user : NT AUTHORITY\SYSTEM. sqlmaint.exe failed (SQLState
> > > 42000)
> > > Error : 22029. The step failed
> > >
> > > could anyone advise ?
> > > tks & rdgs
> >
> >
> >

Friday, February 17, 2012

DB Last Access Times

Hi All,
Would it be safe to use the last modified date of a .MDF file within Windows
Explorer to view the last time anyone utilised a database? I'm trying to
clear unused DB's from a server and am wondering if this is a reliable
method of finding unused data?
Many thanks in advance,
Orb.Hi
I'd run SQL Server Profiler to collect the info per database and then make
a conclusions. BTW , what version are you using?
"Orbital" <sian.clarke@.newhamhealth.nhs.uk> wrote in message
news:O60yZ6IXGHA.4148@.TK2MSFTNGP03.phx.gbl...
> Hi All,
> Would it be safe to use the last modified date of a .MDF file within
> Windows Explorer to view the last time anyone utilised a database? I'm
> trying to clear unused DB's from a server and am wondering if this is a
> reliable method of finding unused data?
>
> Many thanks in advance,
> Orb.
>|||Hi Uri,
Thanks for your rapid response!
I'm on SQL2000 right now.
The SQL Server Profiler you mention, is this an MS tool? If you would
kindly point me to any documentation/ resources I'd be really grateful!
Many Thanks in advance,
Orb.
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:ePtdY8IXGHA.2356@.TK2MSFTNGP03.phx.gbl...
> Hi
> I'd run SQL Server Profiler to collect the info per database and then
> make a conclusions. BTW , what version are you using?
>
>
> "Orbital" <sian.clarke@.newhamhealth.nhs.uk> wrote in message
> news:O60yZ6IXGHA.4148@.TK2MSFTNGP03.phx.gbl...
>> Hi All,
>> Would it be safe to use the last modified date of a .MDF file within
>> Windows Explorer to view the last time anyone utilised a database? I'm
>> trying to clear unused DB's from a server and am wondering if this is a
>> reliable method of finding unused data?
>>
>> Many thanks in advance,
>> Orb.
>|||> The SQL Server Profiler you mention, is this an MS tool?
Yes ,it is
> kindly point me to any documentation/ resources I'd be really grateful!
Actually , take a look at BOL for some explanations as well as visiting at
http://www.sql-server-performance.com/sql_server_profiler_tips.asp
"Orbital" <sian.clarke@.newhamhealth.nhs.uk> wrote in message
news:ecJRPAJXGHA.3760@.TK2MSFTNGP02.phx.gbl...
> Hi Uri,
> Thanks for your rapid response!
> I'm on SQL2000 right now.
> The SQL Server Profiler you mention, is this an MS tool? If you would
> kindly point me to any documentation/ resources I'd be really grateful!
>
> Many Thanks in advance,
> Orb.
> "Uri Dimant" <urid@.iscar.co.il> wrote in message
> news:ePtdY8IXGHA.2356@.TK2MSFTNGP03.phx.gbl...
>> Hi
>> I'd run SQL Server Profiler to collect the info per database and then
>> make a conclusions. BTW , what version are you using?
>>
>>
>> "Orbital" <sian.clarke@.newhamhealth.nhs.uk> wrote in message
>> news:O60yZ6IXGHA.4148@.TK2MSFTNGP03.phx.gbl...
>> Hi All,
>> Would it be safe to use the last modified date of a .MDF file within
>> Windows Explorer to view the last time anyone utilised a database? I'm
>> trying to clear unused DB's from a server and am wondering if this is a
>> reliable method of finding unused data?
>>
>> Many thanks in advance,
>> Orb.
>>
>|||"Orbital" <sian.clarke@.newhamhealth.nhs.uk> wrote in message
news:O60yZ6IXGHA.4148@.TK2MSFTNGP03.phx.gbl...
> Hi All,
> Would it be safe to use the last modified date of a .MDF file within
Windows
> Explorer to view the last time anyone utilised a database? I'm trying to
> clear unused DB's from a server and am wondering if this is a reliable
> method of finding unused data?
No, absolutely not.
In general the last modified date only shows the last time the server
started up or shut down or the size changed.
While in use, it generally doesn't change.
Now, you can try renaming the file, and it will fail if in use, but that's
not an entirely safe way to do things.
>
> Many thanks in advance,
> Orb.
>|||Uri,
This is superb, thanks for making me aware of this utility.
Many Thanks,
Orb.
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:%23dgh4OJXGHA.4924@.TK2MSFTNGP05.phx.gbl...
>> The SQL Server Profiler you mention, is this an MS tool?
> Yes ,it is
>> kindly point me to any documentation/ resources I'd be really grateful!
> Actually , take a look at BOL for some explanations as well as visiting
> at
> http://www.sql-server-performance.com/sql_server_profiler_tips.asp
>
>
>
> "Orbital" <sian.clarke@.newhamhealth.nhs.uk> wrote in message
> news:ecJRPAJXGHA.3760@.TK2MSFTNGP02.phx.gbl...
>> Hi Uri,
>> Thanks for your rapid response!
>> I'm on SQL2000 right now.
>> The SQL Server Profiler you mention, is this an MS tool? If you would
>> kindly point me to any documentation/ resources I'd be really grateful!
>>
>> Many Thanks in advance,
>> Orb.
>> "Uri Dimant" <urid@.iscar.co.il> wrote in message
>> news:ePtdY8IXGHA.2356@.TK2MSFTNGP03.phx.gbl...
>> Hi
>> I'd run SQL Server Profiler to collect the info per database and then
>> make a conclusions. BTW , what version are you using?
>>
>>
>> "Orbital" <sian.clarke@.newhamhealth.nhs.uk> wrote in message
>> news:O60yZ6IXGHA.4148@.TK2MSFTNGP03.phx.gbl...
>> Hi All,
>> Would it be safe to use the last modified date of a .MDF file within
>> Windows Explorer to view the last time anyone utilised a database? I'm
>> trying to clear unused DB's from a server and am wondering if this is a
>> reliable method of finding unused data?
>>
>> Many thanks in advance,
>> Orb.
>>
>>
>|||Hello Orbital,
I had exactly the same issue -- multiple databases and many of them
suspected of no usage.
I use Profiler, and monitor locks on the suspected databases. The idea behid
this is actually every access to Db is some kind of lock.
"Greg D. Moore (Strider)" wrote:
> "Orbital" <sian.clarke@.newhamhealth.nhs.uk> wrote in message
> news:O60yZ6IXGHA.4148@.TK2MSFTNGP03.phx.gbl...
> > Hi All,
> >
> > Would it be safe to use the last modified date of a .MDF file within
> Windows
> > Explorer to view the last time anyone utilised a database? I'm trying to
> > clear unused DB's from a server and am wondering if this is a reliable
> > method of finding unused data?
> No, absolutely not.
> In general the last modified date only shows the last time the server
> started up or shut down or the size changed.
> While in use, it generally doesn't change.
> Now, you can try renaming the file, and it will fail if in use, but that's
> not an entirely safe way to do things.
>
> >
> >
> > Many thanks in advance,
> > Orb.
> >
> >
>
>|||Thanks for your reply Strider. I've had a go at renaming what look to be
old databases - I think October 2003 datestamps should be safe!- and will
reinstate if anyone screams!
Thanks for you help,
Orb.
"Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in message
news:%23p9L0iJXGHA.1192@.TK2MSFTNGP03.phx.gbl...
> "Orbital" <sian.clarke@.newhamhealth.nhs.uk> wrote in message
> news:O60yZ6IXGHA.4148@.TK2MSFTNGP03.phx.gbl...
>> Hi All,
>> Would it be safe to use the last modified date of a .MDF file within
> Windows
>> Explorer to view the last time anyone utilised a database? I'm trying to
>> clear unused DB's from a server and am wondering if this is a reliable
>> method of finding unused data?
> No, absolutely not.
> In general the last modified date only shows the last time the server
> started up or shut down or the size changed.
> While in use, it generally doesn't change.
> Now, you can try renaming the file, and it will fail if in use, but that's
> not an entirely safe way to do things.
>
>>
>> Many thanks in advance,
>> Orb.
>>
>|||Hi Gary,
Thanks for your reply. I've just ran a quick trace and this is just what
I'm looking for!. My only problem now is relating the DatabaseID to the
actual DB I see in my SQL Enterprise Manager, as the DatabaseName column
somehow remains empty? Does anyone know how I match the two together?
Many Thanks,
Orb.
"Gary" <Gary@.discussions.microsoft.com> wrote in message
news:EDF55C4E-9EDE-4D7E-86E2-8BFCD26806AE@.microsoft.com...
> Hello Orbital,
> I had exactly the same issue -- multiple databases and many of them
> suspected of no usage.
> I use Profiler, and monitor locks on the suspected databases. The idea
> behid
> this is actually every access to Db is some kind of lock.
> "Greg D. Moore (Strider)" wrote:
>> "Orbital" <sian.clarke@.newhamhealth.nhs.uk> wrote in message
>> news:O60yZ6IXGHA.4148@.TK2MSFTNGP03.phx.gbl...
>> > Hi All,
>> >
>> > Would it be safe to use the last modified date of a .MDF file within
>> Windows
>> > Explorer to view the last time anyone utilised a database? I'm trying
>> > to
>> > clear unused DB's from a server and am wondering if this is a reliable
>> > method of finding unused data?
>> No, absolutely not.
>> In general the last modified date only shows the last time the server
>> started up or shut down or the size changed.
>> While in use, it generally doesn't change.
>> Now, you can try renaming the file, and it will fail if in use, but
>> that's
>> not an entirely safe way to do things.
>>
>> >
>> >
>> > Many thanks in advance,
>> > Orb.
>> >
>> >
>>|||select name from master..sysdatabases where dbid = '
--
HTH. Ryan
"Orbital" <sian.clarke@.newhamhealth.nhs.uk> wrote in message
news:uicVQbKXGHA.5096@.TK2MSFTNGP03.phx.gbl...
> Hi Gary,
> Thanks for your reply. I've just ran a quick trace and this is just what
> I'm looking for!. My only problem now is relating the DatabaseID to the
> actual DB I see in my SQL Enterprise Manager, as the DatabaseName column
> somehow remains empty? Does anyone know how I match the two together?
>
> Many Thanks,
> Orb.
> "Gary" <Gary@.discussions.microsoft.com> wrote in message
> news:EDF55C4E-9EDE-4D7E-86E2-8BFCD26806AE@.microsoft.com...
>> Hello Orbital,
>> I had exactly the same issue -- multiple databases and many of them
>> suspected of no usage.
>> I use Profiler, and monitor locks on the suspected databases. The idea
>> behid
>> this is actually every access to Db is some kind of lock.
>> "Greg D. Moore (Strider)" wrote:
>>
>> "Orbital" <sian.clarke@.newhamhealth.nhs.uk> wrote in message
>> news:O60yZ6IXGHA.4148@.TK2MSFTNGP03.phx.gbl...
>> > Hi All,
>> >
>> > Would it be safe to use the last modified date of a .MDF file within
>> Windows
>> > Explorer to view the last time anyone utilised a database? I'm trying
>> > to
>> > clear unused DB's from a server and am wondering if this is a reliable
>> > method of finding unused data?
>> No, absolutely not.
>> In general the last modified date only shows the last time the server
>> started up or shut down or the size changed.
>> While in use, it generally doesn't change.
>> Now, you can try renaming the file, and it will fail if in use, but
>> that's
>> not an entirely safe way to do things.
>>
>> >
>> >
>> > Many thanks in advance,
>> > Orb.
>> >
>> >
>>
>|||Thanks Ryan :o)
"Ryan" <Ryan_Waight@.nospam.hotmail.com> wrote in message
news:%23IU6ngKXGHA.1228@.TK2MSFTNGP02.phx.gbl...
> select name from master..sysdatabases where dbid = '
> --
> HTH. Ryan
>
> "Orbital" <sian.clarke@.newhamhealth.nhs.uk> wrote in message
> news:uicVQbKXGHA.5096@.TK2MSFTNGP03.phx.gbl...
>> Hi Gary,
>> Thanks for your reply. I've just ran a quick trace and this is just what
>> I'm looking for!. My only problem now is relating the DatabaseID to the
>> actual DB I see in my SQL Enterprise Manager, as the DatabaseName column
>> somehow remains empty? Does anyone know how I match the two together?
>>
>> Many Thanks,
>> Orb.
>> "Gary" <Gary@.discussions.microsoft.com> wrote in message
>> news:EDF55C4E-9EDE-4D7E-86E2-8BFCD26806AE@.microsoft.com...
>> Hello Orbital,
>> I had exactly the same issue -- multiple databases and many of them
>> suspected of no usage.
>> I use Profiler, and monitor locks on the suspected databases. The idea
>> behid
>> this is actually every access to Db is some kind of lock.
>> "Greg D. Moore (Strider)" wrote:
>>
>> "Orbital" <sian.clarke@.newhamhealth.nhs.uk> wrote in message
>> news:O60yZ6IXGHA.4148@.TK2MSFTNGP03.phx.gbl...
>> > Hi All,
>> >
>> > Would it be safe to use the last modified date of a .MDF file within
>> Windows
>> > Explorer to view the last time anyone utilised a database? I'm
>> > trying to
>> > clear unused DB's from a server and am wondering if this is a
>> > reliable
>> > method of finding unused data?
>> No, absolutely not.
>> In general the last modified date only shows the last time the server
>> started up or shut down or the size changed.
>> While in use, it generally doesn't change.
>> Now, you can try renaming the file, and it will fail if in use, but
>> that's
>> not an entirely safe way to do things.
>>
>> >
>> >
>> > Many thanks in advance,
>> > Orb.
>> >
>> >
>>
>>
>|||"Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in message
news:%23p9L0iJXGHA.1192@.TK2MSFTNGP03.phx.gbl...
> "Orbital" <sian.clarke@.newhamhealth.nhs.uk> wrote in message
> news:O60yZ6IXGHA.4148@.TK2MSFTNGP03.phx.gbl...
>> Hi All,
>> Would it be safe to use the last modified date of a .MDF file within
> Windows
>> Explorer to view the last time anyone utilised a database? I'm trying to
>> clear unused DB's from a server and am wondering if this is a reliable
>> method of finding unused data?
> No, absolutely not.
> In general the last modified date only shows the last time the server
> started up or shut down or the size changed.
> While in use, it generally doesn't change.
> Now, you can try renaming the file, and it will fail if in use, but that's
> not an entirely safe way to do things.
If you set the database to autoclose, the time on the file will indeed
change even though the server was not re-started.
sp_dboption FooDb , autoclose, false

Tuesday, February 14, 2012

DB errors after upgrading from Win2k to Win2k3

We have a few popular sites sharing a database. We were running smoothly on Windows 2000, but then we did a hardware upgrade and an OS upgrade to Windows 2003. Since then we've been having a lot of DB errors. I've optimised the queries and took down the n
umber to somewhere near 1/15th the number of queries the 2000 server was handling fine. The errors have clearly went down in frequency, yet not completely.
The most common error is:
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
followed by:
Timeout expired
and lastly (this happened only a few times):
[DBNETLIB][ConnectionRead (recv()).]General network error. Check your network documentation.
It seems I'm not the only one having such problems, having seen it being mentioned quite a few times in forums. Does anyone have a solution please?
Mark,
We are having the same problem. We upgrated from Win2000 to Win2003. We opened ticket with Microsoft and they still haven't found the solution.
I found a thread that stated that people on Win2000 with SQL Server SP3 had the same problem. I think it is SP3 because you have to install SP# for SQL if you are planning it to run on Win2003.
Thanks,
Anna
"Mark Cilia Vincenti" wrote:
[vbcol=seagreen]
> PS - the errors are intermittent, and right now make a very small percentage of the number of requests. However we are planning improvements which will take the queries up again, and we need to solve this problem first.
> "Mark Cilia Vincenti" wrote:
he number to somewhere near 1/15th the number of queries the 2000 server was handling fine. The errors have clearly went down in frequency, yet not completely.[vbcol=seagreen]

DB errors after upgrading from Win2k to Win2k3

We have a few popular sites sharing a database. We were running smoothly on
Windows 2000, but then we did a hardware upgrade and an OS upgrade to Window
s 2003. Since then we've been having a lot of DB errors. I've optimised the
queries and took down the n
umber to somewhere near 1/15th the number of queries the 2000 server was han
dling fine. The errors have clearly went down in frequency, yet not complete
ly.
The most common error is:
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
access denied.
followed by:
Timeout expired
and lastly (this happened only a few times):
[DBNETLIB][ConnectionRead (recv()).]General network error. Check you
r network documentation.
It seems I'm not the only one having such problems, having seen it being men
tioned quite a few times in forums. Does anyone have a solution please?Mark,
We are having the same problem. We upgrated from Win2000 to Win2003. We open
ed ticket with Microsoft and they still haven't found the solution.
I found a thread that stated that people on Win2000 with SQL Server SP3 had
the same problem. I think it is SP3 because you have to install SP# for SQL
if you are planning it to run on Win2003.
Thanks,
Anna
"Mark Cilia Vincenti" wrote:
[vbcol=seagreen]
> PS - the errors are intermittent, and right now make a very small percenta
ge of the number of requests. However we are planning improvements which wil
l take the queries up again, and we need to solve this problem first.
> "Mark Cilia Vincenti" wrote:
>
he number to somewhere near 1/15th the number of queries the 2000 server was handling fine.
The errors have clearly went down in frequency, yet not completely.[vbcol=seagreen]