view: SET ansi_Nulls y ansi_warnnings

08/03/2005 - 22:08 por kirck | Informe spam
tengo una vista de una tabla access:

CREATE VIEW dbo.vw_AcEmbarques
AS
SELECT IdTableEmbarque, IdEmbarque
FROM OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0','Password=;User ID=; Data
Source=C:\BDFruta\bdfruta.mdb; Jet OLEDB:Engine Type=5;')...[Embarques]

y un procedimiento almacenado que lo llama da el siguiente error:



Error: Las consultas heterogéneas requieren que se establezcan las opciones
ANSI_NULLS y ANSI_WARNINGS de la conexión. Así se asegura una semántica de
consulta coherente. Active estas opciones y ejecute de nuevo la
consulta.(42000,7405) Procedure(vw_AcEmbarques), Batch 1 Line 3

Preguntas similare

Leer las respuestas

#1 Alejandro Mesa
08/03/2005 - 22:23 | Informe spam
kirck,

En Query Analyzer, localiza el procedimiento y editalo. Como esta seteado
ANSI_NULLS?


AMB


"kirck" wrote:

Mostrar la cita
#2 kirck
09/03/2005 - 14:10 | Informe spam
El problema es que uso el MSDE y el DBArtisan para ejecutar instrucciones
SQL
¿como puedo realizarlo en una sola instruccion SQL?



"Alejandro Mesa" escribió en el
mensaje news:
Mostrar la cita
#3 Alejandro Mesa
09/03/2005 - 16:53 | Informe spam
Trata,

SET QUOTED_IDENTIFIER OFF
GO

SET ANSI_NULLS ON
GO

alter procedure nombre_del_procedimiento
as
...
GO

SET QUOTED_IDENTIFIER OFF
GO

SET ANSI_NULLS ON
GO


AMB


"kirck" wrote:

Mostrar la cita
Ads by Google
Search Busqueda sugerida