Click here to Skip to main content
15,900,714 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questioninsert and select query in a single stored procedure Pin
Sonia Gupta8-Jun-07 2:49
Sonia Gupta8-Jun-07 2:49 
AnswerRe: insert and select query in a single stored procedure Pin
reegan418-Jun-07 3:00
reegan418-Jun-07 3:00 
GeneralRe: insert and select query in a single stored procedure Pin
Steven J Jowett8-Jun-07 3:23
Steven J Jowett8-Jun-07 3:23 
GeneralRe: insert and select query in a single stored procedure Pin
reegan418-Jun-07 3:30
reegan418-Jun-07 3:30 
GeneralRe: insert and select query in a single stored procedure Pin
Steven J Jowett8-Jun-07 3:39
Steven J Jowett8-Jun-07 3:39 
GeneralRe: insert and select query in a single stored procedure Pin
reegan418-Jun-07 3:42
reegan418-Jun-07 3:42 
AnswerRe: insert and select query in a single stored procedure Pin
Marcus J. Smith8-Jun-07 3:43
professionalMarcus J. Smith8-Jun-07 3:43 
AnswerRe: insert and select query in a single stored procedure Pin
Guffa8-Jun-07 4:30
Guffa8-Jun-07 4:30 
Add set nocount on to prevent the insert from returning a result.

create procedure AdminValidation
  @UName varchar(10),
  @PWord varchar(10)
as

set nocount on

insert into admin (u_name, p_word)
values (@UName, @PWord)

select u_name, p_word
from admin


Avoid using * in a select. Specify the fields that you want returned, that way the result of existing queries doesn't change just because you add a field to the table.

---
single minded; short sighted; long gone;

QuestionReports with Word Pin
reegan418-Jun-07 2:47
reegan418-Jun-07 2:47 
Questionhow can i create a user group,user in active directory using vb 6.0 Pin
koolprasad20038-Jun-07 2:41
professionalkoolprasad20038-Jun-07 2:41 
AnswerRe: how can i create a user group,user in active directory using vb 6.0 Pin
Dave Kreskowiak8-Jun-07 4:05
mveDave Kreskowiak8-Jun-07 4:05 
Questionstored procedure eror in vb.net 2005 [modified] Pin
Sonia Gupta8-Jun-07 2:18
Sonia Gupta8-Jun-07 2:18 
AnswerRe: stored procedure eror in vb.net 2005 Pin
Colin Angus Mackay8-Jun-07 2:28
Colin Angus Mackay8-Jun-07 2:28 
GeneralProblem Solved Pin
Sonia Gupta8-Jun-07 2:29
Sonia Gupta8-Jun-07 2:29 
QuestionPopulate / Fill TreeView with Rows in a DataSet Pin
RichardGuapo7-Jun-07 23:02
RichardGuapo7-Jun-07 23:02 
QuestionRe: Populate / Fill TreeView with Rows in a DataSet Pin
Sonia Gupta8-Jun-07 0:59
Sonia Gupta8-Jun-07 0:59 
AnswerRe: Populate / Fill TreeView with Rows in a DataSet Pin
RichardGuapo11-Jun-07 14:59
RichardGuapo11-Jun-07 14:59 
AnswerRe: Populate / Fill TreeView with Rows in a DataSet Pin
RichardGuapo11-Jun-07 15:44
RichardGuapo11-Jun-07 15:44 
QuestionStarting Point in an ArrayList Pin
Brendan Vogt7-Jun-07 22:49
Brendan Vogt7-Jun-07 22:49 
AnswerRe: Starting Point in an ArrayList Pin
Colin Angus Mackay8-Jun-07 0:42
Colin Angus Mackay8-Jun-07 0:42 
QuestionRe: Starting Point in an ArrayList Pin
Brendan Vogt8-Jun-07 2:53
Brendan Vogt8-Jun-07 2:53 
AnswerRe: Starting Point in an ArrayList Pin
Colin Angus Mackay8-Jun-07 3:09
Colin Angus Mackay8-Jun-07 3:09 
QuestionRegional settings in vb.net Pin
ttornado7-Jun-07 21:57
professionalttornado7-Jun-07 21:57 
AnswerRe: Regional settings in vb.net Pin
Dave Kreskowiak8-Jun-07 3:57
mveDave Kreskowiak8-Jun-07 3:57 
QuestionPassing a parameter to a stored procedure Pin
Nine_7-Jun-07 21:56
Nine_7-Jun-07 21:56 

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.