Viewing 15 posts - 4,096 through 4,110 (of 5,394 total)
This should do the trick:
INSERT INTO Table2
SELECT DISTINCT Places
FROM Table1 AS A
WHERE NOT EXISTS (
SELECT 1
FROM Table2 AS B
...
June 24, 2010 at 3:01 am
Probably cardinality changes in your joins to other tables. I can't tell from here.
Try using DISTINCT in your query (it goes immediately after SELECT).
I would suggest you to check the...
June 24, 2010 at 1:52 am
Looks like your view definition comes from an Oracle port, isn't it?
This should do the trick for you:
CREATE VIEW open_items_summary
AS SELECT vendor_name,
...
June 24, 2010 at 1:42 am
June 24, 2010 at 1:35 am
No, it can't be done.
Depending on the aggregate you're using, you could rewrite the query to achieve the same thing in a different way.
Problem is I don't see any aggregate...
June 24, 2010 at 1:33 am
at1155 (6/24/2010)
PK is Index_code, Code1, Code2
I don't see this in your sample data. Are you sure?
June 24, 2010 at 1:29 am
As the message says, INSERT - EXEC cannot be nested.
This probably means that sp_replmonitorhelpsubscription internally uses INSERT - EXEC.
Some workaround could be using OPENROWSET to wrap the procedure:
insert into #replmonitor...
June 24, 2010 at 1:04 am
That's called "optimistic locking".
ADO and other DB libraries implement this technique natively.
June 23, 2010 at 10:28 am
I agree with you, Scott.
This causes some problems when data stored in the table is of type datetime and you just want to filter for the date part.You would generally...
June 23, 2010 at 8:12 am
Nice editorial, Steve.
I experience the same every day here at work. Looks like people are not paid to do their job, but to push some buttons on the screen.
When something...
June 23, 2010 at 6:20 am
Simply foolish choice.
Anyway, you could pre-process the files splitting them into three files depending on the A/B/C flag.
June 23, 2010 at 3:02 am
Duplicate post.
Replies here please.
June 23, 2010 at 2:58 am
It could definitely be partially used pages.
Try rebuilding / reorganizing the clustered index and all nonclustered indexes.
June 23, 2010 at 2:55 am
Viewing 15 posts - 4,096 through 4,110 (of 5,394 total)