Click here to Skip to main content
15,886,919 members
Home / Discussions / Database
   

Database

 
GeneralRe: Optimizing Query - Order by inner joined value Pin
gnjunge7-Jan-08 20:46
gnjunge7-Jan-08 20:46 
GeneralRe: Optimizing Query - Order by inner joined value Pin
andyharman8-Jan-08 0:25
professionalandyharman8-Jan-08 0:25 
GeneralRe: Optimizing Query - Order by inner joined value Pin
gnjunge8-Jan-08 1:59
gnjunge8-Jan-08 1:59 
GeneralRe: Optimizing Query - Order by inner joined value Pin
andyharman8-Jan-08 6:24
professionalandyharman8-Jan-08 6:24 
GeneralRe: Optimizing Query - Order by inner joined value Pin
gnjunge8-Jan-08 8:16
gnjunge8-Jan-08 8:16 
GeneralRe: Optimizing Query - Order by inner joined value Pin
andyharman9-Jan-08 2:45
professionalandyharman9-Jan-08 2:45 
GeneralRe: Optimizing Query - Order by inner joined value Pin
gnjunge9-Jan-08 7:11
gnjunge9-Jan-08 7:11 
GeneralStored Procedure Pin
simworld7-Jan-08 3:47
simworld7-Jan-08 3:47 
I need the syntax of using Stored Procedure in several cases Using C# code. and also how to create table using stored procedure in SQL server
I perform below systax in my project but I want to replace them using Stored procedure in C#.


DELETE

SqlCommand cmd=new SqlCommand("delete from logininfo where uid='"+user_id.Text+"'",con);
cmd.ExecuteNonQuery();


UPDATE

SqlCommand cmd2=new SqlCommand("update logininfo set pwd ='"+ newpwd.Text) +"' where uid='"+user1+"'",con); cmd2.ExecuteNonQuery();

SELECT

SqlCommand cmd=new SqlCommand("select b from logininfo where uid='"+user+"'",con);

INSERT

SqlCommand cmd=new SqlCommand("insert into vendor_master values('"+ name.Text +"')",con);
cmd.ExecuteNonQuery();
GeneralRe: Stored Procedure Pin
Colin Angus Mackay7-Jan-08 7:28
Colin Angus Mackay7-Jan-08 7:28 
GeneralRe: Stored Procedure Pin
simworld7-Jan-08 8:12
simworld7-Jan-08 8:12 
Questioninserting into SQL table with just a primary key column? Pin
michal.kreslik6-Jan-08 7:11
michal.kreslik6-Jan-08 7:11 
GeneralRe: inserting into SQL table with just a primary key column? Pin
Paul Conrad6-Jan-08 10:00
professionalPaul Conrad6-Jan-08 10:00 
GeneralRe: inserting into SQL table with just a primary key column? Pin
michal.kreslik6-Jan-08 21:07
michal.kreslik6-Jan-08 21:07 
GeneralRe: inserting into SQL table with just a primary key column? Pin
Pete O'Hanlon6-Jan-08 22:49
mvePete O'Hanlon6-Jan-08 22:49 
GeneralRe: inserting into SQL table with just a primary key column? Pin
Paul Conrad7-Jan-08 7:40
professionalPaul Conrad7-Jan-08 7:40 
GeneralRe: inserting into SQL table with just a primary key column? Pin
Chris Meech7-Jan-08 7:12
Chris Meech7-Jan-08 7:12 
GeneralRe: inserting into SQL table with just a primary key column? Pin
Paul Conrad7-Jan-08 7:44
professionalPaul Conrad7-Jan-08 7:44 
GeneralRe: inserting into SQL table with just a primary key column? Pin
Mark Churchill7-Jan-08 12:21
Mark Churchill7-Jan-08 12:21 
GeneralRe: inserting into SQL table with just a primary key column? Pin
Vimalsoft(Pty) Ltd6-Jan-08 20:05
professionalVimalsoft(Pty) Ltd6-Jan-08 20:05 
GeneralRe: inserting into SQL table with just a primary key column? Pin
michal.kreslik6-Jan-08 21:09
michal.kreslik6-Jan-08 21:09 
GeneralRe: inserting into SQL table with just a primary key column? Pin
obymathew10-Jan-08 13:29
obymathew10-Jan-08 13:29 
GeneralDistinct in SQL Server Pin
.NET- India 4-Jan-08 23:19
.NET- India 4-Jan-08 23:19 
GeneralRe: Distinct in SQL Server Pin
Vimalsoft(Pty) Ltd5-Jan-08 7:37
professionalVimalsoft(Pty) Ltd5-Jan-08 7:37 
GeneralRe: Distinct in SQL Server Pin
.NET- India 6-Jan-08 18:33
.NET- India 6-Jan-08 18:33 
GeneralRe: Distinct in SQL Server Pin
Vimalsoft(Pty) Ltd6-Jan-08 20:03
professionalVimalsoft(Pty) Ltd6-Jan-08 20:03 

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.