Viewing 15 posts - 196 through 210 (of 583 total)
Here is an example that works. This is not a cursor, it is a loop with an update statement for each possible ActionID:
@MaxActionId int
January 15, 2006 at 11:29 am
Steve,
I'm glad you liked the article. Sure, I could write an article on this. However, I am very bad in that I am pulling data from system tables. Maybe I can...
January 12, 2006 at 9:57 am
Maybe you are trying to find Query Analyzer? You can find it in the SQL Server group in Programs or in Enterprise Manager by looking in the Tools menu.
In Query...
January 11, 2006 at 7:01 pm
Hmmm, does that work across servers? I would think you would have to create a linked server to accomplish that.
January 11, 2006 at 7:53 am
There is a stored proc in MSDB called sp_Help_MaintenancePlan, but it doesn't look real helpful. The query below gives information about the maintenance plans, but not the schedules:
SELECT sj.job_id,smp.plan_name, substring(sj.command,80,100)as...
January 10, 2006 at 9:35 pm
Instead of the Select '''', try using Print '''' . It worked for me!
January 10, 2006 at 8:51 pm
You probably have multiple rows in table1 that match a given row in table2.
January 10, 2006 at 10:39 am
Take a look at the COMMAND object found in ADO and ADO.NET.
January 9, 2006 at 8:50 pm
A database can be set to one of three recovery models: Full, Bulk-Logged and Simple. The system databases are set to Simple. When a database recovery model is set to...
January 8, 2006 at 4:31 pm
Here's an article that may give the answer you are looking for: http://www.microsoft.com/technet/prodtechnol/sql/2000/reskit/part10/c3761.mspx
It describes using INSTEAD OF triggers to allow updates to multiple tables through a view.
January 8, 2006 at 4:13 pm
Do you mean parameters? If so, you could do something like this:
--...
January 8, 2006 at 11:43 am
SQL 2000 BOL says that you can only create INSTEAD OF triggers on views and then only if the view was created without the WITH CHECK option. INSTEAD OF triggers...
January 8, 2006 at 11:13 am
I was really aggravated when hired on as a VB consultant and all in-house programs and utilities had hard-coded IP addresses and file paths in the VB executables. I remember saying...
January 6, 2006 at 8:02 am
I would filter on the database ID instead. You can get that from sp_helpdb. I haven't ever gotten profiler to filter properly on the database name.
January 4, 2006 at 9:26 pm
While SQL Server Agent is stopped, delete the file. When you start up SQL Agent again, it will create a new blank file. By default it should be called SQLAGENT.OUT...
January 4, 2006 at 9:21 pm
Viewing 15 posts - 196 through 210 (of 583 total)