August 18, 2011 at 1:00 pm
Roy Ernest (8/18/2011)
I would love everyones opinion on this topic please.
Posted. Overall, I am quite pleased with TVPs
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 18, 2011 at 1:10 pm
Roy Ernest (8/18/2011)
I would love everyones opinion on this topic please.
They've come in really handy a number of times for me.
--------------------------------------
When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
--------------------------------------
Itβs unpleasantly like being drunk.
Whatβs so unpleasant about being drunk?
You ask a glass of water. -- Douglas Adams
August 18, 2011 at 2:00 pm
Roy Ernest (8/18/2011)
I would love everyones opinion on this topic please.
Incredibly useful. Big improvements possible in performance, maintainability, and speed+ease of development.
Just the uses with multi-select option boxes and related objects in applications, that alone makes them worthwhile.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
August 18, 2011 at 2:31 pm
FYI - we need only 866 posts to reach 30K
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 18, 2011 at 2:55 pm
Thx Stephan, Gus and Jason for the input.
Thread needs only 865 posts to hit 30K and I need 80 posts to hit 3K. Who will reach first, the thread or me? π
I say the thread. π
-Roy
August 18, 2011 at 2:59 pm
Roy Ernest (8/18/2011)
Thx Stephan, Gus and Jason for the input.Thread needs only 865 posts to hit 30K and I need 80 posts to hit 3K. Who will reach first, the thread or me? π
I say the thread. π
My money is on the thread.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 18, 2011 at 3:09 pm
Ninja's_RGR'us (8/18/2011)
Please post your results with the version(s) you tested on.
Added my contribution.
August 18, 2011 at 3:31 pm
Roy Ernest (8/18/2011)
I would love everyones opinion on this topic please.
I see it as the first step needed for ORM and RDBMS to start liking each other again.
Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.
For better assistance in answering your questions[/url] | Forum Netiquette
For index/tuning help, follow these directions.[/url] |Tally Tables[/url]
Twitter: @AnyWayDBA
August 18, 2011 at 3:32 pm
SQLRNNR (8/18/2011)
Roy Ernest (8/18/2011)
Thx Stephan, Gus and Jason for the input.Thread needs only 865 posts to hit 30K and I need 80 posts to hit 3K. Who will reach first, the thread or me? π
I say the thread. π
My money is on the thread.
I'll put two bits and my $.02 on the thread. I'll even toss in the penny I got for my thoughts, relatively sure the person needed a refund anyway.
Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.
For better assistance in answering your questions[/url] | Forum Netiquette
For index/tuning help, follow these directions.[/url] |Tally Tables[/url]
Twitter: @AnyWayDBA
August 18, 2011 at 5:06 pm
Roy Ernest (8/18/2011)
I would love everyones opinion on this topic please.
Never used them. I think that they are a good idea, but I think that there is a need for a more generic implementation. I'm not sure how they'd work, but...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
August 18, 2011 at 6:37 pm
Roy Ernest (8/18/2011)
I would love everyones opinion on this topic please.
I've never used them. I've always used something else because they didn't use to be available. Not sure I'd actually use them, either, beccause of the following restriction...
Table-valued parameters must be passed as input READONLY parameters to Transact-SQL routines. You cannot perform DML operations such as UPDATE, DELETE, or INSERT on a table-valued parameter in the body of a routine.
... and because if the data is already in SQL Server somewhere, I don't need to pass a TVP for that information to a stored procedure.
Admittedly, it's a bit of a personal predjudice but I also don't care for the idea of having to build a user datatype just to use a TVP. It's yet another thing to change if a slight modification to the data needs to be made.
Yeah... I know... I've gotta open up my mind and go play with the darned things. π Heh... THEN I'll be able to bad mouth them! :hehe:
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2011 at 6:39 pm
Evil Kraig F (8/18/2011)
Roy Ernest (8/18/2011)
I would love everyones opinion on this topic please.I see it as the first step needed for ORM and RDBMS to start liking each other again.
BWAAAA-HAAAAA!!!!! Now, all we need is a first step for me to like ORM's. π
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2011 at 6:44 pm
Jeff Moden (8/18/2011)
Roy Ernest (8/18/2011)
I would love everyones opinion on this topic please.I've never used them. I've always used something else because they didn't use to be available. Not sure I'd actually use them, either, beccause of the following restriction...
Table-valued parameters must be passed as input READONLY parameters to Transact-SQL routines. You cannot perform DML operations such as UPDATE, DELETE, or INSERT on a table-valued parameter in the body of a routine.
... and because if the data is already in SQL Server somewhere, I don't need to pass a TVP for that information to a stored procedure.
Admittedly, it's a bit of a personal predjudice but I also don't care for the idea of having to build a user datatype just to use a TVP. It's yet another thing to change if a slight modification to the data needs to be made.
Yeah... I know... I've gotta open up my mind and go play with the darned things. π Heh... THEN I'll be able to bad mouth them! :hehe:
For us, we were using them to hold 100s and 1000s of records coming in from a webapp of data that was not yet in the database. The old method was to send an xml array to a proc and have SQL do the bulk of the work there. Then we tried delimited strings. Then we went to the TVP idea and saw a marked improvement (over xml we went from 15 min down to 50ms to load 800 records). It was significant for us.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 18, 2011 at 7:32 pm
SQLRNNR (8/18/2011)
Jeff Moden (8/18/2011)
Roy Ernest (8/18/2011)
I would love everyones opinion on this topic please.I've never used them. I've always used something else because they didn't use to be available. Not sure I'd actually use them, either, beccause of the following restriction...
Table-valued parameters must be passed as input READONLY parameters to Transact-SQL routines. You cannot perform DML operations such as UPDATE, DELETE, or INSERT on a table-valued parameter in the body of a routine.
... and because if the data is already in SQL Server somewhere, I don't need to pass a TVP for that information to a stored procedure.
Admittedly, it's a bit of a personal predjudice but I also don't care for the idea of having to build a user datatype just to use a TVP. It's yet another thing to change if a slight modification to the data needs to be made.
Yeah... I know... I've gotta open up my mind and go play with the darned things. π Heh... THEN I'll be able to bad mouth them! :hehe:
For us, we were using them to hold 100s and 1000s of records coming in from a webapp of data that was not yet in the database. The old method was to send an xml array to a proc and have SQL do the bulk of the work there. Then we tried delimited strings. Then we went to the TVP idea and saw a marked improvement (over xml we went from 15 min down to 50ms to load 800 records). It was significant for us.
I knew the XML method was going to be an absolute "snot slug" for performance but that 50ms to "load 800 records" using a TPV has definitely peaked my interest. Thanks, Jason.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2011 at 7:34 pm
Almost forgot to ask... how many "fields" did you have per "record" and what was the average length of each record in bytes for the delimited string method you were using? I'm, of course, asking so I can set up a test. Thanks again, Jason.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 15 posts - 29,131 through 29,145 (of 66,749 total)
You must be logged in to reply to this topic. Login to reply