Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 01:05 PM
Gameface
Guest
 
Posts: n/a
Default ASP Dsn-less connection error

Can anybody figure out what I have done wrong with this file that is used to
connect the database -
http://i.1asphost.com/gavk/shop_laptop.asp

Kind Thanks


  #2  
Old July 19th, 2005, 01:05 PM
Steven Burn
Guest
 
Posts: n/a
Default Re: ASP Dsn-less connection error

Thats simple...... you've got a character out of place ;o)

The ; should be inside the quotes, not outside.

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Gameface" <mail@INVALID.mail.com.INVALID> wrote in message
news:40966b68$0$15745$cc9e4d1f@news.dial.pipex.com ...[color=blue]
> Can anybody figure out what I have done wrong with this file that is used[/color]
to[color=blue]
> connect the database -
> http://i.1asphost.com/gavk/shop_laptop.asp
>
> Kind Thanks
>
>[/color]


  #3  
Old July 19th, 2005, 01:05 PM
Ray at
Guest
 
Posts: n/a
Default Re: ASP Dsn-less connection error

Your problem isn't the connection. It's the fact that you have characters
after the end of your string value. It's the same as if you had a line of
code like this:

x = "something"kjaslkjfao;9sduf8asijdf

The kjaslkjfao;9sduf8asijdf characters cannot appear outside of the quotes
like that.

A few other things:
1. Don't use an ODBC connection. Use an OLEDB connection string for your
Access database by modeling your string around this sample from
www.connectionstrings.com
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;User
Id=admin;Password=;"

2. Get your database OUT OF THE WWW AREA OF YOUR SITE. I just downloaded
your database (and deleted it...). Anyone in the world can download it,
espeically now that you told the world where it is!

Ray at work


"Gameface" <mail@INVALID.mail.com.INVALID> wrote in message
news:40966b68$0$15745$cc9e4d1f@news.dial.pipex.com ...[color=blue]
> Can anybody figure out what I have done wrong with this file that is used[/color]
to[color=blue]
> connect the database -
> http://i.1asphost.com/gavk/shop_laptop.asp
>
> Kind Thanks
>
>[/color]


 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles