baselines

Technical Article

how to prevent automatic clearing of job histories?

  • Topic

Hi again,one other problem. I have two SQL Server 2000 instances on an active/active MS Cluster. On one instance jobhistories seem to be cleared automatically every 2 or 3 hours and I am not able to find out where or how to stop this. The number of job history entries seems to be limited to 50 entries as well on […]

You rated this post out of 5. Change rating

2004-02-11

2 reads

Technical Article

RE: Can you write out multiple views automatically?

  • Reply

It is the drop statement not object_id that is the problem. You will have to use dynamic sql likeSET @SQL='If Object_ID(''NBP'+@yearcount+''') is not NULL Drop View NBP'+@yearcount EXEC(@SQL) SET @SQL='CREATE VIEW NBP'+@yearcount+' AS SELECT  * FROM f_customer'+@yearcount EXEC(@SQL)or alternatively use ALTER likeSET @SQL='CREATE ' If Object_ID('NBP'+@yearcount) is not NULL SET @SQL='ALTER ' SET @SQL = […]

You rated this post out of 5. Change rating

2004-01-26

2 reads

Technical Article

RE: The DBA Code of Ethics

  • Reply

One that I would add: The DBA has a duty to protect the data that we are guardians of. We have access to sensitive information, about our company's business, our clients, and even our coworkers. We need to protect it both from being accessed by unauthorized users, and use the utmost discretion in how *we* […]

You rated this post out of 5. Change rating

2004-01-25

1 reads

Technical Article

RE: How to pass parameters into inline UDF from a sub query

  • Reply

In a prior post I once wrote:@ http://qa.sqlservercentral.com/forums/shwmessage.aspx?forumid=23&messageid=19016#bm90510I was wanting to do the same thing some time ago... I realized that Table Function parameters can NOT be values from a "Joined" table. I think is is because the Table Function is meant to return a complete recordset for every call, and a "Join" wants one […]

You rated this post out of 5. Change rating

2004-01-20

1 reads

Technical Article

RE: Stored Procedure Question

  • Reply

Thanks for the tip. I'm getting close.I changed it to this and it was still returning Null even thought the record is in there. What I did was remove the ELSE statment and everything after and it worked. What am I missing that it still executes the second part of the statment?Thanks.CREATE PROCEDURE dbo.procAddContactAddress ( @Contact int, […]

You rated this post out of 5. Change rating

2004-01-19

Technical Article

RE: SQL Date Problem

  • Reply

That's exactly backwards advice.  Putting the column values in a function makes the predicate non-sargable.  Even just converting the values (as your solution also does, implicitly) will prevent the use of any index on the column.

You rated this post out of 5. Change rating

2004-01-12

Blogs

Small Data SF 2024

By

I can’t remember how I heard about Small Data SF 2024, but it caught...

A New Word: Moledro

By

moledro – n. a feeling of resonant connection with an author or artist you’ll...

Snowflake + Azure blob

By

Let’s go back to data platforms today and I want to talk about a...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers