IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Firebird Discussion :

ERROR -206 firebird


Sujet :

Firebird

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Août 2007
    Messages
    7
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 7
    Par défaut ERROR -206 firebird
    Bonjour à tous,

    j'ai une erreur
    "Dynamic SQL Error
    SQL error code = -206
    Column unknown"
    lorsque j'essaie d'exécuter une procedure stockée.

    voici mon code
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    string conString = Connexion.getCONNEXIONSTRING();
                FbConnection myConnexion = new FbConnection();
                myConnexion.ConnectionString = conString;
                FbCommand myCommande = new FbCommand("PST_RAPPORT_BL", myConnexion);
                myCommande.Parameters.Add("NBL", FbDbType.BigInt).Value = Convert.ToInt64(this._NumBL);
                myCommande.CommandType = CommandType.StoredProcedure;
                myConnexion.Open();
                FbDataReader myReader = myCommande.ExecuteReader();
                this.DataSource = myReader;

  2. #2
    Expert confirmé
    Avatar de qi130
    Homme Profil pro
    Expert Processus IT
    Inscrit en
    Mars 2003
    Messages
    3 940
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 64
    Localisation : France

    Informations professionnelles :
    Activité : Expert Processus IT
    Secteur : Finance

    Informations forums :
    Inscription : Mars 2003
    Messages : 3 940
    Par défaut
    Quel est le code de cette procédure ?

    Quelle est la définition de la table ?

  3. #3
    Membre du Club
    Profil pro
    Inscrit en
    Août 2007
    Messages
    7
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 7
    Par défaut
    voici le code de PS
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    SET TERM ^ ;
     
    CREATE OR ALTER PROCEDURE PST_RAPPORT_BL 
    returns (
        adrliv1 varchar(50),
        adrliv2 varchar(50),
        adrliv3 varchar(50),
        villeliv varchar(40),
        cpliv varchar(12),
        paysliv varchar(40),
        nomclient varchar(50),
        datebl date,
        preparatrice bigint,
        valideuse bigint,
        pdstotal decimal(10,2),
        nbpieces integer,
        mtht decimal(10,2),
        mttva decimal(10,2),
        mtttc decimal(10,2),
        numclifour bigint,
        refarticle varchar(15),
        contremarque varchar(20),
        taille varchar(5),
        designation varchar(50),
        txremise integer,
        mtremise decimal(8,2),
        qte smallint,
        puht decimal(5,2),
        prixtotlig decimal(8,2),
        pdsmetal decimal(5,2),
        refartclient varchar(20),
        numerobl bigint,
        numcde bigint,
        datecreation date,
        tphbjo decimal(8,2))
    as
    begin
      /* Procedure Text */
     FOR
    SELECT  ENTBL.ADRLIV1,
            ENTBL.ADRLIV2,
            ENTBL.ADRLIV3,
            ENTBL.VILLELIV,
            ENTBL.CPLIV,
            ENTBL.PAYSLIV,
            ENTBL.NOMCLIENT,
            ENTBL.DATEBL,
            ENTBL.PREPARATRICE,
            ENTBL.VALIDEUSE,
            ENTBL.PDSTOTAL,
            ENTBL.NBPIECES,
            ENTBL.MTHT,
            ENTBL.MTTVA,
            ENTBL.MTTTC,
            ENTBL.NUMCLIFOUR,
            LIBL.REFARTICLE,
            LIBL.CONTREMARQUE,
            LIBL.TAILLE,
            LIBL.DESIGNATION,
            LIBL.TXREMISE,
            LIBL.MTREMISE,
            LIBL.QTE,
            LIBL.PUHT,
            LIBL.PRIXTOTLIG,
            LIBL.PDSMETAL,
            LIBL.REFARTCLIENT,
            LIBL.NUMEROBL,
            LIBL.NUMCDE,
            LIBL.DATECREATION,
            LIBL.TPHBJO
    FROM  T_LIGNESBL as LIBL
    left join T_ENTETEBL as ENTBL on ( LIBL.NUMEROBL =  ENTBL.NUMBL)
    WHERE    LIBL.NUMCDE = 358712
     
    INTO
            : ADRLIV1,
            : ADRLIV2,
            : ADRLIV3,
            : VILLELIV,
            : CPLIV,
            : PAYSLIV,
            : NOMCLIENT,
            : DATEBL,
            : PREPARATRICE,
            : VALIDEUSE,
            : PDSTOTAL,
            : NBPIECES,
            : MTHT,
            : MTTVA,
            : MTTTC,
            : NUMCLIFOUR,
            : REFARTICLE,
            : CONTREMARQUE,
            : TAILLE,
            : DESIGNATION,
            : TXREMISE,
            : MTREMISE,
            : QTE,
            : PUHT,
            : PRIXTOTLIG,
            : PDSMETAL,
            : REFARTCLIENT,
            : NUMEROBL,
            : NUMCDE,
            : DATECREATION,
            : TPHBJO
            do
      suspend;
    end
     
    SET TERM ; 
     
    GRANT SELECT ON T_LIGNESBL TO PROCEDURE PST_RAPPORT_BL;
     
    GRANT SELECT ON T_ENTETEBL TO PROCEDURE PST_RAPPORT_BL;
     
    GRANT EXECUTE ON PROCEDURE PST_RAPPORT_BL TO SYSDBA;

  4. #4
    Membre du Club
    Profil pro
    Inscrit en
    Août 2007
    Messages
    7
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 7
    Par défaut
    j'ai trouvé le l'erreur.
    il fallait juste un @ devant le nom du paramètre
    myCommande.Parameters.Add("@NBL", FbDbType.BigInt).Value = Convert.ToInt64

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [AJAX] error 206 Partial Content 1.66s
    Par boboss123 dans le forum AJAX
    Réponses: 6
    Dernier message: 03/02/2010, 13h30
  2. [FB 2.1] Firebird 2.1 : Invalid token Dynamic SQL Error
    Par fred7889 dans le forum Installation
    Réponses: 1
    Dernier message: 20/02/2009, 17h35
  3. [Firebird 1.5] Dynamic SQL error (-303)
    Par crade dans le forum SQL
    Réponses: 1
    Dernier message: 15/06/2007, 21h32
  4. [FireBird] Dynamic SQL Error
    Par aityahia dans le forum SQL
    Réponses: 1
    Dernier message: 28/05/2007, 10h12
  5. Firebird, Delphi7, Compo IB : internal error
    Par Harry dans le forum Bases de données
    Réponses: 12
    Dernier message: 04/09/2006, 16h04

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo