Forums

ASP

This topic is locked

web hosting questions

Posted 01 Oct 2005 20:29:37
1
has voted
01 Oct 2005 20:29:37 zoe z posted:
hi all, i'm going to upload my website for testing. do you know which free web hosting that supports asp that i should use?my website is database-driven, and i'm using system dsn for my database connection.i tried websamba,but when configuring the database connection, i always got error message that my database is not found and i should upload it first,which i already did. i also tried 1asphost,but my webpages couldn't be displayed 1asphost uses dsn-less connection. can i change my database connection from system database to dsn-less?if can,how to do it?should i rewrite them all in the codes?
thanx in advance.

Replies

Replied 02 Oct 2005 00:05:35
02 Oct 2005 00:05:35 Michael Behan replied:
Generally free hosting companies that support asp require using DSN-less connections. A dsn-less connection string is pretty straight forward.
What type of database are you using? If it's access the connection string would be like:

ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=[Path to database];"

this would replace your existing connection string which would be like this:

ConnectionString = "DSN=SystemDSN Name"

Reply to this topic