Viewing 15 posts - 256 through 270 (of 522 total)
Hi!
I think that Join Hints and Table Hints are not Query Hints.
So instead
Which of the folowing are valid types of query hints in SQL...
December 18, 2008 at 1:28 am
Just some additional thought: If you have an index on an identity column and you have a massive amount of inserts, you might face contention during the index maintenance, since...
December 18, 2008 at 1:07 am
RichardB (11/21/2008)
so why can't you then append the file bcp outputs to the existing file...?
RichardB, you cannot pipe your data out with BCP like with SQLCMD.
November 21, 2008 at 5:38 am
Thanks for testing this.
The union all approach is not really thought through.
1. It makes more sense to SUM the payments before joining to the invoices.
This reduces the...
October 7, 2008 at 1:08 pm
Another approach would be the following:
SELECT InvoiceNo, Sum(Outstanding)
FROM (
SELECT InvoiceNo, InvoiceAmount AS Outstanding FROM Invoices
UNION ALL
SELECT InvoiceNo, (-1) * CollectedAmount AS Outstanding FROM Payments
)
GROUP BY InvoiceNo
HAVING SUM(Outstanding) <> 0
Theoretically,...
October 7, 2008 at 1:37 am
Thanks for the feedback, glad I could help.
October 6, 2008 at 4:18 pm
Some more considerations in addition to the others:
1. Try to load the data in the same order as the clustered index / clustered PK to improve load speed with existing...
October 6, 2008 at 4:15 pm
Good Evening,
I still have some concerns with the queries.
The first IF statement checks if any of the rows is already available in your log table.
So if two Wholesalers have submitted...
October 6, 2008 at 3:40 pm
Try removing the last comma
October 6, 2008 at 2:44 pm
The row number does not help if there is no valid column for ordering the rows in each table.
So the question is still open by which column the rows in...
October 6, 2008 at 8:47 am
You need columns for ordering the rows in each of your tables.
Are such columns available?
(Remember that per default the rows are unordered, so any select
against the 3 tables could return...
October 5, 2008 at 7:55 am
But consider that for unicode strings DATALENGTH = 2*LEN;)
September 18, 2008 at 1:45 pm
Hi Carla,
Thanks for sharing this, but this information was already quoted by the author of the QOTD.
(Your link is just the BOL version instead of the MSDN version I assume).
September 17, 2008 at 7:53 am
The format of log records and pages is not constrained to follow the format of data pages.
http://msdn.microsoft.com/en-us/library/ms190925(SQL.90).aspx
One of the system pages stored in both the primary data file and the...
September 17, 2008 at 1:35 am
Viewing 15 posts - 256 through 270 (of 522 total)