Click here to Skip to main content
15,890,897 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL 2005 Problem : Insert exec statement cannot be nested Pin
Mycroft Holmes12-Aug-09 16:58
professionalMycroft Holmes12-Aug-09 16:58 
GeneralRe: SQL 2005 Problem : Insert exec statement cannot be nested Pin
Luc Pattyn12-Aug-09 17:01
sitebuilderLuc Pattyn12-Aug-09 17:01 
GeneralRe: SQL 2005 Problem : Insert exec statement cannot be nested Pin
_Damian S_12-Aug-09 17:25
professional_Damian S_12-Aug-09 17:25 
JokeRe: SQL 2005 Problem : Insert exec statement cannot be nested Pin
dan!sh 12-Aug-09 18:46
professional dan!sh 12-Aug-09 18:46 
QuestionSQL 2000 Query Pin
CodingYoshi11-Aug-09 11:26
CodingYoshi11-Aug-09 11:26 
AnswerRe: SQL 2000 Query Pin
Syed Mehroz Alam11-Aug-09 21:36
Syed Mehroz Alam11-Aug-09 21:36 
GeneralRe: SQL 2000 Query Pin
CodingYoshi12-Aug-09 3:00
CodingYoshi12-Aug-09 3:00 
QuestionOf databases and the sacrifice of live chickens Pin
gantww11-Aug-09 9:31
gantww11-Aug-09 9:31 
I have a fairly simple stored proc in one of my databases that does a couple of simple inner joins and returns a result set. The proc accepts a user id and returns a set of gl accounts to which that user can apply invoices and such. When I pass in an admin user id, all the records come back instantly, no problem. When I use a user id with less elevated permissions, the query takes a minute and a half or more to run.

Interestingly enough, if I take the SQL in the proc, and just run it outside the proc (setting the id of course), it returns instantly with either user id.

It didn't even make a difference when I set the proc to run WITH RECOMPILE.

Can someone give me a clue of what is going on here? I'm lost.
AnswerRe: Of databases and the sacrifice of live chickens Pin
Mycroft Holmes11-Aug-09 15:01
professionalMycroft Holmes11-Aug-09 15:01 
GeneralRe: Of databases and the sacrifice of live chickens Pin
gantww12-Aug-09 3:09
gantww12-Aug-09 3:09 
AnswerRe: Of databases and the sacrifice of live chickens Pin
David Skelly11-Aug-09 22:36
David Skelly11-Aug-09 22:36 
AnswerRe: Of databases and the sacrifice of live chickens Pin
WoutL12-Aug-09 20:06
WoutL12-Aug-09 20:06 
Questiontwo questions regarding a big database table Pin
Seraph_summer11-Aug-09 8:48
Seraph_summer11-Aug-09 8:48 
AnswerRe: two questions regarding a big database table Pin
David Mujica11-Aug-09 10:12
David Mujica11-Aug-09 10:12 
AnswerRe: two questions regarding a big database table Pin
Mycroft Holmes11-Aug-09 15:09
professionalMycroft Holmes11-Aug-09 15:09 
QuestionSQL DATABASE Pin
kibromg11-Aug-09 6:43
kibromg11-Aug-09 6:43 
AnswerRe: SQL DATABASE Pin
Hristo-Bojilov13-Aug-09 5:04
Hristo-Bojilov13-Aug-09 5:04 
QuestionCase Sensitive User Name Pin
janani1311-Aug-09 2:38
janani1311-Aug-09 2:38 
AnswerRe: Case Sensitive User Name Pin
Luc Pattyn11-Aug-09 3:30
sitebuilderLuc Pattyn11-Aug-09 3:30 
QuestionHow to change the default port 1433 for SQLServer 2008 Pin
Paramu197311-Aug-09 1:03
Paramu197311-Aug-09 1:03 
AnswerRe: How to change the default port 1433 for SQLServer 2008 Pin
Paramu197311-Aug-09 4:18
Paramu197311-Aug-09 4:18 
QuestionHow to Concate more than one rows in one row ?. Pin
Fazal Vahora10-Aug-09 21:41
Fazal Vahora10-Aug-09 21:41 
AnswerRe: How to Concate more than one rows in one row ?. Pin
infneeta10-Aug-09 23:46
infneeta10-Aug-09 23:46 
QuestionOuter Join issues Pin
Mustafa Ismail Mustafa10-Aug-09 4:45
Mustafa Ismail Mustafa10-Aug-09 4:45 
AnswerRe: Outer Join issues Pin
leckey10-Aug-09 5:26
leckey10-Aug-09 5:26 

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.