Click here to Skip to main content
15,887,676 members
Home / Discussions / Database
   

Database

 
AnswerRe: Do we need to promote SP's anymore? PinPopular
Mycroft Holmes24-Sep-11 23:39
professionalMycroft Holmes24-Sep-11 23:39 
GeneralRe: Do we need to promote SP's anymore? Pin
Mehdi Gholam25-Sep-11 0:17
Mehdi Gholam25-Sep-11 0:17 
GeneralRe: Do we need to promote SP's anymore? Pin
Mycroft Holmes25-Sep-11 2:12
professionalMycroft Holmes25-Sep-11 2:12 
GeneralRe: Do we need to promote SP's anymore? Pin
Mehdi Gholam25-Sep-11 9:10
Mehdi Gholam25-Sep-11 9:10 
GeneralRe: Do we need to promote SP's anymore? Pin
Mycroft Holmes25-Sep-11 12:44
professionalMycroft Holmes25-Sep-11 12:44 
GeneralRe: Do we need to promote SP's anymore? Pin
PIEBALDconsult25-Sep-11 6:01
mvePIEBALDconsult25-Sep-11 6:01 
GeneralRe: Do we need to promote SP's anymore? Pin
PIEBALDconsult25-Sep-11 5:57
mvePIEBALDconsult25-Sep-11 5:57 
GeneralRe: Do we need to promote SP's anymore? Pin
Mycroft Holmes25-Sep-11 12:43
professionalMycroft Holmes25-Sep-11 12:43 
PIEBALDconsult wrote:
I not allow direct string access to the database

Read Table/Views instead of database - my error.
PIEBALDconsult wrote:
either way, I try them out in SSMS.


Ok so you write the TSQL in SSMS and run it in the BL and yet you don't want to put the tested code into a proc but move it into the BL.

I actually agree with you when it come to the CRUD procs (I use a code generator and have not written an insert procedure for many years), even some simple queries could have a life in either format. A complex query with multiple joins, using temp or var tables and with interim results just will not go into code, it belongs in a proc.

As to the 100 lines crap you put up Dead | X| bleh I write rather tight code and 100 lines on a complex query is not unusual, just before it is turned into a proc I run Red-Gates formatter over the code, it blows it out as above but makes it eminently more readable (and therefore supportable).
Never underestimate the power of human stupidity
RAH

AnswerRe: Do we need to promote SP's anymore? Pin
PIEBALDconsult25-Sep-11 5:31
mvePIEBALDconsult25-Sep-11 5:31 
AnswerRe: Do we need to promote SP's anymore? Pin
Jörgen Andersson25-Sep-11 10:12
professionalJörgen Andersson25-Sep-11 10:12 
GeneralRe: Do we need to promote SP's anymore? Pin
_Maxxx_29-Sep-11 0:29
professional_Maxxx_29-Sep-11 0:29 
GeneralRe: Do we need to promote SP's anymore? Pin
Jörgen Andersson29-Sep-11 8:16
professionalJörgen Andersson29-Sep-11 8:16 
AnswerRe: Do we need to promote SP's anymore? Pin
Eddy Vluggen25-Sep-11 10:39
professionalEddy Vluggen25-Sep-11 10:39 
GeneralRe: Do we need to promote SP's anymore? Pin
PIEBALDconsult25-Sep-11 14:20
mvePIEBALDconsult25-Sep-11 14:20 
GeneralRe: Do we need to promote SP's anymore? Pin
Mycroft Holmes25-Sep-11 16:07
professionalMycroft Holmes25-Sep-11 16:07 
GeneralRe: Do we need to promote SP's anymore? Pin
Eddy Vluggen26-Sep-11 12:19
professionalEddy Vluggen26-Sep-11 12:19 
QuestionMySQL 5.2.34 CE Pin
Emejulu JVT24-Sep-11 8:34
Emejulu JVT24-Sep-11 8:34 
AnswerRe: MySQL 5.2.34 CE Pin
André Kraak24-Sep-11 8:55
André Kraak24-Sep-11 8:55 
Questiongenerating IDs with IDENTITY() in sql server 2005 Pin
Danzy8321-Sep-11 11:59
Danzy8321-Sep-11 11:59 
AnswerRe: generating IDs with IDENTITY() in sql server 2005 Pin
PIEBALDconsult21-Sep-11 14:25
mvePIEBALDconsult21-Sep-11 14:25 
AnswerRe: generating IDs with IDENTITY() in sql server 2005 PinPopular
Mycroft Holmes21-Sep-11 16:09
professionalMycroft Holmes21-Sep-11 16:09 
GeneralRe: generating IDs with IDENTITY() in sql server 2005 Pin
David Skelly21-Sep-11 22:37
David Skelly21-Sep-11 22:37 
JokeRe: generating IDs with IDENTITY() in sql server 2005 Pin
Mycroft Holmes21-Sep-11 23:10
professionalMycroft Holmes21-Sep-11 23:10 
GeneralRe: generating IDs with IDENTITY() in sql server 2005 Pin
David Skelly22-Sep-11 1:38
David Skelly22-Sep-11 1:38 
GeneralRe: generating IDs with IDENTITY() in sql server 2005 Pin
PIEBALDconsult22-Sep-11 3:19
mvePIEBALDconsult22-Sep-11 3:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.