---
title: "fel i sp, import från access-databas"
type: "forum-thread"
url: "https://www.webforum.nu/amne/webbutveckling/102168-fel-i-sp-import-från-access-databas"
topic: "Webbutveckling"
topic_url: "https://www.webforum.nu/amne/webbutveckling"
author: "doggelito"
published: "2004-04-23T08:33:46.000Z"
updated: "2004-04-23T08:33:46.000Z"
replies: 0
views: 171
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/webbutveckling/102168-fel-i-sp-import-från-access-databas"
---

# fel i sp, import från access-databas

## #1 — doggelito, 2004-04-23T08:33Z

denna kod funkar i query analyzer men jag får inte spara den som en sp, varför?
får felmess: Error 7405: heterogeneous queries required the ansi_nulls and ansi_warnings option to be set for the connection....

```

Delete From tblProducts

Insert Into tblProducts (Supplierid, Suppliername, Articleid, Productname, Notes, Price)
(SELECT Supplierid, Suppliername, Articleid, Productname, Cast(Notes as varchar(2000)), Price FROM
OPENROWSET('Microsoft.Jet.OLEDB.4.0','d:\db\products.mdb';'admin';'',[tblProducts]))
```

Permalänk: https://www.webforum.nu/p/102168

---

Tråden på webben: https://www.webforum.nu/amne/webbutveckling/102168-fel-i-sp-import-från-access-databas
