---
title: "SQL Express"
type: "forum-thread"
url: "https://www.webforum.nu/amne/webbutveckling/114071-sql-express"
topic: "Webbutveckling"
topic_url: "https://www.webforum.nu/amne/webbutveckling"
author: "mlt"
published: "2004-10-21T11:57:39.000Z"
updated: "2004-10-21T11:57:39.000Z"
replies: 0
views: 215
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/114071-sql-express"
---

# SQL Express

## #1 — mlt, 2004-10-21T11:57Z

Hej!
Har problem att koppla mitt vb-script till databas i sql server express. 

Två förslag är: 

oCon.Provider "sqloledb"
sCon= "server=localhost\\SQLExpress; database=USOurce"
oCon.Open sCon

eller
	
oCon.ConnectionString= "DRIVER= {SQL Native Client}provider=SQLOLEDB;server=localhost\\SQLExpress"
oCon.Open

Tyvärr fungerar ingen av dem, får följande felmeddelande:
Det går inte att använda anslutningen för den här åtgärden. Den är stängd eller ogiltig i det här sammanhanget.server=intpc21\\SQLExpress; database=USOurce

Har någon ett förslag på vad jag ska göra? Protokollen tcp/ip och np finns tillgänglig...

//M

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

---

Tråden på webben: https://www.webforum.nu/amne/webbutveckling/114071-sql-express
