navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Connecting to my MS-SQL Database

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Connecting to my MS-SQL Database
Page: [1]
 
yisraelharris

 

Posts: 7
Joined: 1/3/2004
Status: offline

 
Connecting to my MS-SQL Database - 2/25/2004 12:19:06   
I have built MS-Access-based websites, and have had no problem establishing a connection to them. Here is typical code:

myConnection = Server.CreateObject("ADODB.Connection")
connectionString = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="Server.MapPath("company.mdb")
myConnection.Open(connectionString)

However, I am currently working on an MS-SQL-based website, and am unable to achieve the connection. I've been using different variations of this (with and without the single quotes, etc.):

myConnection = Server.CreateObject("ADODB.Connection")
connectionString="DRIVER={SQLServer};SERVER='mssql2.myserver.com';UID='mylogin';PWD='d3fbc3';DATABASE='company.mdb'"
myConnection.Open(connectionString)

I get this error message:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

/test.asp, line 6

I do not know what needs to be done. I would be grateful for assistance.

Thank you.
Doug G

 

Posts: 1189
Joined: 12/29/2001
From: SoCal
Status: offline

 
RE: Connecting to my MS-SQL Database - 2/25/2004 17:19:21   
Here is a great spot for connection string help

http://www.able-consulting.com/ADO_Conn.htm

_____________________________

======
Doug G
======

(in reply to yisraelharris)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Connecting to my MS-SQL Database
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts