Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 23rd, 2007, 02:40 PM
Authorized User
 
Join Date: Apr 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default I am an idiot....DB not updating w/o Agent?

Hi gang,

I AM actually a somewhat accomplished .NET (among other things) developer, and consider myself pretty familiar with SQL Server 2K.

However, I just experienced a weird thing that I do not understand and am hoping someone can show me the light.

I have a simple VB.NET app that updates a table in SQL Server 2K. It was working just fine but after a reboot of my machine, stopped updating the DB. No error, nothing, just no updates or inserts to the DB.

I was looking to be sure the SQL Server Service was running, and just on a whim, I activated the SQL Server Agent Service. Suddenly the .NET app was working again! Stopped the Agent Service, and the app stopped working.

WHY?!?!? I'm not crazy in remembering that I have never had to do this in the past, right? Or was it always running and I have never noticed, and that is the way the SQL Server architecture is designed?

I am running XP Pro, .NET 2.0, and SP4 on SQL Server 2K. Can anyone either point me in the right direction, or confirm the title of this post?

Thanks!

Chris
 
Old April 23rd, 2007, 03:24 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

That is very unusual but check what account your SQL server is running on.

1-Are you running the SQL Server under the local server account
2-Are you part of the domain or local administrator group
3-Do you still have the built/administrator account as a login to SQL?

Jaime E. Maccou
 
Old April 23rd, 2007, 04:39 PM
Authorized User
 
Join Date: Apr 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Jaime,

Thanks for jumping in on this.

1) I am running SQL Server (and the services) as the Administrator WinXP user account.
2) We use a workgroup here, but no domain.
3) In my Security node for the local instance, I have BUILTIN/Administrators, <machine name>/ASPNET, sa, and the user account for the DB I am working with.

Additionally, in the Users node of the DB I am working with, I have ASPNET, dbo, and the user account.

Is there something missing there?

Thanks!

Chris
 
Old April 24th, 2007, 01:11 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You certainly don't need the agent running to connect to SQL Server. If you start the agent it will start the SQL Service automatically. Are you sure the main service was running, can you reproduce this by turning off just the agent?

--

Joe (Microsoft MVP - XML)
 
Old April 24th, 2007, 11:30 AM
Authorized User
 
Join Date: Apr 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Joe,

Yeah, first thing I tried. I thought, at first, it was just coincidence, but it was totally reproducible.

However, I had shut everything down last night in a fit of frustration. Come in this morning, reboot, and suddenly everything works as expected. SQL Server service is ON, SQL Server Agent service is OFF, and the DB is updating.

I must have done something yesterday... maybe left a transaction open or something, that caused it.

Sorry for the wild goose chase, but thanks for the help.

Cheers,

Chris

PS - If either of you have any .NET experience, I have a post at http://p2p.wrox.com/topic.asp?TOPIC_ID=59444 that no one is responding to that I could really use some help with!





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with updating the db using servlet Behl_Neha Java Databases 1 December 24th, 2007 06:08 AM
Updating an Access 200 db Gandalf_the_Grey Classic ASP Basics 3 June 27th, 2006 07:09 AM
Updating DB abbylee26 Classic ASP Databases 15 March 17th, 2004 06:21 AM
Updating an Access DB stu9820 ASP.NET 1.0 and 1.1 Basics 1 September 30th, 2003 01:09 PM
ASP: Textarea Problem when updating DB seala Access ASP 1 June 13th, 2003 12:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.