Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



Reply
Connecting to SQL database via Dreamweaver
Old 05-06-2008, 03:10 PM Re: Connecting to SQL database via Dreamweaver
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
It sounds like IIS isn't configured correctly, but it's hard to say.

Have you set up either a virtual path or a web site, and pointed it to the folder with your code?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-06-2008, 04:08 PM Re: Connecting to SQL database via Dreamweaver
Burnsie's Avatar
Skilled Talker

Posts: 81
Trades: 0
Hi
Sorry you’ve lost me.
There is no database in the localhost folder. The database for the Dreamweaver tutorial is located at:
C:\Program Files\Macromedia\Dreamweaver 8\Tutorial_assets\cafe_townsend\data\tutorial.mdb
That’s what the Dreamweaver tutorial gives as the data source for the connection string.
I guess the sql databases are somewhere within SQL Server!

I have set up the Dreamweaver tutorial to the letter. i have set up a tiny test site to connect to the pubs\Northwind databases but still no database connection!
cheers
Burnsie
Burnsie is offline
Reply With Quote
View Public Profile
 
Old 05-06-2008, 06:11 PM Re: Connecting to SQL database via Dreamweaver
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
A database exposed by SQL Server doesn't exist as a file system entity. The actual data is persisted in 2 or more files which should as a best practice be kept on different drives.

See page 1 of this thread for connection strings, including examples for how to connect to SQL Server.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 05-07-2008, 04:36 PM Re: Connecting to SQL database via Dreamweaver
Burnsie's Avatar
Skilled Talker

Posts: 81
Trades: 0
That will send us round on a perpetual loop!
Burnsie is offline
Reply With Quote
View Public Profile
 
Old 05-07-2008, 09:56 PM Re: Connecting to SQL database via Dreamweaver
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
What exact connection string are you using trying to reach your database?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 05-08-2008, 04:47 PM Re: Connecting to SQL database via Dreamweaver
Burnsie's Avatar
Skilled Talker

Posts: 81
Trades: 0
The connection string I am using to connect to the Access database that accompanies the dreamweaver tutorial reads:

"Provider=Microsoft.Jet.OLEDB.4.0;
DataSource=C:\ProgramFiles\Macromedia\Dreamweaver8 \Tutorial_assets\cafe_townsend\data\tutorial.mdb"

(although the tutorial gives the incorrect path to the database as:
C:\Program Files\Macromedia\Dreamweaver 8\Tutorial_assets\data\tutorial.mdb)

The connection string I am using to connect to the SQL Server sample databases reads:

"Data Source==serverName\SQLEXPRESS;
Initial Catalog=pubs;
Integrated_Security=SSPI"


Also I have tried any variations I could reasonably conceive.
Burnsie is offline
Reply With Quote
View Public Profile
 
Old 05-08-2008, 06:42 PM Re: Connecting to SQL database via Dreamweaver
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
There are 2 things wrong with your SQL connect string.

You can't use ==. I'm not sure if that's a typo, but if it's copy and paste, fix that.

Why are you trying to connect to a named instance? Is it really server\SQLEXPRESS? Are you sure? Have you tried only using the server name? What do you enter for a server when you're able to connect using SQL Server Management Studio?




Under server name, in this dialog, do you put \SQLEXPRESS at the end? Did you install it as a non default named instance?

I think this is why you can't connect. You're asking for something that probably isn't there?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 05-09-2008, 09:22 AM Re: Connecting to SQL database via Dreamweaver
Burnsie's Avatar
Skilled Talker

Posts: 81
Trades: 0
Hi
Yes the double ‘=’ was a typo.
Let’s call my server BOB. The server name given by SQL Server Management Studio reads: BOB\SQLEXPRESS.
There is a drop-down the reads: Browse for more…, but there are no more listed.
I’m not entirely sure what a non default named instance is, this is just what SQL Server Management Studio presents to me (with Windows Authentication). I have downloaded it and this is what it gives me (by default I guess). There is a greyed out User name and an empty greyed out password.
As I say I have tried every conceivable variation on a theme I can think of (and them some) but to no avail.
Also as I can not connect to the Access database that actually comes with dreamweaver via the connection string that dreamweaver gives I am beginning to suspect that there is something else going on.

When testing the connection to either the SQL databases or the Access database I get the following error message:
1) There is no testing server running on the server machine
2) The testing server specified for this site does not map to the
ttp://Localhost/RootFolder/_mmServerScripts/MMHTTPDB.asp URL, Verify that the URL Prefix maps to the root of the site.
However, I’m not sure why this includes the mmServerScripts folder in the path. The MMHTTPDB.asp file does exist within the folder. Could this have anything to do with my inability to connect to either database?
Burnsie is offline
Reply With Quote
View Public Profile
 
Old 05-09-2008, 01:53 PM Re: Connecting to SQL database via Dreamweaver
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
It sounds like. When you use SQL Server Management Studio (from now on we'll call it SSMS for short) does it let you in? Does it take you to a tabbed set up where you can type in and run queries? That will verify that you really want BOB\SQLEXPRESS and not just BOB.

Should the path be LocalHost/RootFolder/The_Rest, or do you want RootFolder in there at all?

Have you set up a virtual folder in IIS? LocalHost gets mapped to your computer as the (web) server, and then from there, you would have a virtual folder called RootFolder. It doesn't need to be called that on disc, that's why it's virtual. It can point anywhere, but gets exposed as a web site.

Creating a virtual directory



Configuring a virtual directory


And here's a table of contents for articles about it.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 05-12-2008, 03:31 AM Re: Connecting to SQL database via Dreamweaver
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,528
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
"Provider=Microsoft.Jet.OLEDB.4.0;
DataSource=C:\ProgramFiles\Macromedia\Dreamweaver8 \Tutorial_assets\cafe_townsend\data\tutorial.mdb"

(although the tutorial gives the incorrect path to the database as:
C:\Program Files\Macromedia\Dreamweaver 8\Tutorial_assets\data\tutorial.mdb)
Unless you have done some MAJOR editing to your windows installation, the path you are using is going to be wrong. On a standard Windows install of DW, there would be spaces in "Program Files" and "Dreamweaver 8".
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-14-2008, 04:05 PM Re: Connecting to SQL database via Dreamweaver
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
So is this resolved?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 05-18-2008, 08:04 PM Re: Connecting to SQL database via Dreamweaver
Burnsie's Avatar
Skilled Talker

Posts: 81
Trades: 0
No...no it is not!
Burnsie is offline
Reply With Quote
View Public Profile
 
Old 10-21-2008, 03:37 PM Re: Connecting to SQL database via Dreamweaver
Junior Talker

Posts: 2
Name: Cheryl
Location: Ontario Canada
Trades: 0
As an avid Dreamweaver user, I am too familiar with these issues. It has nothing to do with your database or your connections string but may have to do with how the planets are aligned

Error 1: ”an unidentified error has occurred”
You need to do the following
  1. Remove your connections scripts
    In Dreamweaver 8 this is accomplished by accessing
    Site/Advanced/Remove Connection Scripts
  2. Now in the Application Panel, Databases Tab Double Click on your Connection itself. In the window that pops up click Test. This will re-write your connection scripts.
  3. Which may lead you to....
Error 2: There is no testing server running on the server machine
2) The testing server specified for this site does not map to the
xxxxxxxxxxx URL, Verify that the URL Prefix maps to the root of the site.

You need to define an extra setting in your site manager. Go to Site/Manage Sites and Edit the settings for this site.
In both the Remote Info and Testing Server tabs enter the name of your host directory. For my sites that is usually "public/" without the quotes.
And ta-da. No more lost days hunting obscure sql code that does not fix this annoying glitch.

And yes Virginia this really does happen on sites that were working perfectly yesterday.

I sure hope this helps someone else avoid this headache!
Clicktostart is offline
Reply With Quote
View Public Profile Visit Clicktostart's homepage!
 
Reply     « Reply to Connecting to SQL database via Dreamweaver

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.42487 seconds with 11 queries