Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Go Back   Foros Club Delphi > Bases de datos > MS SQL Server
Register FAQ Members List Calendar Guía de estilo Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 16/12/2005
Oxa78 Oxa78 is offline
Miembro
 
Join Date: May 2003
Location: Lima - Peru
Posts: 110
Poder: 24
Oxa78 Va por buen camino
Primary Key - SQL Server

Saludos :

Parece q estyo sin rumbo, tengo un sistema con Delphi 7 + MS SQl Server 2000 y bueno tengo una tabla de mivimientos :

* Tabla de Movimientos tiene un Número de Registro Unico (ID), este número unico lo encuentro con una consulta SQL buscando el máximo luego le sumo 1 y tengo el nuevo id, incluyo esta consulta en una trnasacción para asegurar q el id no se repita.

Esta tabla tiene un índice q es el ID pero que no es Primary Key.

PREGUNTA : ¿ Que tan importante es señalar el campo como Primary Key ?

Si solo creo un índice, ¿ Esta bien ?

¿ Tendre problemas en las grabaciones masivas con "ApplyUpdates" sino no tengo Primary Key en la tabla ?

¿ Que me recomiendan ?

Muchas Gracias por adelantado....
__________________
Joseph Buttgembach Verde
Lima - Perú
Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +2. The time now is 03:28.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi