---
title: "Ofta fel vid Connection.Execute(SQLStmt)"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/7381-ofta-fel-vid-connection-execute-sqlstmt"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "anhel96"
published: "2000-12-10T17:29:00.000Z"
updated: "2000-12-10T18:14:00.000Z"
replies: 2
views: 309
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/asp/7381-ofta-fel-vid-connection-execute-sqlstmt"
---

# Ofta fel vid Connection.Execute(SQLStmt)

## #1 — anhel96, 2000-12-10T17:29Z

Jag får ofta fel vid Connection.Execute(SQLStmt) som t.ex.
Set RS = Connection.Execute(SQLStmt)
Felmeddelandet lyder:
"Microsoft OLE DB Provider for ODBC Drivers fel '80004005' 
\[Microsoft\]\[Drivrutin för ODBC Microsoft Access\] Ogiltig kopplingssekvens som inte kan hanteras av operativsystemet."
Vad är fel??

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

## #2 — PatrikB, 2000-12-10T18:04Z

Hello,
hur ser SQLStmt ut?

cya,

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

## #3 — anhel96, 2000-12-10T18:14Z

Här kommer hela "stycket":

Set Connection = Server.CreateObject("ADODB.Connection")
Connection.Open "driver={Microsoft Access Driver(\*.mdb)};dbq=c:\\inetpub\\wwwroot\\data\\login.mdb"
SQLStmt = "SELECT \* FROM Login Where Login = '" & FixaTecken(Request.Form("Login")) & "' AND Password = '" & FixaTecken(Request.Form("Password")) & "'"
Set RS = Connection.Execute(SQLStmt)

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

---

Tråden på webben: https://www.webforum.nu/amne/asp/7381-ofta-fel-vid-connection-execute-sqlstmt
