Click here to Skip to main content
15,888,527 members
Home / Discussions / Database
   

Database

 
QuestionMultiple Database Connections Pin
devi g25-Feb-09 16:23
devi g25-Feb-09 16:23 
QuestionWhat is the best way to place database on client 's machine? Pin
r_mohd25-Feb-09 15:48
r_mohd25-Feb-09 15:48 
AnswerRe: What is the best way to place database on client 's machine? Pin
PIEBALDconsult25-Feb-09 16:06
mvePIEBALDconsult25-Feb-09 16:06 
GeneralRe: What is the best way to place database on client 's machine? Pin
Ashfield26-Feb-09 1:20
Ashfield26-Feb-09 1:20 
AnswerRe: What is the best way to place database on client 's machine? Pin
N a v a n e e t h25-Feb-09 17:16
N a v a n e e t h25-Feb-09 17:16 
QuestionSome Oracle Question Pin
E_Gold25-Feb-09 9:53
E_Gold25-Feb-09 9:53 
AnswerRe: Some Oracle Question Pin
N a v a n e e t h25-Feb-09 17:20
N a v a n e e t h25-Feb-09 17:20 
QuestionHow to impove my query to execute more quickly Pin
dasha_pl25-Feb-09 3:37
dasha_pl25-Feb-09 3:37 
I have the perfomance problem with my query, it executes every time I click on grid paging.
Here is my ms sql query(its output of Nhibernate query):
WITH query AS (SELECT TOP 235800 ROW_NUMBER() OVER (order by  
cast(upper((employee0_.lastname+' '+employee0_.firstname))as nvarchar)ASC , 
cast(upper((employee0_.lastname+', '+employee0_.firstname))as nvarchar)ASC) as __hibernate_row_nr__,

 employee0_.primkey as x0_0_, employee0_.firstname as x1_0_, employee0_.lastname as x2_0_,
 department1_.name as x3_0_, jobtitle2_.job_title as x4_0_, workarea3_.name as x5_0_, 
position4_.position_ as x6_0_, employee0_.active as x7_0_ from otis.cs_employee_ employee0_ 
left outer join otis.cs_department department1_ on employee0_.dept_key=department1_.primkey 
left outer join otis.cs_jobtitle jobtitle2_ on employee0_.job_key=jobtitle2_.primkey 
left outer join otis.cs_workarea workarea3_ on employee0_.work_key=workarea3_.primkey 
left outer join otis.cs_position position4_ on employee0_.pos_key=position4_.primkey 
where (employee0_.site_code!='00' ) 
order by  cast(upper((employee0_.lastname+' '+employee0_.firstname))as nvarchar)ASC , 
cast(upper((employee0_.lastname+', '+employee0_.firstname))as nvarchar)ASC) 
SELECT * FROM query WHERE __hibernate_row_nr__ > 235780 ORDER BY __hibernate_row_nr__


SELECT * FROM query WHERE __hibernate_row_nr__ > 235780 ORDER BY __hibernate_row_nr__



I have many rows in this table( more than 200 000), it executes very slow...
Would it help me if I create a stored procedure for this...or is there any other way?
GeneralRe: How to impove my query to execute more quickly Pin
Luc Pattyn25-Feb-09 3:47
sitebuilderLuc Pattyn25-Feb-09 3:47 
GeneralRe: How to impove my query to execute more quickly Pin
dasha_pl25-Feb-09 4:02
dasha_pl25-Feb-09 4:02 
AnswerRe: How to impove my query to execute more quickly Pin
Wendelius25-Feb-09 4:21
mentorWendelius25-Feb-09 4:21 
QuestionSelecting a default always and return the other results after to it Pin
gottimukkala25-Feb-09 2:38
gottimukkala25-Feb-09 2:38 
AnswerRe: Selecting a default always and return the other results after to it Pin
Rob Philpott25-Feb-09 2:53
Rob Philpott25-Feb-09 2:53 
AnswerRe: Selecting a default always and return the other results after to it Pin
Wendelius25-Feb-09 4:26
mentorWendelius25-Feb-09 4:26 
AnswerRe: Selecting a default always and return the other results after to it Pin
WoutL25-Feb-09 9:26
WoutL25-Feb-09 9:26 
QuestionBypass Print Dialog When Using Reports through ReportViewer Pin
Seren Singh25-Feb-09 1:53
Seren Singh25-Feb-09 1:53 
AnswerRe: Bypass Print Dialog When Using Reports through ReportViewer Pin
Wendelius25-Feb-09 5:15
mentorWendelius25-Feb-09 5:15 
GeneralRe: Bypass Print Dialog When Using Reports through ReportViewer Pin
Seren Singh25-Feb-09 5:25
Seren Singh25-Feb-09 5:25 
GeneralRe: Bypass Print Dialog When Using Reports through ReportViewer Pin
Wendelius25-Feb-09 6:05
mentorWendelius25-Feb-09 6:05 
GeneralRe: Bypass Print Dialog When Using Reports through ReportViewer Pin
Seren Singh25-Feb-09 19:21
Seren Singh25-Feb-09 19:21 
GeneralRe: Bypass Print Dialog When Using Reports through ReportViewer Pin
Wendelius25-Feb-09 20:38
mentorWendelius25-Feb-09 20:38 
QuestionMDB file? Pin
Karthick_gc25-Feb-09 1:30
Karthick_gc25-Feb-09 1:30 
AnswerRe: MDB file? Pin
J4amieC25-Feb-09 1:58
J4amieC25-Feb-09 1:58 
AnswerRe: MDB file? Pin
Wendelius25-Feb-09 4:34
mentorWendelius25-Feb-09 4:34 
Questionhow to get last row of the database table.or only latest row entered in table Pin
anujbanka178425-Feb-09 1:28
anujbanka178425-Feb-09 1:28 

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.