Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MS SQL Server
 DSN problems and setup.asp ??
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

jjsmit1
Starting Member

2 Posts

Posted - 03 November 2004 :  10:43:06  Show Profile
Hi,

New user to Snitz and first-time poster. I'm trying to get Snitz to work on Win2000 Server + MS SQL 2000 with a DSN connection. IIS and SQL are installed on the same box.

When I load setup.asp in my browser, it returns the error:
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

If I try using the OLEDB connection string, it works fine, but not with DSN. I have another website on this server that uses DSN--it works fine.

I found another post that talks about this problem: http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=5819

It works fine if I change the DSN line in config.asp so it reads:
strConnString = "DSN=mydsn;uid=myuser;pwd=mypwd;database=mydb"
But doesn't this defeat the purpose of using DSN in the first place?

Can someone help me understand why this doesn't work without putting the uid/pwd credentials in the DSN line? Isn't one of DSN's strengths that you don't have to hardcode username/password sets like this?

Edited by - ruirib on 03 November 2004 12:08:27

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 November 2004 :  12:08:13  Show Profile  Send ruirib a Yahoo! Message
I don't see your problem, just use the correct string. Personally I don't see the advantage of using a DSN to connect to any DB, but specially when dealing with a SQL DB. The OLEDB string is more robust and the forum runs faster when you use OLEDB strings.



Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

jjsmit1
Starting Member

2 Posts

Posted - 03 November 2004 :  12:24:23  Show Profile
quote:
Originally posted by ruirib

I don't see your problem, just use the correct string. Personally I don't see the advantage of using a DSN to connect to any DB, but specially when dealing with a SQL DB. The OLEDB string is more robust and the forum runs faster when you use OLEDB strings.


The advantage to using DSN (as I understood it) is that you do not need to put the uid/pwd credentials in plain text in the script. Or at least I thought that was a major reason for using DSN. I've likewise read that OLEDB is a better, faster connection (so I'll use it). *shrug* I guess it's just one of those things: I wanted to make it work because I was having problems getting it to work.

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 November 2004 :  12:30:20  Show Profile  Send ruirib a Yahoo! Message
I always use OLEDB in my own sites, the password in the script is not a big issue.


Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - ruirib on 03 November 2004 12:30:42
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07