Wrox Programmer Forums
|
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 March 23rd, 2004, 03:16 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default Run query automatically

there is any procedure (method etc) available in sql server /query analyzer that run following update query automatically ?


update arc set imagereference=replace(imagereference,'$(ROOTDIR)' ,'\\Auhtripdc\As_Built\tiffiles') where imagereference like '%$(ROOTDIR)%'


update the records daily automatic ?

regards.

Mateen



 
Old March 23rd, 2004, 07:47 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Make sure SQL Agent is running and schedule a new job to run daily. Maybe easier to put the code into a stored procedure.

--

Joe
 
Old March 25th, 2004, 12:11 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks.

My SQL Agent not running, it give message that performing this
service operation on SQLServerserver Agent.

I am using client side sql server, in my PC (control panel, services) there is no SQL Server Agent service available.

I need to start SQL Server Agent service on the Server side ?
can I start this serivce from the client side ?

regards.

Mateen





Quote:
quote:Originally posted by joefawcett
 Make sure SQL Agent is running and schedule a new job to run daily. Maybe easier to put the code into a stored procedure.

--

Joe
 
Old March 25th, 2004, 05:08 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

What operating system and which version of SQL Servre?

--

Joe
 
Old March 27th, 2004, 12:01 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am using Windows XP and SQL SERVER 2000 client side.
in server side SQL Server 2000 and operation system
windows 2000.


regards.


Quote:
quote:Originally posted by joefawcett
 What operating system and which version of SQL Servre?

--

Joe
 
Old March 27th, 2004, 05:50 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Go into the enterprise manager, navigate to the server in question and start up the service (from Magement Section, I think). Look in books on-line that should have been installed when you installed the manager. Even if you don't have the manager you can stop/start with the app that normally sits in the system tray.

--

Joe
 
Old March 28th, 2004, 12:17 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks.

you can give me online book site address.
it miss by me.

Mateen



Quote:
quote:Originally posted by joefawcett
 Go into the enterprise manager, navigate to the server in question and start up the service (from Magement Section, I think). Look in books on-line that should have been installed when you installed the manager. Even if you don't have the manager you can stop/start with the app that normally sits in the system tray.

--

Joe
 
Old March 28th, 2004, 04:12 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

The first result from Google for "SQL Server Books Online" brought this linK:

http://www.microsoft.com/sql/techinf...2000/books.asp

Was that too difficult?

--

Joe
 
Old March 28th, 2004, 05:44 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks.

Quote:
quote:Originally posted by joefawcett
 The first result from Google for "SQL Server Books Online" brought this linK:

http://www.microsoft.com/sql/techinf...2000/books.asp

Was that too difficult?

--

Joe
 
Old March 28th, 2004, 03:35 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Some times SQL Server Agent will not start with the default installation. Make sure that you download the latest service pack for SQL Server ant the latest MDAC release.

I think you can use SQLDMO to start/stop the Agent, but preferably use enterprise manager. Do not allow your users to start or stop the agent.



Sal





Similar Threads
Thread Thread Starter Forum Replies Last Post
run a program automatically hastikeyvan ASP.NET 2.0 Professional 1 December 18th, 2009 03:34 PM
making application run automatically liamfitz Pro VB 6 4 January 23rd, 2008 05:27 PM
run automatically...help plz lom2pac Access 2 August 7th, 2006 10:42 AM
Set query up to automatically run in SQL server ALLA SQL Server 2000 3 October 21st, 2004 04:24 PM
Run vb application automatically PbsiGuru General .NET 3 March 17th, 2004 04:18 AM





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