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

Database

 
Questionrule of DataAdapter Pin
messages7-May-13 21:10
messages7-May-13 21:10 
AnswerRe: rule of DataAdapter Pin
PIEBALDconsult8-May-13 4:59
mvePIEBALDconsult8-May-13 4:59 
GeneralRe: rule of DataAdapter Pin
messages8-May-13 8:47
messages8-May-13 8:47 
GeneralRe: rule of DataAdapter Pin
PIEBALDconsult9-May-13 4:35
mvePIEBALDconsult9-May-13 4:35 
GeneralRe: rule of DataAdapter Pin
messages9-May-13 5:16
messages9-May-13 5:16 
Questiondifference between with and temp table in my two query Pin
mhd.sbt7-May-13 9:02
mhd.sbt7-May-13 9:02 
AnswerRe: difference between with and temp table in my two query Pin
Eddy Vluggen7-May-13 9:40
professionalEddy Vluggen7-May-13 9:40 
AnswerRe: difference between with and temp table in my two query Pin
Jörgen Andersson8-May-13 11:52
professionalJörgen Andersson8-May-13 11:52 
On SQLServer you can think of the CTE as an inline view, while the temporary table will be materialized and can be indexed.

mehdi.sabet wrote:
which of this two query is better than another (in performance aspect)

In this specific case probably the CTE, because the select is straight forward and directly streamed to output.
While the temp table needs to be materialized, if even just in memory, and selected from memory to the output.

If the CTE/temptable would be used in more than one place and/or the select could benefit from indexing the temptable, the result could be quite different.

On Oracle it's a bit different though. There a CTE can be materialized.
Be excellent to each other. And... PARTY ON, DUDES!
Abraham Lincoln

AnswerRe: difference between with and temp table in my two query Pin
Fabricio Dos Santos Antunes10-May-13 14:55
Fabricio Dos Santos Antunes10-May-13 14:55 
QuestionExport Image from SQL to png Format Pin
mrfalk7-May-13 8:09
mrfalk7-May-13 8:09 
AnswerRe: Export Image from SQL to png Format Pin
Eddy Vluggen7-May-13 9:52
professionalEddy Vluggen7-May-13 9:52 
QuestionBulk insert not recognizing end of file Pin
searching for solution.....5-May-13 23:18
searching for solution.....5-May-13 23:18 
AnswerRe: Bulk insert not recognizing end of file Pin
Eddy Vluggen6-May-13 7:56
professionalEddy Vluggen6-May-13 7:56 
QuestionHow to get data from Gridview (gridview(checkbox)) using asp.net and c#...... Pin
nukalarajesh1-May-13 21:19
nukalarajesh1-May-13 21:19 
AnswerRe: How to get data from Gridview (gridview(checkbox)) using asp.net and c#...... Pin
Richard MacCutchan1-May-13 21:27
mveRichard MacCutchan1-May-13 21:27 
AnswerRe: How to get data from Gridview (gridview(checkbox)) using asp.net and c#...... Pin
AANIL DHAKAD8-May-13 3:17
AANIL DHAKAD8-May-13 3:17 
Questionhow to upload a iamge file on web server in mvc4 asp.net c# Pin
nukalarajesh1-May-13 21:06
nukalarajesh1-May-13 21:06 
QuestionSQL Server null date 01/01/1900 possible issue - a question Pin
GuyThiebaut1-May-13 5:51
professionalGuyThiebaut1-May-13 5:51 
AnswerRe: SQL Server null date 01/01/1900 possible issue - a question Pin
Richard Deeming1-May-13 6:04
mveRichard Deeming1-May-13 6:04 
GeneralRe: SQL Server null date 01/01/1900 possible issue - a question Pin
Aner Bautista3-May-13 8:25
Aner Bautista3-May-13 8:25 
GeneralRe: SQL Server null date 01/01/1900 possible issue - a question Pin
jschell3-May-13 11:24
jschell3-May-13 11:24 
AnswerRe: SQL Server null date 01/01/1900 possible issue - a question Pin
Eddy Vluggen1-May-13 6:37
professionalEddy Vluggen1-May-13 6:37 
AnswerRe: SQL Server null date 01/01/1900 possible issue - a question Pin
jschell1-May-13 8:28
jschell1-May-13 8:28 
GeneralRe: SQL Server null date 01/01/1900 possible issue - a question Pin
Richard Deeming1-May-13 8:43
mveRichard Deeming1-May-13 8:43 
GeneralRe: SQL Server null date 01/01/1900 possible issue - a question Pin
GuyThiebaut1-May-13 9:19
professionalGuyThiebaut1-May-13 9: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.