Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
flodpanter
Starting Member
3 Posts |
Posted - 2006-02-03 : 07:00:25
|
| SELECT * FROM OPENQUERY(BRONNUM, 'SELECT top 5 Varenummer,KategoriID,VisNr,AutoID from dbo.Vare_online ') works fine in query analyzer. In SP it doesnt. When i click apply on creation of the SP, I get Error 7405.So I tried this:CREATE PROCEDURE [dbo].[sp_test] ASSET ANSI_NULLS ONSET ANSI_WARNINGS ONGOSELECT *FROM OPENQUERY(BRONNUM, 'SELECT top 5 Varenummer,KategoriID,VisNr,AutoID from dbo.Vare_online ') SET ANSI_NULLS OFFSET ANSI_WARNINGS OFFGOI still get Error 7405 though. I have searched the web, but no luck so far. What do I do? |
|
|
shallu1_gupta
Constraint Violating Yak Guru
394 Posts |
Posted - 2006-02-03 : 07:10:36
|
| Move the ANSI nulls and warnig out of create procedureSET ANSI_NULLS ONSET ANSI_WARNINGS ONGOCREATE PROCEDURE [dbo].[sp_test] ASSELECT *FROM OPENQUERY(BRONNUM, 'SELECT top 5 Varenummer,KategoriID,VisNr,AutoID from dbo.Vare_online ') GOSET ANSI_NULLS OFFSET ANSI_WARNINGS OFFGO |
 |
|
|
|
|
|
|
|