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

MS SQL Server Discussion :

Les index disparaissent-ils tout seul ?


Sujet :

MS SQL Server

  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Octobre 2002
    Messages
    46
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2002
    Messages : 46
    Points : 23
    Points
    23
    Par défaut Les index disparaissent-ils tout seul ?
    bonjour,

    Voilà j'ai un petit problème assez bizarre.
    Lors de l'utilisation d'un soft basé sur SQL Server 2005,il y au un moment donné ou certaine fonctionnalité vont se mettre à ralentir de façon brutal.
    Par exemple une "simple" recherche va prendre dans un cas 1s et dans l'autre dépasser facilement les 30sec !

    En regardant d'un peu plus près j'ai pu identifier les tables utilisés et la seule parade que j'ai trouvé c'est de reconstruire les index de ces tables.

    Le souci c'est que je dois faire cette reconstruction quasi tous les matins voir dans la journée.

    Ma question : y a t-il une possibilité pour que les index se "détruisent" ?
    Sachant qu'il n'y a pas d'insert ou même d'update de la table en entier

    Merci de m'avoir lu

  2. #2
    Expert éminent sénior
    Avatar de orafrance
    Profil pro
    Inscrit en
    Janvier 2004
    Messages
    15 967
    Détails du profil
    Informations personnelles :
    Âge : 47
    Localisation : France

    Informations forums :
    Inscription : Janvier 2004
    Messages : 15 967
    Points : 19 075
    Points
    19 075
    Par défaut
    Citation Envoyé par goofer Voir le message
    Sachant qu'il n'y a pas d'insert ou même d'update de la table en entier
    cela veut-il dire que les données peuvent être sensiblement modifiées même si ça ne concerne pas toute la table ?

  3. #3
    Membre à l'essai
    Profil pro
    Inscrit en
    Octobre 2002
    Messages
    46
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2002
    Messages : 46
    Points : 23
    Points
    23
    Par défaut
    oui, mais ça ne concerne que certains élements de la table.
    il y a beaucoup de "select" mais très peu d'update et d'insert

  4. #4
    Invité
    Invité(e)
    Par défaut
    Qu'entends-tu par "détruire" et "reconstruire" ?

    Si détruire = disparaître, ça ne peut pas se faire tout seul, il faut une action du type DROP INDEX pour cela.

    Si reconstruire = DBCC DBREINDEX par exemple, cela peut être normal, et fait partie de la maintenance d'une base de manière générale.

    S'il n'y a que des SELECT, il faudrait augmenter la valeur du fillfactor, la mettre à 90% par exemple.

  5. #5
    Membre à l'essai
    Profil pro
    Inscrit en
    Octobre 2002
    Messages
    46
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2002
    Messages : 46
    Points : 23
    Points
    23
    Par défaut
    Par détruire j'entends que SQL ne les utilise pas/plus
    Par reconstruire oui c'est bien de DBCC REINDEX dont je parle.

    Et concernant la reconstruction, pas vraiment d'accord: oui ça fait partie de la maintenance, de là à reconstruire 3 fois par jour les index, c'est qu'il y a un souci !

    Il y a par conte effectivement plus de select qu'autre chose.

  6. #6
    Invité
    Invité(e)
    Par défaut
    Citation Envoyé par goofer Voir le message
    de là à reconstruire 3 fois par jour les index, c'est qu'il y a un souci !
    On est bien d'accord.
    Citation Envoyé par goofer Voir le message
    Il y a par conte effectivement plus de select qu'autre chose.
    Donc positionne le fillfactor à 90%.

    Exécute une trace pour voir tous les plans d'exécution des requêtes, et voir si les index sont pertinents ou pas. Les cas échéant, il faudrait peut-être les supprimer (les inutiles), et en créer d'autres plus utiles.

  7. #7
    Rédacteur

    Avatar de SQLpro
    Homme Profil pro
    Expert bases de données / SQL / MS SQL Server / Postgresql
    Inscrit en
    Mai 2002
    Messages
    21 849
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Var (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Expert bases de données / SQL / MS SQL Server / Postgresql
    Secteur : Conseil

    Informations forums :
    Inscription : Mai 2002
    Messages : 21 849
    Points : 52 968
    Points
    52 968
    Billets dans le blog
    6
    Par défaut
    Non les index ne se détruisent pas....
    mais en revanche comme toute structure de données, ils vieillissent.
    Comme indiqué dans la série d'article : http://sqlpro.developpez.com/optimisation/
    (en particulier 5/5 à venir...)
    Il convient donc d'en faire la maintenance...
    Que feriez vous si l'autoroute que vous devez emprunter chaque matin devient impraticable parce que l'état ne l'a pas entretenu ? Vous changeriez de route... C'est exactement ce que fait SQL Server. Devant un index dont les statistiques sont obsolètes, il ignore cet index parce qu'il n'a plus confiance dans la qualité de cet index (et généralement à juste titre).
    Il convient donc d'assurer la maintenance des index. C'est le travail routinier d'un simple DBA !

    A +

  8. #8
    Membre à l'essai
    Profil pro
    Inscrit en
    Octobre 2002
    Messages
    46
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2002
    Messages : 46
    Points : 23
    Points
    23
    Par défaut
    mais je dis pas le contraire.
    Par contre l'autoroute réparé le lundi et à nouveau "en panne" le lundi soir vous faites quoi ?

    les index ne vieillissent pas, ils sont reconstruit tous les matins (voir dans l'après midi ) automatiquement, ce qui est trop à mon gout car un index n'a pass à être reconstruit aussi souvent.

    d'ou ma question : "Pourquoi sachant qu'on ne fait que des select !"

  9. #9
    Expert éminent sénior
    Avatar de orafrance
    Profil pro
    Inscrit en
    Janvier 2004
    Messages
    15 967
    Détails du profil
    Informations personnelles :
    Âge : 47
    Localisation : France

    Informations forums :
    Inscription : Janvier 2004
    Messages : 15 967
    Points : 19 075
    Points
    19 075
    Par défaut
    le problème ne viendrait-il pas plus des stats que de la structure de l'index ? Quelles observations justifient le DBREINDEX ?

  10. #10
    Membre à l'essai
    Profil pro
    Inscrit en
    Octobre 2002
    Messages
    46
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2002
    Messages : 46
    Points : 23
    Points
    23
    Par défaut
    le temps mis par certaines requêtes pour s'exécuter était trop long, d'ou la ré indexation, tout bête

  11. #11
    Expert éminent sénior
    Avatar de orafrance
    Profil pro
    Inscrit en
    Janvier 2004
    Messages
    15 967
    Détails du profil
    Informations personnelles :
    Âge : 47
    Localisation : France

    Informations forums :
    Inscription : Janvier 2004
    Messages : 15 967
    Points : 19 075
    Points
    19 075
    Par défaut
    la réindexation est une solution mais probablement pas LA solution

  12. #12
    Membre à l'essai
    Profil pro
    Inscrit en
    Octobre 2002
    Messages
    46
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2002
    Messages : 46
    Points : 23
    Points
    23
    Par défaut
    Ouh mais on est bien d'accord d'où ma question de base.
    Parce que là je pallie à un pb sans y répondre, c'est vraiment pas top.

    Mais j'aimerai bien comprendre déjà pourquoi ce phénomène existe

  13. #13
    Expert éminent sénior
    Avatar de orafrance
    Profil pro
    Inscrit en
    Janvier 2004
    Messages
    15 967
    Détails du profil
    Informations personnelles :
    Âge : 47
    Localisation : France

    Informations forums :
    Inscription : Janvier 2004
    Messages : 15 967
    Points : 19 075
    Points
    19 075
    Par défaut
    Essaye de voir si tu n'as pas de grosses différences d'organisation de l'index (nb de valeurs distinctes, nombres de pages, etc...) entre le matin et le soir déjà... ça permettra d'affirmer ou infirmer l'hypothése d'une reconstruction à prévoir.

  14. #14
    Rédacteur

    Avatar de SQLpro
    Homme Profil pro
    Expert bases de données / SQL / MS SQL Server / Postgresql
    Inscrit en
    Mai 2002
    Messages
    21 849
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Var (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Expert bases de données / SQL / MS SQL Server / Postgresql
    Secteur : Conseil

    Informations forums :
    Inscription : Mai 2002
    Messages : 21 849
    Points : 52 968
    Points
    52 968
    Billets dans le blog
    6
    Par défaut
    Première chose : quel est la structure de la table colonnes, types de données, contraintes...) et quels sont les index ?
    Sans cela difficile de répondre à la chose.
    Ensuite combien de lignes en UPDATE, DELETE, INSERT chaque jour...

    A +

  15. #15
    Membre à l'essai
    Profil pro
    Inscrit en
    Octobre 2002
    Messages
    46
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2002
    Messages : 46
    Points : 23
    Points
    23
    Par défaut
    c'est bien la 1ère chose que j'ai regardé : en gros une centaine d'enregistrement dans la journée ( INSERT ) , au max...c'est à dire rien !
    les UPDATE je dirai 30

    Par contre énormément de requêtes ( SELECT ) toute la journée

  16. #16
    Expert éminent sénior
    Avatar de orafrance
    Profil pro
    Inscrit en
    Janvier 2004
    Messages
    15 967
    Détails du profil
    Informations personnelles :
    Âge : 47
    Localisation : France

    Informations forums :
    Inscription : Janvier 2004
    Messages : 15 967
    Points : 19 075
    Points
    19 075
    Par défaut
    et il y a combien de lignes dans la table parce que 30 updates c'est rien sauf si la table fait 40 lignes

  17. #17
    Membre à l'essai
    Profil pro
    Inscrit en
    Octobre 2002
    Messages
    46
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2002
    Messages : 46
    Points : 23
    Points
    23
    Par défaut
    non mais évidement

    sp_spaceused :

    TOTO 714338 399136 KB 285752 KB 112960 KB 424 KB
    TITI 683247 1055712 KB 780856 KB 274048 KB 808 KB

    715 000 lignes et 683 000 lignes....c'est à dire rien !
    sachant que le serveur c un quadcore, 4 disque à 10K tours et 4Go ram..bon faut pas déconner quoi

  18. #18
    Invité
    Invité(e)
    Par défaut
    Citation Envoyé par goofer Voir le message
    sachant que le serveur c un quadcore, 4 disque à 10K tours et 4Go ram..bon faut pas déconner quoi
    ça ne fait pas tout : une base mal foutue sera toujours peu performante même sur une mega bête de course avec 64 proc et 128 GB de RAM !

    Que donne la trace et l'nalyse des plans d'exécution... ?

  19. #19
    Rédacteur

    Avatar de SQLpro
    Homme Profil pro
    Expert bases de données / SQL / MS SQL Server / Postgresql
    Inscrit en
    Mai 2002
    Messages
    21 849
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Var (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Expert bases de données / SQL / MS SQL Server / Postgresql
    Secteur : Conseil

    Informations forums :
    Inscription : Mai 2002
    Messages : 21 849
    Points : 52 968
    Points
    52 968
    Billets dans le blog
    6
    Par défaut
    Donne le DDL des tables en jeu avec TOUT :
    colonnes, types, contrainte, index...

    A +

  20. #20
    Membre à l'essai
    Profil pro
    Inscrit en
    Octobre 2002
    Messages
    46
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2002
    Messages : 46
    Points : 23
    Points
    23
    Par défaut
    Ok voici ce que me donner la 1ère table :

    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
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    CREATE TABLE [dbo].[TOTO](
    	[MOUV_ID] [int] IDENTITY(1,1) NOT NULL,
    	[CE1] [char](1) NOT NULL,
    	[CE2] [char](1) NOT NULL,
    	[CE3] [char](1) NOT NULL,
    	[CE4] [char](1) NOT NULL,
    	[CE5] [char](1) NOT NULL,
    	[CE6] [char](1) NOT NULL,
    	[CE7] [char](1) NOT NULL,
    	[CE8] [char](1) NOT NULL,
    	[CE9] [char](1) NOT NULL,
    	[CEA] [char](1) NOT NULL,
    	[CEB] [char](1) NOT NULL,
    	[CEC] [char](1) NOT NULL,
    	[CED] [char](1) NOT NULL,
    	[CEE] [char](1) NOT NULL,
    	[CEF] [char](1) NOT NULL,
    	[DOS] [numeric](3, 0) NOT NULL,
    	[REF] [char](25) NOT NULL,
    	[SREF1] [char](8) NOT NULL,
    	[SREF2] [char](8) NOT NULL,
    	[TICOD] [char](1) NOT NULL,
    	[PICOD] [numeric](1, 0) NOT NULL,
    	[TIERS] [char](8) NOT NULL,
    	[DVNO] [numeric](8, 0) NOT NULL,
    	[DVDT] [datetime] NOT NULL,
    	[DVLG] [numeric](4, 0) NOT NULL,
    	[DVSLG] [numeric](2, 0) NOT NULL,
    	[DVCE4] [char](1) NOT NULL,
    	[CDNO] [numeric](8, 0) NOT NULL,
    	[CDDT] [datetime] NOT NULL,
    	[CDLG] [numeric](4, 0) NOT NULL,
    	[CDSLG] [numeric](2, 0) NOT NULL,
    	[CDCE4] [char](1) NOT NULL,
    	[CDENRNO] [numeric](9, 0) NOT NULL,
    	[BLNO] [numeric](8, 0) NOT NULL,
    	[BLDT] [datetime] NOT NULL,
    	[BLLG] [numeric](4, 0) NOT NULL,
    	[BLSLG] [numeric](2, 0) NOT NULL,
    	[BLCE4] [char](1) NOT NULL,
    	[FANO] [numeric](8, 0) NOT NULL,
    	[FADT] [datetime] NOT NULL,
    	[FALG] [numeric](4, 0) NOT NULL,
    	[FASLG] [numeric](2, 0) NOT NULL,
    	[FACE4] [char](1) NOT NULL,
    	[BPNO] [numeric](8, 0) NOT NULL,
    	[BPDT] [datetime] NOT NULL,
    	[OP] [char](3) NOT NULL,
    	[USERCR] [char](20) NOT NULL,
    	[USERMO] [char](20) NOT NULL,
    	[DEPO] [char](3) NOT NULL,
    	[ETB] [char](3) NOT NULL,
    	[PROJET] [char](8) NOT NULL,
    	[MARCHE] [char](8) NOT NULL,
    	[DES] [char](80) NOT NULL,
    	[REFFO] [char](25) NOT NULL,
    	[REPR_0001] [char](8) NOT NULL,
    	[REPR_0002] [char](8) NOT NULL,
    	[REPR_0003] [char](8) NOT NULL,
    	[ENRNO] [numeric](9, 0) NOT NULL,
    	[TACOD] [char](2) NOT NULL,
    	[REMCOD] [char](2) NOT NULL,
    	[TAFAMR] [char](8) NOT NULL,
    	[TAFAMRX] [char](8) NOT NULL,
    	[REFAMR] [char](8) NOT NULL,
    	[REFAMRX] [char](8) NOT NULL,
    	[COFAMR] [char](4) NOT NULL,
    	[COFAMV_0001] [char](4) NOT NULL,
    	[COFAMV_0002] [char](4) NOT NULL,
    	[COFAMV_0003] [char](4) NOT NULL,
    	[DEV] [char](4) NOT NULL,
    	[VENUN] [char](4) NOT NULL,
    	[REFUN] [char](4) NOT NULL,
    	[PUBUN] [char](4) NOT NULL,
    	[EMBUN] [char](4) NOT NULL,
    	[EDCOD] [char](5) NOT NULL,
    	[TXTEDCOD] [char](5) NOT NULL,
    	[PAGCOD] [char](2) NOT NULL,
    	[PRIOCOD] [numeric](1, 0) NOT NULL,
    	[AXE_0001] [char](8) NOT NULL,
    	[AXE_0002] [char](8) NOT NULL,
    	[AXE_0003] [char](8) NOT NULL,
    	[AXE_0004] [char](8) NOT NULL,
    	[CPTV] [char](8) NOT NULL,
    	[POSITION] [char](8) NOT NULL,
    	[SENS] [numeric](1, 0) NOT NULL,
    	[AVENANT] [char](8) NOT NULL,
    	[USERCRDH] [char](14) NOT NULL,
    	[USERMODH] [char](14) NOT NULL,
    	[CENOTE] [numeric](1, 0) NOT NULL,
    	[NOTE] [numeric](8, 0) NOT NULL,
    	[PUB] [numeric](12, 3) NOT NULL,
    	[PPAR] [numeric](4, 0) NOT NULL,
    	[REM_0001] [numeric](6, 2) NOT NULL,
    	[REM_0002] [numeric](6, 2) NOT NULL,
    	[REM_0003] [numeric](6, 2) NOT NULL,
    	[REMTYP_0001] [numeric](1, 0) NOT NULL,
    	[REMTYP_0002] [numeric](1, 0) NOT NULL,
    	[REMTYP_0003] [numeric](1, 0) NOT NULL,
    	[REMMT] [numeric](9, 2) NOT NULL,
    	[PROMOTYP] [numeric](1, 0) NOT NULL,
    	[PUSTAT] [numeric](17, 6) NOT NULL,
    	[QTE1] [numeric](12, 2) NOT NULL,
    	[QTE2] [numeric](12, 2) NOT NULL,
    	[QTE3] [numeric](12, 2) NOT NULL,
    	[DVQTE] [numeric](12, 2) NOT NULL,
    	[CDQTE] [numeric](12, 2) NOT NULL,
    	[BLQTE] [numeric](12, 2) NOT NULL,
    	[FAQTE] [numeric](12, 2) NOT NULL,
    	[REFQTE] [numeric](12, 2) NOT NULL,
    	[EMBQTE] [numeric](12, 2) NOT NULL,
    	[COMP_0001] [numeric](5, 2) NOT NULL,
    	[COMP_0002] [numeric](5, 2) NOT NULL,
    	[COMP_0003] [numeric](5, 2) NOT NULL,
    	[COMMT_0001] [numeric](9, 2) NOT NULL,
    	[COMMT_0002] [numeric](9, 2) NOT NULL,
    	[COMMT_0003] [numeric](9, 2) NOT NULL,
    	[MONT] [numeric](13, 2) NOT NULL,
    	[FRAISMT] [numeric](12, 2) NOT NULL,
    	[DECCOD] [numeric](1, 0) NOT NULL,
    	[PCOD_0001] [numeric](1, 0) NOT NULL,
    	[PCOD_0002] [numeric](1, 0) NOT NULL,
    	[PCOD_0003] [numeric](1, 0) NOT NULL,
    	[PCOD_0004] [numeric](1, 0) NOT NULL,
    	[PCOD_0005] [numeric](1, 0) NOT NULL,
    	[STATUS] [numeric](1, 0) NOT NULL,
    	[STRES] [numeric](1, 0) NOT NULL,
    	[FILLERSENS] [numeric](1, 0) NOT NULL,
    	[MVCOD] [numeric](1, 0) NOT NULL,
    	[PVCOD] [numeric](1, 0) NOT NULL,
    	[QTETYP] [numeric](1, 0) NOT NULL,
    	[GADT] [datetime] NOT NULL,
    	[CRTOTMT] [numeric](17, 6) NOT NULL,
    	[CMPTOTMT] [numeric](17, 6) NOT NULL,
    	[TXTCOD] [numeric](1, 0) NOT NULL,
    	[TXTNOTE] [numeric](8, 0) NOT NULL,
    	[ENRNOP_0001] [numeric](9, 0) NOT NULL,
    	[ENRNOP_0002] [numeric](9, 0) NOT NULL,
    	[ENRNOP_0003] [numeric](9, 0) NOT NULL,
    	[ENRNOP_0004] [numeric](9, 0) NOT NULL,
    	[ENRNOC_0001] [numeric](9, 0) NOT NULL,
    	[ENRNOC_0002] [numeric](9, 0) NOT NULL,
    	[ENRNOC_0003] [numeric](9, 0) NOT NULL,
    	[ENRNOC_0004] [numeric](9, 0) NOT NULL,
    	[REMPIEMT_0001] [numeric](12, 2) NOT NULL,
    	[REMPIEMT_0002] [numeric](12, 2) NOT NULL,
    	[REMPIEMT_0003] [numeric](12, 2) NOT NULL,
    	[REMPIEMT_0004] [numeric](12, 2) NOT NULL,
    	[MVSTAT] [numeric](1, 0) NOT NULL,
    	[BLASENRNO] [numeric](9, 0) NOT NULL,
    	[REMPIEPART_0001] [numeric](12, 2) NOT NULL,
    	[REMPIEPART_0002] [numeric](12, 2) NOT NULL,
    	[REMPIEPART_0003] [numeric](12, 2) NOT NULL,
    	[REMPIEPART_0004] [numeric](12, 2) NOT NULL
    ) ON [PRIMARY]
    et TITI :

    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
     
    CREATE TABLE [dbo].[TITI](
    	[MVTL_ID] [int] IDENTITY(1,1) NOT NULL,
    	[CE1] [char](1) NOT NULL,
    	[CE2] [char](1) NOT NULL,
    	[CE3] [char](1) NOT NULL,
    	[CE4] [char](1) NOT NULL,
    	[CE5] [char](1) NOT NULL,
    	[CE6] [char](1) NOT NULL,
    	[CE7] [char](1) NOT NULL,
    	[CE8] [char](1) NOT NULL,
    	[CE9] [char](1) NOT NULL,
    	[CEA] [char](1) NOT NULL,
    	[DOS] [numeric](3, 0) NOT NULL,
    	[REF] [char](25) NOT NULL,
    	[SREF1] [char](8) NOT NULL,
    	[SREF2] [char](8) NOT NULL,
    	[TICOD] [char](1) NOT NULL,
    	[PICOD] [numeric](1, 0) NOT NULL,
    	[TIERS] [char](8) NOT NULL,
    	[OP] [char](3) NOT NULL,
    	[USERCR] [char](20) NOT NULL,
    	[USERMO] [char](20) NOT NULL,
    	[ENRNO] [numeric](9, 0) NOT NULL,
    	[LILG] [numeric](4, 0) NOT NULL,
    	[ETB] [char](3) NOT NULL,
    	[DEPO] [char](3) NOT NULL,
    	[LIEU] [char](12) NOT NULL,
    	[TICKETRES] [numeric](9, 0) NOT NULL,
    	[BLDT] [datetime] NOT NULL,
    	[DELDT] [datetime] NOT NULL,
    	[DELDEMDT] [datetime] NOT NULL,
    	[DELACCDT] [datetime] NOT NULL,
    	[DELREPDT] [datetime] NOT NULL,
    	[VTLNO] [numeric](9, 0) NOT NULL,
    	[VTLNA] [numeric](9, 0) NOT NULL,
    	[COLINO] [char](9) NOT NULL,
    	[SERIE] [char](20) NOT NULL,
    	[NST] [char](2) NOT NULL,
    	[STDT] [datetime] NOT NULL,
    	[SENS] [numeric](1, 0) NOT NULL,
    	[PINO] [numeric](8, 0) NOT NULL,
    	[BLASLIEU] [char](12) NOT NULL,
    	[CDVTLNO] [numeric](9, 0) NOT NULL,
    	[BLASVTLNO] [numeric](9, 0) NOT NULL,
    	[USERCRDH] [char](14) NOT NULL,
    	[USERMODH] [char](14) NOT NULL,
    	[CR] [numeric](17, 6) NOT NULL,
    	[CNCR] [numeric](3, 0) NOT NULL,
    	[CMP] [numeric](17, 6) NOT NULL,
    	[CRGAM] [numeric](17, 6) NOT NULL,
    	[QTE] [numeric](12, 2) NOT NULL,
    	[REFQTE] [numeric](12, 2) NOT NULL,
    	[STQTE] [numeric](12, 2) NOT NULL,
    	[RESQTE] [numeric](12, 2) NOT NULL,
    	[STRES] [numeric](1, 0) NOT NULL,
    	[STATUS] [numeric](1, 0) NOT NULL,
    	[OFRESCOD] [numeric](1, 0) NOT NULL
    ) ON [PRIMARY]
    Puis la 3ème :

    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
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
     
    CREATE TABLE [dbo].[TATA](
    	[ENT_ID] [int] IDENTITY(1,1) NOT NULL,
    	[CE1] [char](1) NOT NULL,
    	[CE2] [char](1) NOT NULL,
    	[CE3] [char](1) NOT NULL,
    	[CE4] [char](1) NOT NULL,
    	[CE5] [char](1) NOT NULL,
    	[CE6] [char](1) NOT NULL,
    	[CE7] [char](1) NOT NULL,
    	[CE8] [char](1) NOT NULL,
    	[CE9] [char](1) NOT NULL,
    	[CEA] [char](1) NOT NULL,
    	[CEB] [char](1) NOT NULL,
    	[CEC] [char](1) NOT NULL,
    	[CED] [char](1) NOT NULL,
    	[CEE] [char](1) NOT NULL,
    	[CEF] [char](1) NOT NULL,
    	[DOS] [numeric](3, 0) NOT NULL,
    	[TICOD] [char](1) NOT NULL,
    	[PICOD] [numeric](1, 0) NOT NULL,
    	[TIERS] [char](8) NOT NULL,
    	[PINO] [numeric](8, 0) NOT NULL,
    	[PIDT] [datetime] NOT NULL,
    	[ETB] [char](3) NOT NULL,
    	[STATUS] [numeric](1, 0) NOT NULL,
    	[DEV] [char](4) NOT NULL,
    	[OP] [char](3) NOT NULL,
    	[USERCR] [char](20) NOT NULL,
    	[USERMO] [char](20) NOT NULL,
    	[REPR_0001] [char](8) NOT NULL,
    	[REPR_0002] [char](8) NOT NULL,
    	[REPR_0003] [char](8) NOT NULL,
    	[RIBCOD] [char](8) NOT NULL,
    	[MARCHE] [char](8) NOT NULL,
    	[PROJET] [char](8) NOT NULL,
    	[DEPO] [char](3) NOT NULL,
    	[ADRTIERS_0001] [char](8) NOT NULL,
    	[ADRTIERS_0002] [char](8) NOT NULL,
    	[ADRTIERS_0003] [char](8) NOT NULL,
    	[ADRTIERS_0004] [char](8) NOT NULL,
    	[ADRTIERS_0005] [char](8) NOT NULL,
    	[ADRCOD_0001] [char](8) NOT NULL,
    	[ADRCOD_0002] [char](8) NOT NULL,
    	[ADRCOD_0003] [char](8) NOT NULL,
    	[ADRCOD_0004] [char](8) NOT NULL,
    	[ADRCOD_0005] [char](8) NOT NULL,
    	[BLMOD] [char](4) NOT NULL,
    	[REGL] [char](4) NOT NULL,
    	[TOUR] [char](6) NOT NULL,
    	[PIREF] [char](40) NOT NULL,
    	[PINOTIERS] [char](15) NOT NULL,
    	[TIERSPAYER] [char](8) NOT NULL,
    	[TIERSGRP] [char](8) NOT NULL,
    	[TIERSRLV] [char](8) NOT NULL,
    	[BAPSALCOD] [char](20) NOT NULL,
    	[SALCOD] [char](20) NOT NULL,
    	[RLVNO] [numeric](8, 0) NOT NULL,
    	[RLVDT] [datetime] NOT NULL,
    	[DELDEMDT] [datetime] NOT NULL,
    	[DELACCDT] [datetime] NOT NULL,
    	[DELREPDT] [datetime] NOT NULL,
    	[ECHDT] [datetime] NOT NULL,
    	[TAFAM] [char](8) NOT NULL,
    	[TAFAMX] [char](8) NOT NULL,
    	[REFAM] [char](8) NOT NULL,
    	[REFAMX] [char](8) NOT NULL,
    	[TACOD] [char](2) NOT NULL,
    	[REMCOD] [char](2) NOT NULL,
    	[COFAM] [char](4) NOT NULL,
    	[COFAMV_0001] [char](4) NOT NULL,
    	[COFAMV_0002] [char](4) NOT NULL,
    	[COFAMV_0003] [char](4) NOT NULL,
    	[AXE_0001] [char](8) NOT NULL,
    	[AXE_0002] [char](8) NOT NULL,
    	[AXE_0003] [char](8) NOT NULL,
    	[AXE_0004] [char](8) NOT NULL,
    	[ETANO] [char](1) NOT NULL,
    	[TXTEDCODD] [char](5) NOT NULL,
    	[TXTEDCODF] [char](5) NOT NULL,
    	[CONTACT] [char](8) NOT NULL,
    	[BLASNO] [numeric](8, 0) NOT NULL,
    	[BLASDEPO] [char](3) NOT NULL,
    	[TVAT] [char](1) NOT NULL,
    	[TPFT] [char](1) NOT NULL,
    	[AVENANT] [char](8) NOT NULL,
    	[USERCRDH] [char](14) NOT NULL,
    	[USERMODH] [char](14) NOT NULL,
    	[CENOTE] [numeric](1, 0) NOT NULL,
    	[NOTE] [numeric](8, 0) NOT NULL,
    	[TXTCODD] [numeric](1, 0) NOT NULL,
    	[TXTCODF] [numeric](1, 0) NOT NULL,
    	[TXTNOTED] [numeric](8, 0) NOT NULL,
    	[TXTNOTEF] [numeric](8, 0) NOT NULL,
    	[ORIGINE] [numeric](2, 0) NOT NULL,
    	[HTMT] [numeric](13, 2) NOT NULL,
    	[TTCMT] [numeric](13, 2) NOT NULL,
    	[HTPDTMT] [numeric](13, 2) NOT NULL,
    	[ESCP] [numeric](5, 2) NOT NULL,
    	[ACMT] [numeric](12, 2) NOT NULL,
    	[SOACMT] [numeric](12, 2) NOT NULL,
    	[REMMT] [numeric](9, 2) NOT NULL,
    	[REM1] [numeric](6, 2) NOT NULL,
    	[REMTYP1] [numeric](1, 0) NOT NULL,
    	[FOUHTMT] [numeric](13, 2) NOT NULL,
    	[FOUESCMT] [numeric](13, 2) NOT NULL,
    	[FOUTVAMT] [numeric](13, 2) NOT NULL,
    	[DEVP] [numeric](17, 8) NOT NULL,
    	[PIEDNO_0001] [numeric](2, 0) NOT NULL,
    	[PIEDNO_0002] [numeric](2, 0) NOT NULL,
    	[PIEDNO_0003] [numeric](2, 0) NOT NULL,
    	[PIEDMT_0001] [numeric](12, 2) NOT NULL,
    	[PIEDMT_0002] [numeric](12, 2) NOT NULL,
    	[PIEDMT_0003] [numeric](12, 2) NOT NULL,
    	[NBEX] [numeric](1, 0) NOT NULL,
    	[PIRELCOD] [numeric](1, 0) NOT NULL,
    	[RELCOD] [numeric](1, 0) NOT NULL,
    	[EDITCOD] [numeric](1, 0) NOT NULL,
    	[TRCOD] [numeric](1, 0) NOT NULL,
    	[BOREDICOD] [numeric](1, 0) NOT NULL,
    	[ASCOD] [numeric](1, 0) NOT NULL,
    	[ECHVCOD] [numeric](1, 0) NOT NULL,
    	[ENCASSCOD] [numeric](1, 0) NOT NULL,
    	[ADRTYP_0001] [numeric](1, 0) NOT NULL,
    	[ADRTYP_0002] [numeric](1, 0) NOT NULL,
    	[ADRTYP_0003] [numeric](1, 0) NOT NULL,
    	[ADRTYP_0004] [numeric](1, 0) NOT NULL,
    	[ADRTYP_0005] [numeric](1, 0) NOT NULL,
    	[PRIOCOD] [numeric](1, 0) NOT NULL,
    	[HTCOD] [numeric](1, 0) NOT NULL,
    	[STRES] [numeric](1, 0) NOT NULL,
    	[FAMOD] [numeric](1, 0) NOT NULL,
    	[PERIOD] [numeric](1, 0) NOT NULL,
    	[PORCOD] [numeric](1, 0) NOT NULL,
    	[POICOD] [numeric](1, 0) NOT NULL,
    	[VOLCOD] [numeric](1, 0) NOT NULL,
    	[PORFRFL] [numeric](1, 0) NOT NULL,
    	[POITOT] [numeric](12, 3) NOT NULL,
    	[VOLTOT] [numeric](12, 3) NOT NULL,
    	[COLINB] [numeric](4, 0) NOT NULL,
    	[REFNB] [numeric](8, 0) NOT NULL,
    	[TOURRG] [numeric](4, 0) NOT NULL,
    	[REM_0001] [numeric](6, 2) NOT NULL,
    	[REM_0002] [numeric](6, 2) NOT NULL,
    	[REM_0003] [numeric](6, 2) NOT NULL,
    	[REMTYP_0001] [numeric](1, 0) NOT NULL,
    	[REMTYP_0002] [numeric](1, 0) NOT NULL,
    	[REMTYP_0003] [numeric](1, 0) NOT NULL,
    	[COMP_0001] [numeric](5, 2) NOT NULL,
    	[COMP_0002] [numeric](5, 2) NOT NULL,
    	[COMP_0003] [numeric](5, 2) NOT NULL,
    	[PORTHEOMT] [numeric](12, 2) NOT NULL,
    	[REMPIETOT] [numeric](12, 2) NOT NULL,
    	[TRANSJRNB] [numeric](3, 0) NOT NULL,
    	[OFASCOD] [numeric](1, 0) NOT NULL,
    	[FINAL] [numeric](1, 0) NOT NULL,
    	[QUACOD] [numeric](1, 0) NOT NULL,
    	[CEJOINT] [numeric](1, 0) NOT NULL,
    	[JOINT] [numeric](8, 0) NOT NULL
    ) ON [PRIMARY]

    Je flood pas là ça va ?


    En ce qui concerne la trace c'est compliqué le logiciel étant propriétaire j'ai du mal à isoler les requêtes qu'ils fait ( en plus il imbrique des procédures stockées et des trigger donc compliqués à voir )

Discussions similaires

  1. Les extensions se désactivent toutes seules ;-p
    Par ultimatom999 dans le forum Google Chrome
    Réponses: 0
    Dernier message: 18/07/2012, 11h34
  2. les listes qui déroulent toute seule
    Par zooffy dans le forum ASP.NET
    Réponses: 4
    Dernier message: 09/06/2008, 11h34
  3. Réponses: 5
    Dernier message: 21/05/2008, 08h38
  4. [Meta] Index seulement ou toutes les pages ?
    Par Strix dans le forum Référencement
    Réponses: 5
    Dernier message: 29/05/2007, 10h18
  5. Réponses: 1
    Dernier message: 04/04/2007, 13h43

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