Click here to Skip to main content
15,909,199 members
Home / Discussions / Database
   

Database

 
QuestionProblem with POWER Pin
TheComputerMan26-May-11 4:14
TheComputerMan26-May-11 4:14 
AnswerRe: Problem with POWER Pin
TheComputerMan26-May-11 4:27
TheComputerMan26-May-11 4:27 
GeneralRe: Problem with POWER Pin
SilimSayo26-May-11 7:46
SilimSayo26-May-11 7:46 
AnswerRe: Problem with POWER Pin
dasblinkenlight29-May-11 17:52
dasblinkenlight29-May-11 17:52 
GeneralRe: Problem with POWER Pin
TheComputerMan29-May-11 18:00
TheComputerMan29-May-11 18:00 
GeneralRe: Problem with POWER Pin
dasblinkenlight30-May-11 1:10
dasblinkenlight30-May-11 1:10 
GeneralRe: Problem with POWER Pin
TheComputerMan30-May-11 1:20
TheComputerMan30-May-11 1:20 
QuestionReseting memory in DB [modified] Pin
MAW3025-May-11 20:08
MAW3025-May-11 20:08 
I found the following sp on this website, when I run by right clicking on the procedure using the command "Execute Stored Procedure" it works fine. However, when I run the sp from C# I get the following error:

//err.Message = "Microsoft SQL Native Client:
//CONFIG statement cannot be used inside a user transaction.\\42000 = 574;
//Microsoft SQL Native Client: Configuration option 'show advanced options'
//changed from 0 to 1. Run the RECONFIGURE statement to install.\\01000 = 15457"



ALTER PROCEDURE [dbo].[sp_Database_ResetMemory]
AS

EXEC sp_configure 'show advanced options', 1;
RECONFIGURE WITH OVERRIDE;

EXEC sp_configure 'max server memory (MB)';

EXEC sp_configure 'max server memory (MB)', 512;
RECONFIGURE WITH OVERRIDE;

EXEC sp_configure 'max server memory (MB)';

WAITFOR DELAY '00:00:15';

EXEC sp_configure 'max server memory (MB)', 2147483647;
RECONFIGURE WITH OVERRIDE;

EXEC sp_configure 'max server memory (MB)';

EXEC sp_configure 'show advanced options', 0;
RECONFIGURE WITH OVERRIDE;

Can anyone tell me what the problem is.
Thanks in advance,
Michael

modified on Thursday, May 26, 2011 12:50 PM

AnswerRe: Reseting memory in DB Pin
Ravi Sant29-May-11 19:10
Ravi Sant29-May-11 19:10 
QuestionOracle invalid character Pin
Firo Atrum Ventus25-May-11 18:29
Firo Atrum Ventus25-May-11 18:29 
AnswerRe: Oracle invalid character Pin
_Damian S_25-May-11 18:52
professional_Damian S_25-May-11 18:52 
GeneralRe: Oracle invalid character Pin
Firo Atrum Ventus25-May-11 19:04
Firo Atrum Ventus25-May-11 19:04 
GeneralRe: Oracle invalid character Pin
_Damian S_25-May-11 19:17
professional_Damian S_25-May-11 19:17 
GeneralRe: Oracle invalid character Pin
Firo Atrum Ventus25-May-11 19:21
Firo Atrum Ventus25-May-11 19:21 
GeneralRe: Oracle invalid character Pin
_Damian S_25-May-11 19:22
professional_Damian S_25-May-11 19:22 
GeneralRe: Oracle invalid character Pin
Firo Atrum Ventus25-May-11 19:27
Firo Atrum Ventus25-May-11 19:27 
GeneralRe: Oracle invalid character Pin
_Damian S_25-May-11 19:33
professional_Damian S_25-May-11 19:33 
GeneralRe: Oracle invalid character [modified] Pin
Firo Atrum Ventus25-May-11 19:44
Firo Atrum Ventus25-May-11 19:44 
GeneralRe: Oracle invalid character Pin
_Damian S_25-May-11 19:56
professional_Damian S_25-May-11 19:56 
GeneralRe: Oracle invalid character Pin
Shameel26-May-11 1:20
professionalShameel26-May-11 1:20 
GeneralRe: Oracle invalid character Pin
jschell26-May-11 7:56
jschell26-May-11 7:56 
GeneralRe: Oracle invalid character Pin
Firo Atrum Ventus26-May-11 14:52
Firo Atrum Ventus26-May-11 14:52 
GeneralRe: Oracle invalid character Pin
jschell27-May-11 8:22
jschell27-May-11 8:22 
GeneralRe: Oracle invalid character Pin
Firo Atrum Ventus27-May-11 22:59
Firo Atrum Ventus27-May-11 22:59 
GeneralRe: Oracle invalid character Pin
jschell29-May-11 9:26
jschell29-May-11 9: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.