Viewing 15 posts - 61 through 75 (of 219 total)
Ifyou want to retrieve the data from table 1 which is not there in table 2 and similarly data which is there in table2 but not in table 1. Then...
July 4, 2012 at 3:10 am
In most all cases (index or not), the simple "Jeff" function held it's own against the CLR (even after removing the "bit" penalty where it finally passed about half the...
July 4, 2012 at 12:46 am
Dwain, Just a small point
Why do you need CTE because this is more of a specifc requirement and if you have 4 districts then it will exceed 6100 unless...
July 3, 2012 at 10:23 pm
Yesterday , I got a chance to read the thread fully. The cube method wont work as mentioned because you have some kind of mapping between districts but cube method...
July 3, 2012 at 9:45 pm
Gullimeel (7/3/2012)
--------------------------------------------------------------------------------
set statistics io,time on
go
select SUM(ca.IsGuid) from myguid mg
cross apply
IsGuid(mg.myguid) ca
go
select SUM(ca.IsGuid) from myguid mg
cross apply
IsGuidGulliMeel(mg.myguid) ca
go
Sorry forgot to add that... I took the time for second run to...
July 3, 2012 at 9:39 pm
How many rows are you testing with? I.e are in myguid? (I couldn't see it mentioned in the previous posts but apologises if I've missed it)
regards
david
I tried with 121317 rows..same...
July 3, 2012 at 9:37 pm
That is possible.Are you going to call the function for each row in the table?Or are you trying to join the output of the function (where the output of function...
July 3, 2012 at 1:21 pm
set statistics io,time on
go
select SUM(ca.IsGuid) from myguid mg
cross apply
IsGuid(mg.myguid) ca
go
select SUM(ca.IsGuid) from myguid mg
cross apply
IsGuidGulliMeel(mg.myguid) ca
go
Sorry forgot to add that... I took the time for second run to make sure...
July 3, 2012 at 12:15 pm
You mentioned that you are getting 35 million rows.It is just returning 60K rows as i mentioned before your table has around 4K pages ( i could see the fragment...
July 3, 2012 at 11:59 am
I used your IVF and added my statement before your like statement as I did in the code snip...
drop FUNCTION dbo.IsGUIDGulliMeel
go
CREATE FUNCTION dbo.IsGUIDGulliMeel
(@pSomeString VARCHAR(100))
RETURNS TABLE WITH SCHEMABINDING AS
RETURN
SELECT...
July 3, 2012 at 11:50 am
22Gb is the size of the table. It takes around 5 minutes to create the PK constraint. But as mentioned by Lynn, you should create it as Online = ON.It...
July 3, 2012 at 11:14 am
Actually, the target table has over 8M rows in it (47M in production) and we're inserting about 1.3M. The select tables are dropped and reloaded very time we import data...
July 3, 2012 at 11:01 am
How would you like this to be tested? As a stored proc, a function, or direct code?
--Jeff Moden
Which one to test? Using the unqiueidentifier or the code snip i...
July 3, 2012 at 9:09 am
I would add following.This will be more helpful if most of my rows are not guid.But if most of them are GUID the I might stick with what...
July 3, 2012 at 2:52 am
Gullimeel: Clearly my contribution was not one of my better efforts.
If you have replied based on below. Then I am sorry it was not about your query.It was query posted...
July 3, 2012 at 2:39 am
Viewing 15 posts - 61 through 75 (of 219 total)