www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  DB/Textworks    Creating a ASP page and linking to DBtextworks
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Posted
Hello,

I was wondering if it was possible to create a ASP webpage and connect it to the DBtextworks database??

Rich
 
Posts: 3 | Registered: Fri March 14 2008Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Rich:

This is in fact quite possible. I create most of my own web interfaces to DBtextworks via asp pages. You connect to the DB pretty much the same as you would with any other database. If there are any specific details that you are after or are having difficulties, please let me know.

Dave
 
Posts: 25 | Location: Brampton, Ontario, Canada | Registered: Wed November 01 2000Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Hey Dave,

Thank you for replying to my post.

So I was looking through Inmagics website, do I need to download an ODBC piece to make everything work??

Do you have any sample code of connecting to the database??

Again thank you for you help... really appreciate it!!

Rich
 
Posts: 3 | Registered: Fri March 14 2008Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Rich:

Yes, you will need to get the ODBC driver in order to connect with database.

Here's a sample of some of the code I've used:

  
Dim connectionToDatabase
Set connectionToDatabase = Server.CreateObject("ADODB.Connection")
connectionToDatabase.ConnectionString = "DSN=LibraryTextbases"
connectionToDatabase.Open

Dim sqlStatement
sqlStatement = "SELECT * FROM TEXTBASE WHERE ID = '"& ID &"'"

Set recordCollection = connectionToDatabase.Execute(sqlStatement)
 
Posts: 25 | Location: Brampton, Ontario, Canada | Registered: Wed November 01 2000Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  DB/Textworks    Creating a ASP page and linking to DBtextworks