Viewing 15 posts - 10,201 through 10,215 (of 49,566 total)
Abu Dina (1/29/2014)
ChrisM@Work (1/28/2014)
Gail's suggestion using DENSE_RANK() is well worth a try when you get time.
Is it?
So what happens if I have two records with the same Organisationname but the...
January 29, 2014 at 4:05 am
I suppose you could write some job that fetched the entire contents of the table on a regular basis and compared with previous versions. Horribly inefficient though.
Someone's got to have...
January 29, 2014 at 3:58 am
As I mentioned above, snapshots are point in time (static) as of the time they are created. They are not and can not be kept in sync with their source...
January 29, 2014 at 3:57 am
Write your queries in such a way that they can seek on the primary key, or add indexes to support the queries. Adding a NC index on exactly the same...
January 29, 2014 at 3:24 am
Trigger on AccountSample, Change data capture, Change tracking or SQL Audit. All require you to have fairly high permissions on the table, database or server. If you don't have them,...
January 29, 2014 at 3:10 am
There are very, very, very few times when it makes sense to put a nonclustered index on the same column as the clustered primary key. Usually it's a waste of...
January 29, 2014 at 3:05 am
You need to either use a subquery or CTE or to put the entire CASE in the where clause. The WHERE is evaluated before the aliases in the select are...
January 29, 2014 at 2:03 am
Ok, so every single time someone inserts one or more rows into InvoiceHeader, you want the one single highest invoice ID to be inserted into Client Invoices, regardless of how...
January 29, 2014 at 1:46 am
If SQL is using too much memory, if there's too little free memory left on the server, reduce max server memory.
January 29, 2014 at 12:55 am
Sparse files are not used for TempDB. They're used only for database snapshots. See Books Online (SQL help file) under database snapshots for details.
January 29, 2014 at 12:54 am
Can you post the stored proc code please? Without seeing that, there's not a chance in hell any of us are going to be able to guess why the trigger...
January 29, 2014 at 12:49 am
What I would suggest - don't nest transactions and do all your transaction handling at one level
January 29, 2014 at 12:48 am
A view is a single select statement. It cannot have any other commands in it.
January 28, 2014 at 10:49 pm
Viewing 15 posts - 10,201 through 10,215 (of 49,566 total)