Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Stored Procedure Vs Bteq - response (6) by Adeel Chaudhry

$
0
0

Few coming in my mind would be ....
 
BTEQ script:
Simplistic conditional logic
No exception handling
Runs on CLI connection
No concept of parameters
 
SP:
Complex conditional logic
Exception handlers
Pre-compiled
Parameters supported
Physical object in Database
Requires respective rights (depends on usage i.e. SQL used in SP)
 
If you have a repeated set of same SQL to be ran over and over again .... BTEQ is usually preffered due to ease of use and maintainability and also because BTEQ has been there since the early days of Teradata.
 
Whereas .... SP is for more dynamically variant scenarios where you wish to retain control based on the input. It is precompiled and no SQL parsing is required.
 
Both have alot of similar traits to offer .... but it comes to the comfort of the solution provider as well for selecting among the both.
 
HTH!


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>