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.

ASP.NET Forum


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



Reply
Question about DB Connections
Old 03-24-2005, 01:18 AM Question about DB Connections
Novice Talker

Posts: 11
Trades: 0
I need some help with database connections.

Here's the situation. I made some aspx pages that that use an OleDb Connection to call up an Access database and create DataSets, DataTables, etc. This works great on my WinXP machine.

I just uploaded my pages and database to my hosted server and it doesn't work, just hangs there without error. Tech support says they don't support DSN-less connections, they made a DSN on the server for me and told me to use ADODB.Connection to connect to it.

Now, I'm pretty new to ASP and Web Databases, but isn't ADODB.Connection for ADO/ASP and not ADO.NET/ASP.NET? ADO uses Recordsets, not Datasets so I'd have to completely rewrite everything.

Is there any way to connect to this database using the DSN or otherwise so that I don't have to rewrite everything? Is my host wrong for not supporting the OleDb Connection or is that pretty normal?

Thanks
-Tom
bowfonz is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-24-2005, 06:26 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
You're right, ADODB.Connection is for ADO/ASP. You won't have to completely re-write everything, but I think you may have to switch to the ODBC Classes though. Not totally sure... I use OleDb with a DSNless connection.

I'm surprised they only support DSNs and not DSNless, most hosts I've come across only did it the other way round. Have you tried it DSNless anyway to see what happens?
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 03-29-2005, 03:47 AM hi
Average Talker

Posts: 29
Trades: 0
if you want to use dns in aspx. you should provide previlage to dsn to use on remote web server.
regards,
rakesh.
http://www.logixsoln.com

Last edited by chetanrakesh; 03-29-2005 at 03:49 AM.. Reason: hi
chetanrakesh is offline
Reply With Quote
View Public Profile Visit chetanrakesh's homepage!
 
Old 03-29-2005, 04:03 AM
dk01's Avatar
Ultra Talker

Posts: 373
Location: Ames, IA
Trades: 0
There is an OleDb method of connecting in C# but some hosts have it disabled because its pretty intense on memory and its not the best for security. Looks like with them there is no other way to connect but to use ADODB.

-dk
__________________
Did I help you? If so, be nice and throw me some
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
dk01 is offline
Reply With Quote
View Public Profile
 
Old 04-12-2005, 10:43 AM
Junior Talker

Posts: 1
Trades: 0
Im also having problems with my sql connection.. my host server is located somewhere else and Im connecting to it using a control panel provided by the web hosting company.. Here are the connection strings I used..

1.)
var MM_Applicant_STRING = "dsn=mssql_555.dsn;uid=username;pwd=password;"

2.)
MM_Applicant_STRING = "Driver={SQL SERVER};SERVER=' & db_server & ';DATABASE=' & db_server & '; UID=' & db_username & '; PWD=' & db_password &'"

3.) strCnn = "Provider=SQLOLEDB.1; User ID=user; password=password; Initial Catalog='DB_5133'; Data Source=DataSourcce; Use Procedure for Prepare=1; Auto Translate=True; Packet Size=4096"

what seems to be wrong with my syntax?
darkangel is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Question about DB Connections
 

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.22414 seconds with 12 queries