Viewing 15 posts - 1,186 through 1,200 (of 5,394 total)
1. Create a view for the data you need to work on.
2. Query DISTINCT customer email from the view
3. Loop on the customers
4. Query the view again filtering for current...
May 23, 2014 at 2:20 am
The account that executes the job step must have sufficient privileges to load the provider and connect to the target database.
That account will (hopefully) be different from your user account.
Depending...
May 23, 2014 at 2:14 am
You need the OLEDB provider for DB2 AS/400 that you can download here:
http://www.microsoft.com/en-us/download/details.aspx?id=29100
May 23, 2014 at 1:42 am
Both INSERT INTO and SELECT ... INTO can achieve minimal logging.
INSERT INTO can be minimally logged if the following conditions are met:
* The recovery model of the database is set...
May 23, 2014 at 1:40 am
Look s like the trace file is corrupted.
DId you try to open it with profiler?
May 23, 2014 at 1:22 am
Oracle GoldenGate is an option. Not cheap though.
May 16, 2014 at 2:11 am
Stefan Krzywicki (5/15/2014)
"The old mainframe database I used back in diggity six was blazing fast when using cursors! SQL Server is terrible!"
Hmmm, yeah.
I had the chance to optimize some...
May 15, 2014 at 10:12 am
SQL Server has a very bad implementation of cursors. I have no idea what exactly makes them so slow compared to Oracle cursors.
That said, regardless of the fast or slow...
May 15, 2014 at 8:44 am
bas_vdl (5/15/2014)
So how can i measure the actual query time to get a good comparison?
Pipe the results to a temporary table:
IF OBJECT_ID('tempdb..#discard') IS NOT NULL
DROP TABLE #discard
GO
SELECT (
SELECT TOP(1) COUNTRY_CODE_ALPHA2
FROM...
May 15, 2014 at 6:47 am
bas_vdl (5/15/2014)
it takes between 15 and 20 seconds on my dataset...
Discard your results: transferring and formatting results is part of the execution time and, since you're returning a big...
May 15, 2014 at 4:27 am
ChrisM@Work (5/15/2014)
I wonder if that is functionally equivalent to this:
SELECT
SRC_COUNTRY_CODE_ALPHA2 = x.COUNTRY_CODE_ALPHA2,
e.*
FROM ONS_AIO_1.SECURITY_EVENTS_STG_TEST e
CROSS APPLY (
SELECT
c.COUNTRY_CODE_ALPHA2,
rn = ROW_NUMBER() OVER(ORDER BY c.[START] DESC)
FROM IG_ODS.dbo.IP2COUNTRY_LOOKUP c
WHERE e.SOURCE_ADDRESS_INT BETWEEN c.[START] AND...
May 15, 2014 at 4:25 am
You cannot avoid the scan: you're asking for the whole SECURITY_EVENTS_STG_TEST table (no filter predicates).
As far as the index spool is concerned, I have no idea what it's trying to...
May 15, 2014 at 3:45 am
Koen Verbeeck (5/15/2014)
Anyhow, image is deprecated. Get rid of it 😀
+1000
May 15, 2014 at 2:47 am
Please post:
1) Table creation scripts
2) Index creation scripts
3) Actual execution plan attached as .sqlplan file (not jpg image)
4) Some sample data (possibly same amount of data you have in production,...
May 15, 2014 at 2:45 am
Not out of the box.
You should create an audit for that.
May 15, 2014 at 2:18 am
Viewing 15 posts - 1,186 through 1,200 (of 5,394 total)