Click here to Skip to main content
15,904,348 members
Home / Discussions / Database
   

Database

 
AnswerRe: Stored Procedure is not Saving Records Pin
Syed Shahid Hussain16-Oct-06 1:00
Syed Shahid Hussain16-Oct-06 1:00 
AnswerRe: Stored Procedure is not Saving Records Pin
ednrgc19-Oct-06 6:10
ednrgc19-Oct-06 6:10 
AnswerRe: how to call store procedure out? Pin
Rob Graham16-Oct-06 10:49
Rob Graham16-Oct-06 10:49 
QuestionSQL INNER JOIN Pin
walalawll15-Oct-06 15:51
walalawll15-Oct-06 15:51 
AnswerRe: SQL INNER JOIN Pin
M Afzal Atta15-Oct-06 17:08
M Afzal Atta15-Oct-06 17:08 
GeneralRe: SQL INNER JOIN Pin
walalawll15-Oct-06 17:43
walalawll15-Oct-06 17:43 
AnswerRe: SQL INNER JOIN Pin
ednrgc19-Oct-06 6:12
ednrgc19-Oct-06 6:12 
Questionget return value from stored procedure Pin
Polymorpher14-Oct-06 17:07
Polymorpher14-Oct-06 17:07 
Hi I am having a problem returning a value from a stored procedure...It keeps returning Nothing...here is the stored procedure:

'===============================================
ALTER PROCEDURE dbo.spAddUser(@Name VARCHAR(50),
@LoginName VARCHAR(50),
@LoginPass VARCHAR(50),
@SecLvl INT)
AS
SET NOCOUNT ON
INSERT INTO dbo.tblUser([Name],
LoginName,
LoginPass,
SecLvl)
VALUES(@Name,
@LoginName,
@LoginPass,
@SecLvl)
RETURN @@IDENTITY
'===============================================

And here is the code I am using to call it:

'===============================================
Public Shared Function ExecuteScalarStoredProc(ByVal conStr As String, ByVal procName As String, ByVal procParams As String) As Object
Dim ret As Object

With New SqlClient.SqlConnection(conStr).CreateCommand
.CommandText = "EXEC " & procName & " " & procParams
.Connection.Open()
ret = .ExecuteScalar
.Connection.Close()
End With

Return ret
End Function
'===============================================

Any sugestions?

Pablo
Sometimes I think there's no reason to get out of bed . . . then I feel wet, and I realize there is.

AnswerRe: get return value from stored procedure Pin
Rocky#14-Oct-06 20:12
Rocky#14-Oct-06 20:12 
GeneralRe: get return value from stored procedure Pin
Polymorpher14-Oct-06 20:18
Polymorpher14-Oct-06 20:18 
GeneralRe: get return value from stored procedure Pin
Rocky#14-Oct-06 20:26
Rocky#14-Oct-06 20:26 
GeneralRe: get return value from stored procedure Pin
Polymorpher14-Oct-06 20:54
Polymorpher14-Oct-06 20:54 
Questionquery on date VIP Pin
msleem14-Oct-06 5:21
msleem14-Oct-06 5:21 
AnswerRe: query on date VIP Pin
Rocky#14-Oct-06 21:21
Rocky#14-Oct-06 21:21 
AnswerRe: query on date VIP Pin
Colin Angus Mackay14-Oct-06 22:31
Colin Angus Mackay14-Oct-06 22:31 
QuestionUpdate database help [modified] Pin
eric_tran14-Oct-06 5:03
eric_tran14-Oct-06 5:03 
QuestionTransforming standard values from excel to database record Pin
dhatchu13-Oct-06 1:43
dhatchu13-Oct-06 1:43 
QuestionOracle tables and columns by SQL Query Pin
PasNad12-Oct-06 19:28
PasNad12-Oct-06 19:28 
AnswerRe: Oracle tables and columns by SQL Query Pin
rah_sin13-Oct-06 0:16
professionalrah_sin13-Oct-06 0:16 
GeneralRe: Oracle tables and columns by SQL Query Pin
PasNad13-Oct-06 17:10
PasNad13-Oct-06 17:10 
GeneralRe: Oracle tables and columns by SQL Query Pin
rah_sin15-Oct-06 17:55
professionalrah_sin15-Oct-06 17:55 
AnswerRe: Oracle tables and columns by SQL Query Pin
Akhilesh Yadav15-Oct-06 23:46
Akhilesh Yadav15-Oct-06 23:46 
GeneralRe: Oracle tables and columns by SQL Query Pin
simplemusings17-Oct-06 3:55
simplemusings17-Oct-06 3:55 
QuestionDatabase best practice - large tables. Pin
MY120112-Oct-06 3:28
MY120112-Oct-06 3:28 
AnswerRe: Database best practice - large tables. Pin
Colin Angus Mackay12-Oct-06 3:43
Colin Angus Mackay12-Oct-06 3:43 

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.