El primero es este :
Desde el mismo sql no ya desde asp me pasa esto :
Si escribo esto :
SELECT tblCategory.Cat_name, tblCategory.Cat_ID FROM tblCategory ORDER BY
tblCategory.Cat_order ASC
me muestra todos los datos correctamente.
Entonces creo esto :
CREATE PROCEDURE [dbo].[wwfSpCategoryAll] AS SELECT tblCategory.Cat_name,
tblCategory.Cat_ID FROM tblCategory ORDER BY tblCategory.Cat_order ASC;
GO
Y ejecuto esto :
execute wwfSpCategoryAll
Y siempre me muestra nada, tanto desde sql como desde asp.
¿Sabeis que puede ser?, en local me funcionaba todo perfectamente ha sido al
subirlo al sql.
¿Alguna idea?.
El segundo es este :
Tengo esto :
strSQL = "SELECT TOP 1 " & strDbTable & "PMMessage.* FROM " & strDbTable & "PMMessage WHERE " & strDbTable & "PMMessage.Author_ID = " & lngToUserID & " ORDER BY " & strDbTable & "PMMessage.PM_Message_Date DESC;"
With rsCommon
.CursorType = 2
.LockType = 3
.Open strSQL, adoCon
.AddNew
Entonces me peta en el addnew y me pone esto :
Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype.
He probado a ponerlo 3 , 3 quitarlo ... etc etc y siempre me da los mismos resultados.
¿Que puede ser?.
Gracias anticipadas. Un saludo.