Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
N

nitish_07

@nitish_07
About
Posts
37
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Confusion
    N nitish_07

    please tell me the concept of delegates. I have seen from it from book but didnt get it properly.. what i read is it is a type safe object that can point to another method or multiple method in the application which can be invoked at later time.

    C# learning

  • query not executing
    N nitish_07

    Can't create table '.\userdb\od.frm' (errno: 150). Getting this error while creating following table in mysql... create table od(no. int,foreign key(no.) references emp(empno));

    Linux, Apache, MySQL, PHP database mysql help

  • sql error
    N nitish_07

    Sir I have corrected that...thanks...:)

    Linux, Apache, MySQL, PHP database help mysql sysadmin announcement

  • C# code problem
    N nitish_07

    Sir I have tried all the suggestions...and as u said i have posted in mysql but there was no reply..so i posted here...

    Windows Forms database help csharp mysql sysadmin

  • C# code problem
    N nitish_07

    I have a button in my form and on click of that button I am writing this code.... OdbcCommand cmd ; cmd = new OdbcCommand(abc, cn); cmd.CommandType = CommandType.StoredProcedure; cmd.ExecuteNonQuery(); I have made a procedure named abc in database which is returning only one row from login table..So i am just checking that on click of that button my procedure should run but while debugging when i come to cmd.ExecuteQuery() it throws following error.. ERROR [42000] [MySQL][ODBC 5.1 Driver][mysqld-5.0.77-community-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'abc()' at line 1. So plz tell me what would be the problem..

    Windows Forms database help csharp mysql sysadmin

  • C# code error
    N nitish_07

    I have a button in my form and on click of that button I am writing this code.... OdbcCommand cmd ; cmd = new OdbcCommand(abc, cn); cmd.CommandType = CommandType.StoredProcedure; cmd.ExecuteNonQuery(); I have made a procedure named abc in database which is returning only one row from login table..So i am just checking that on click of that button my procedure should run but while debugging when i come to cmd.ExecuteQuery() it throws following error.. ERROR [42000] [MySQL][ODBC 5.1 Driver][mysqld-5.0.77-community-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near abc() at line 1. So plz tell me what should be the problem.

    C# database help csharp mysql sysadmin

  • sql error
    N nitish_07

    I have a button in my form and on click of that button I am writing this code....
    <pre>
    OdbcCommand cmd ;
    cmd = new OdbcCommand("abc", cn);
    cmd.CommandType = CommandType.StoredProcedure;
    cmd.ExecuteNonQuery();

    I have made a procedure named abc in database which is returning only one row from login table..So i am just checking that on click of that button my procedure should run but while debugging when i come to cmd.ExecuteQuery() it throws following error.. ERROR [42000] [MySQL][ODBC 5.1 Driver][mysqld-5.0.77-community-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'abc()' at line 1. So plz tell me what should be the problem.

    Linux, Apache, MySQL, PHP database help mysql sysadmin announcement

  • procedure
    N nitish_07

    Sir I had already posted all the things in my post....

    .NET (Core and Framework) database help mysql sysadmin announcement

  • procedure
    N nitish_07

    I had seen that from original mysql query browser...but as u said i deleted that ' ' from procedure name and then tried but found the same error...

    .NET (Core and Framework) database help mysql sysadmin announcement

  • procedure
    N nitish_07

    This is my procedure abc..

    DELIMITER $$

    DROP PROCEDURE IF EXISTS `userdb`.`abc`$$
    CREATE DEFINER=`root`@`localhost` PROCEDURE `abc`()
    BEGIN
    select * from login;
    END$$

    DELIMITER ;

    .NET (Core and Framework) database help mysql sysadmin announcement

  • procedure
    N nitish_07

    Sir there is no problem with my stored procedure..It is working fine in database..when i call through c# it throws error...

    .NET (Core and Framework) database help mysql sysadmin announcement

  • procedure
    N nitish_07

    OdbcCommand cmd;
    cmd = new OdbcCommand("abc", cn);
    cmd.CommandType = CommandType.StoredProcedure;
    OdbcDataReader dr = cmd.ExecuteReader();
    while (dr.Read())
    {
    string s = dr.GetString(0);
    }

    after doing this I am getting the same error after line cmd.commandtype=cmd.executereader... now what should i do..it says odbcexception was unhandled..

    .NET (Core and Framework) database help mysql sysadmin announcement

  • procedure
    N nitish_07

    ya i know....but till that point code should run correctly....I am just checking...

    .NET (Core and Framework) database help mysql sysadmin announcement

  • procedure
    N nitish_07

    I have a button in my form and on click of that button I am writing this code....

    OdbcCommand cmd ;
    cmd = new OdbcCommand("abc", cn);
    cmd.CommandType = CommandType.StoredProcedure;
    cmd.ExecuteNonQuery();

    I have made a procedure named abc in database which is returning only one row from login table..So i am just checking that on click of that button my procedure should run but while debugging when i come to cmd.ExecuteQuery() it throws following error..

    ERROR [42000] [MySQL][ODBC 5.1 Driver][mysqld-5.0.77-community-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'abc()' at line 1.

    So plz sort out the problem as soon as possible...

    .NET (Core and Framework) database help mysql sysadmin announcement

  • Not able to call the procedure.
    N nitish_07

    I have deleted the bday option but again same issue.....and con.open() is not an issue.... and i have checked sp for its existence....no issue....

    Windows Forms mysql help question

  • Not able to call the procedure.
    N nitish_07

    ya I have done this....bt nothing happened...same error shows.... ERROR [42000] [MySQL][ODBC 5.1 Driver][mysqld-5.0.77-community-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'add_emp(@fname, @lname, @bday)' at line 1

    Windows Forms mysql help question

  • Leave event is not working.
    N nitish_07

    thanks...somehow i managed with other logic.....:)

    Windows Forms question database help

  • Leave event is not working.
    N nitish_07

    private void rtb_leave(object sender, EventArgs e)
    {
    Class1.query = rtb.Text;
    }

    private void InitializeComponent()
    {
    this.rtb = new System.Windows.Forms.RichTextBox();
    this.rtb.Leave += new System.EventHandler(this.rtb_leave);
    }

    I have done this coding...But leave event is not working..what is the problem??

    Windows Forms question database help

  • Not able to call the procedure.
    N nitish_07

    Actually the thing is I am testing it...I am developing mysql query browser. so when i am calling sp at run time then also i m getting same error...so i have searched on net c# code for calling sp..and i have got this code but when i implemented this then it throws the same error.....

    Windows Forms mysql help question

  • Not able to call the procedure.
    N nitish_07

    I have corrected it but it didnt solve my problem..

    Windows Forms mysql help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups