count()

Technical Article

replication conflict monitoring

  • Topic

So, I have an interesting problem that I'm trying to work out.  In my merge replication environment, I get the occasional replication conflict(s) in some of my databases.  I'm not exactly looking for a solution to solving those, but what I am looking for is a better notification scheme for when they do occur.I don't […]

You rated this post out of 5. Change rating

2005-03-10

2 reads

Technical Article

RE: Performance? Efficient code??

  • Reply

In answer to Antares686:I've tried the code, but instead of the 1578 rows that I was hoping for I received 4755 in the result set.  This code basically gave me a union of the two sets minus the 9 duplicate entries that I know we have.  I'm still trying to figure out your code to […]

You rated this post out of 5. Change rating

2005-03-10

Technical Article

RE: Designing Cross Database Queries

  • Reply

Question:  Referential Integrity?When you have these cross-database (and linked servers, etc), how do you maintain referential integrity?eg, bbdpres:We have an environment for reporting here that needs to use dynamic aggregations on products. The product aggregations are on what we call market definitions and product groups (1-m-m; market def-prod grp-prod). Users have the ability to add […]

You rated this post out of 5. Change rating

2005-03-10

1 reads

Technical Article

RE: How to get available memory using SQL

  • Reply

It's not a table : run this in the master table Select objectproperty(object_id('sysperfinfo'), 'TableIsFake') It will return 1. This means than when you query that table, Sql server meterializes it so that the query can execute, but this information is never actually kept on the hd like a real table. checks BOLS : objectproperty::TableIsFake

You rated this post out of 5. Change rating

2005-03-02

Technical Article

RE: Incorrect rowcount when viewing table properties

  • Reply

A rowcount can be done in two ways:Most accurate and slowest: SELECT COUNT(*) FROM MyTABLELess accurate but instant: SELECT ROWCNT FROM Sysindexes WHERE ID = ObjectID('MyTable') AND Name = 'MyTable'That rowcount is used by EM and is kept uptodate with the 'Auto Update Stats' setting for the database. But sometimes it's out of sync. So you need to […]

You rated this post out of 5. Change rating

2004-09-10

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