# Solución Indices Tabla Referencias DMS

**Dms - ERROR INDICE CREACION REFERENCIAS MOD 1901 – 2003**

![](/files/RrsewGGMaCQtrNowFfCj)

Solución:

Se consulta la última referencia para identificar id

select top 1 convert(int, id + 1) i, \*

from andar.dbo.referencias

order by id desc

!\[Interfaz de usuario gráfica, Texto, Aplicación

Descripción generada automáticamente]\(/files/mCPyUu02nS9Q5IYfxOej)

Se ejecuta la siguiente instrucción:

\--- DBCC CHECKIDENT ('mi\_tabla', RESEED,0)

use Andar

go

DBCC CHECKIDENT('referencias', RESEED,2147438209)

Se coloca id de la primera consulta


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://desarrollo-ti.gitbook.io/enlaces-ti/dms/solucion-indices-tabla-referencias-dms.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
