Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 21st, 2006, 04:56 AM
widd_gama widd_gama is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Posts: 12 widd_gama User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 m 40 sec
Reputation Power: 0
An unidentifed error has occurred- trying to connect to SQL sever

Hi
I’m following this tutorial that shows how to build a poll using PHP and MySQL but the database application I’m using is SQL server 2005.
I’ve created the DB and the tables and everything, so basically the SQL part is done. Now comes the connection between Dreamweaver and SQL server and what the tutorial says:

- connect to database: The database panel click ‘+’ and select ‘MySQL’ in dialog box that opens complete the connection information for database server and the database connection for your website.

- create the recordset: to create the recordset click on the ‘+’ in the ‘Bindings’ panel and select ‘Recordset’ dialog will open. The recordset that we need to create will cross two tables however, so we will need to switch to the ‘Advanced Recordset’ dialog to do so.

- getting advanced: type the following into the SQL box:

SELECT tblQuestions.questionID, questionText, answerID, answerText
FROM tblQuestions, tblAnswers
WHERE tblQuestions.questionID = tblAnswers.answerID AND tblQuestions.questionID = 1
You will see the answers within questionID and questionText

- use recordset: your recordset should now appear in the ‘Bindings’ panel, expand it to see the fields. We can now place the question onto the page by dragging ‘ questionText’ from the ‘Bindings’ panel to the location on the page where we want to display it. A placeholder ‘rsPoll.questionText’ displays in the location.

I’ve followed al the steps but when I click in the ‘Bindings’ panel to expand it to see the fields of the tables it generates an error:
DataSources
An unidentifed error has occurred.


What’s the error how I can solve this problem?

Reply With Quote
  #2  
Old April 16th, 2007, 11:12 PM
shamrog12's Avatar
shamrog12 shamrog12 is offline
Newton's Apple Wizard
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 1,661 shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Weeks 2 Days 2 h 39 m 22 sec
Reputation Power: 34
Send a message via AIM to shamrog12
you might benefit more by visiting php.net, finding info on connecting to mssql databases, and just writing/copying the code yourself. Dreamweaver uses about 1200% more code than is needed to accomplish a simple task. Making changes to the code created in dreamweaver is nearly impossible.
Comments on this post
jmurrayhead agrees!
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.


Reply With Quote
  #3  
Old May 1st, 2007, 11:23 PM
icywave icywave is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Sep 2005
Location: Global Village
Posts: 691 icywave User rank is Sergeant Major (2000 - 5000 Reputation Level)icywave User rank is Sergeant Major (2000 - 5000 Reputation Level)icywave User rank is Sergeant Major (2000 - 5000 Reputation Level)icywave User rank is Sergeant Major (2000 - 5000 Reputation Level)icywave User rank is Sergeant Major (2000 - 5000 Reputation Level)icywave User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 4 Days 22 h 23 m 30 sec
Reputation Power: 31
Send a message via MSN to icywave
Try www.w3schools.com .

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > An unidentifed error has occurred- trying to connect to SQL sever


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway