473,748 Members | 10,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Database switching to read_only mode randomly

1 New Member
Ok, I'm looking for expert advice on this one.

I have a database which keeps going into read_only mode. Sometimes it goes into read_only / single user mode. Once it was taken offline completely. This seemingly happens randomly. Out of all of the database I have worked with, this has happened on 3 of them - several times randomly to each. All three of the databases that have exhibited this behaviour have been databases I have written for the company to which I am currently employed by. Once with SQL server 2000, another with sql server 2005, and another with SQL server 2008. Two of the database this happened to were/are using an asp.net front end - the other one was over 2 years ago and was using an ASP classic front end.

To be blunt, I believe a colleague who works for the same company is doing this in order to discredit me. I am almost certain about it, since it has happened at extremely odd times - like the day before a project review meeting where I really don't need to be spending hours trying to get my database out of read only mode - or today.. which was the worst occurrence yet - while in a project review meeting, he attempted to throw the database design under the bus directly to the boss man - to which the end result was us agreeing we would stress test the database to see whether in fact there is a problem with the design of the database or just any point of the database itself. I created a stored procedure to slam a parent table with 1,000,000 records, and then insert 40 records into a child table for each parent record. 41,000,000 records in total. (and yes I realize that's not an accurate test) If that was successful, I was going to perform other tests, this was just a good enough place to start. All was going good for 45 minutes, around 9,000,000 rows inserted and counting with minimal effort on the database server's part considering the feat it was performing. I left my desk to walk out of the building at 4:57ish and left the script to continue executing, give or take (while my colleage was still upstairs I might add). I got home later on, and the query had bombed. I checked the logs and the database went into read_only mode at 5:02.

The "dispute" between my colleague and I is over database design concept. He wrote the original one for the company - one that includes more than a few tables with 350+ columns. Rampant misuse of data types, no stored procedures. Horribly written views, etc. The database is written based on column based input, instead of row based relational data.

The database which I have structured - and which all three databases exhibiting this behaviour are/were structured like - uses relational n-tier structures with stored procedures, triggers, etc. EG: Table A has parent record, Table B is a "child" table of Table A and has 20 subsidiary records which relate to the parent record in Table A.

So.. I have several questions: Most of them simply because I'm second guessing myself now given the recent events, and I need to verify I'm not nuts.

1) Is this normal behaviour given my database design
2) Have I made serious error in the design of the database?
3) Is my colleague screwing with me?
4) If my colleague is screwing with me, can you think of any way I can set a trap for him and/or track by which method and/or user this issue is being executed - is there any way I can obtain proof that he is screwing with me.
5) Would you recommend any tweaks to my database design, or is it pretty standard?
6) The existing database, built by my colleague years ago has tables in it with 350 columns. Is 350+ columns in a single database table ludicrous or common place? It's ludicrous from my experiences, but I want to gather other people's thoughts on the matter.
7) If I'm not being screwed with, can you think of anything that could cause such a problem to occur?

Thanks, and I look forward to your responses on the matter :)
Oct 6 '09 #1
2 5618
ck9663
2,878 Recognized Expert Specialist
Looks to me like a personality problem, not a technical problem.

If your friend does not need admin rights, give him a user rights.


--- CK
Oct 7 '09 #2
Alice2k
1 New Member
wow, just wow! instead of learning from your methodologies and improving his skillset, he does this.

whelp, i would put some logging in / monitoring the server / lock his account, etc., but prove his account is doing this / what times, etc., then go to him with it (not the boss, no one likes a tattle tale) and tell him next time you'll take him to the boss, yourself, and let him decide what to do with the guy.

Or, can you redirect his account to a mock-database? maybe with registry / environment variables, etc.- you can redirect his account access to that mock-dbase, and he'll be none the wiser, whilst you and your stakeholders move along into the 22nd century.
Jul 16 '21 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
1983
by: Joseph Cook | last post by:
I was wondering if there was any way to do the following: If I have a class Base, and multiple Derived classes which all have some different behavior on some function foo()...is there any good way to have an object that can switch between these various functionalities..using a pointer to the generic class? as follows: class Status
1
2018
by: Matthew Wells | last post by:
I have a a parent form with a subform. The parent form has two command buttons to change the subform view to single form view and datasheet view respectively. I can't seem to get this to work. There is a menu item to switch to datasheet view, but it won't go back to form view. The only way I see so far is to open the subform by itself in design view, change the default view, save & close, then set the sourceobject property in the main...
2
1402
by: None | last post by:
Hi, I'm sure this a FAQ-worthy one, but.... I need a fairly simple database to catalogue a large number of photographs. The primary purpose is to be able to search on fields to see if a photo exists already and can be re-used. I want most of the fields to be pre-defined, maybe in the form of
4
2472
by: Macca | last post by:
Hi, I have an windows forms application that accesses a SQL database I have a few questions as to connecting to the database. This application will run 24 hours a day. It is a monitoring application and will store events that happen in the database (These events happen randomly without pattern, between 10-50 a day) . There are a number of situations where the database is accessed.
2
2872
by: Petra Chong | last post by:
Hello all I am using Python 2.3 and ZODB (without the rest of Zope) with the following pattern: * One process which writes stuff to a ZODB instance (call it test.db) * Another process which reads stuff from the above ZODB instance test.db What I find is that when the first process writes, the second doesn't
5
2335
by: war_wheelan | last post by:
I created the db with the attached script and I am able to access it until I reboot the server. I've tried enabling flag 1807 via the SQL server service and the startup parameters of the instance. In all cases the database always come up suspect after a reboot. There was one instance where I was able to recover, but I am not sure how that happened. Does anyone have an idea of how I can reboot the server without the database becomming...
2
2234
by: tamaker | last post by:
Is this do-able with ASP / VBscript? -- I have a database with user records (name, photo, etc. etc.) I want to use asp to generate (on the homepage) a series of 4 randomly selected 'user records' from the database -- say just the headshot photo or name from the database. In addition to the recordset being randomly generated (i.e. our of about 50 records, only records 4, 18, 23 and 26 are displayed) I need
9
6281
by: Gordon | last post by:
I want to add a feature to a project I'm working on where i have multiple users set up on my Postgres database with varying levels of access. At the bare minimum there will be a login user who only has read access to the users table so that users can log in. Once a user has been logged in successfully I want to escalate that user's access level to one appropriate to their role, which will include switching the postgres user they are...
9
7274
by: Sam Lambson | last post by:
Hi, This is similar to another post, because I still haven't gotten to the bottom of it. I have a back end database on a shared drive. Each (of 4) user has a front end file on their own C: drive. The main form that users have is bound to a query which merges 2 linked tables. It is not an action query. When the query is executed, everyone still has access to the form/query, until somebody makes an update. Or so it seems.
0
8823
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9238
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8237
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4593
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.