Click here to Skip to main content
15,923,087 members
Home / Discussions / Database
   

Database

 
AnswerRe: Need a query to get data from two tables with specific format Pin
Niral Soni22-Apr-13 4:57
Niral Soni22-Apr-13 4:57 
QuestionSSIS XML Source (2012) Pin
PIEBALDconsult16-Apr-13 18:26
mvePIEBALDconsult16-Apr-13 18:26 
QuestionHow to insert the same record multiple times in a MS Access 2000 database Pin
sobelhaj12-Apr-13 7:39
sobelhaj12-Apr-13 7:39 
AnswerRe: How to insert the same record multiple times in a MS Access 2000 database Pin
RobCollins12-Apr-13 12:12
RobCollins12-Apr-13 12:12 
AnswerRe: How to insert the same record multiple times in a MS Access 2000 database Pin
PIEBALDconsult13-Apr-13 8:01
mvePIEBALDconsult13-Apr-13 8:01 
GeneralRe: How to insert the same record multiple times in a MS Access 2000 database Pin
sobelhaj13-Apr-13 9:00
sobelhaj13-Apr-13 9:00 
GeneralRe: How to insert the same record multiple times in a MS Access 2000 database Pin
PIEBALDconsult13-Apr-13 11:18
mvePIEBALDconsult13-Apr-13 11:18 
AnswerRe: How to insert the same record multiple times in a MS Access 2000 database Pin
Mycroft Holmes13-Apr-13 13:20
professionalMycroft Holmes13-Apr-13 13:20 
AnswerRe: How to insert the same record multiple times in a MS Access 2000 database Pin
jschell14-Apr-13 7:12
jschell14-Apr-13 7:12 
Questionthe output of select command Pin
sara-setare12-Apr-13 7:13
sara-setare12-Apr-13 7:13 
AnswerRe: the output of select command Pin
RobCollins12-Apr-13 7:17
RobCollins12-Apr-13 7:17 
GeneralRe: the output of select command Pin
sara-setare12-Apr-13 7:28
sara-setare12-Apr-13 7:28 
GeneralRe: the output of select command Pin
RobCollins12-Apr-13 7:59
RobCollins12-Apr-13 7:59 
GeneralRe: the output of select command Pin
sara-setare12-Apr-13 19:44
sara-setare12-Apr-13 19:44 
Questionupdate special row Pin
sara-setare12-Apr-13 1:20
sara-setare12-Apr-13 1:20 
AnswerRe: update special row Pin
Tim Carmichael12-Apr-13 1:35
Tim Carmichael12-Apr-13 1:35 
AnswerRe: update special row Pin
Shanalal Kasim12-Apr-13 3:11
Shanalal Kasim12-Apr-13 3:11 
AnswerRe: update special row Pin
David Mujica12-Apr-13 3:11
David Mujica12-Apr-13 3:11 
GeneralRe: update special row Pin
sara-setare12-Apr-13 3:50
sara-setare12-Apr-13 3:50 
AnswerRe: update special row Pin
Eddy Vluggen12-Apr-13 6:50
professionalEddy Vluggen12-Apr-13 6:50 
Questionthe insert command doesnt work Pin
sara-setare10-Apr-13 18:27
sara-setare10-Apr-13 18:27 
Hi all
I have a problem with database.I work on " add new user.aspx "file witch add a new user to the table(Authenticate)but it doesnt work! this is my code in add new user.aspx file:
<script runat="server">
protected void  CreateUserWizard1_CreatedUser(object sender, EventArgs e)
{
System.Data.SqlClient.SqlConnection con = new System.Data.SqlClient.SqlConnection();
string connectionstr=@"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\EHSAN\Documents\Visual Studio 2010\Projects\The Club\The Club\App_Data\Database1.mdf;Integrated Security=True;User Instance=True";
       con.ConnectionString=connectionstr;
       string sqlstring;
       sqlstring ="insert into Authenticate (username,password)VALUES ("+ CreateUserWizard1.UserName+","+CreateUserWizard1.Password+")";
       System.Data.SqlClient.SqlCommand objcommand = new System.Data.SqlClient.SqlCommand(sqlstring, con);
       Response.Redirect("~/Login.aspx");
}
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="server">
<asp:CreateUserWizard ID="CreateUserWizard1" Runat="server" 
        oncreateduser="CreateUserWizard1_CreatedUser">
</asp:CreateUserWizard>
</asp:Content>

I execute that but it doesnt add any new row to my table!!!!
plz help me!
AnswerRe: the insert command doesnt work Pin
PIEBALDconsult10-Apr-13 19:00
mvePIEBALDconsult10-Apr-13 19:00 
GeneralRe: the insert command doesnt work Pin
sara-setare10-Apr-13 19:14
sara-setare10-Apr-13 19:14 
AnswerRe: the insert command doesnt work Pin
Pallavi Waikar10-Apr-13 19:55
Pallavi Waikar10-Apr-13 19:55 
GeneralRe: the insert command doesnt work Pin
sara-setare10-Apr-13 20:19
sara-setare10-Apr-13 20:19 

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.