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
 from scratch
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

jsphweid
Starting Member

7 Posts

Posted - 15 March 2006 :  23:33:01  Show Profile  Visit jsphweid's Homepage  Send jsphweid an AOL message
Ok,
Im using SQL Express edition (SSX). I created a database. It is stored where all database files are stored when first made...
D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\snitzdb.mdf
I edited config.asp accordingly. I got the strDBType, and here is what the connection strings look like:

strConnString = "Provider=SQLOLEDB;Data Source=directorserver.weidingerserver.local;database=D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\snitzdb.mdf;uid=Administrator;pwd=********;" '## MS SQL Server 6.x/7.x/2000 (OLEDB connection)

strConnString = "driver={SQL Server};server=directorserver.weidingerserver.local;uid=Administrator;pwd=********;database=D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\snitzdb.mdf" '## MS SQL Server 6.x/7.x/2000 (ODBC connection)

I use IIS. I created a Virtual Directory corresponding to the folder containing all of the files. My site is (Im on dialup for now, so it might kick off when I am sleeping, but it should come back on after a few seconds):
http://weidingerserver.selfip.com
http://weidingerserver.selfip.com/snitz/setup.asp
That is the error message I get.
Thanks
Joseph

Edited by - Gremlin on 16 March 2006 01:22:13

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 16 March 2006 :  01:18:44  Show Profile  Visit Gremlin's Homepage
Hi,

You don't put the path to the database file in the connection string when using SQL Server, that only applies to MS Access, you simply put the name of the database that you have created e.g. snitzdb into the connection string.

You also only need to set one connection string. I would recommend commenting back out the second one you've pasted in above and just use the Provider=SQLOLEDB one.

Your connection string should look something like this then

strConnString = "Provider=SQLOLEDB;Data Source=directorserver.weidingerserver.local;database=snitzdb;uid=Administrator;pwd=********;" '## MS SQL Server 6.x/7.x/2000 (OLEDB connection)

Note that I've masked the database password with ******** in case someone could use it to exploit your install, best to avoid posting passwords :).

Kiwihosting.Net - The Forum Hosting Specialists

Edited by - Gremlin on 16 March 2006 01:23:23
Go to Top of Page

jsphweid
Starting Member

7 Posts

Posted - 16 March 2006 :  07:28:47  Show Profile  Visit jsphweid's Homepage  Send jsphweid an AOL message
Thank you for your help.

I think it is getting closer, but I still got another error message (a different one I think).
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

Thanks,
Joseph
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 March 2006 :  07:49:35  Show Profile  Send ruirib a Yahoo! Message
That means that either the server is incorrectly identified, or the access data is wrong (username and/or password and/or DB).


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

jsphweid
Starting Member

7 Posts

Posted - 16 March 2006 :  08:10:48  Show Profile  Visit jsphweid's Homepage  Send jsphweid an AOL message
Well, my servername is directorserver (specifically directorserver.weidingerserver.local)and the password (I didn't realize at first) is my Administrator's password.

Thanks,
Joseph
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 March 2006 :  08:19:16  Show Profile  Send ruirib a Yahoo! Message
Make sure that account has the adequate permissions. Can you connect to it using Enterprise Manager?


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

jsphweid
Starting Member

7 Posts

Posted - 16 March 2006 :  08:49:43  Show Profile  Visit jsphweid's Homepage  Send jsphweid an AOL message
My builtin Administrator account is a member of every group (except guest, etc.). I don't have time right at this moment to look for Enterprise Manager, but I do know that when I 'manage' a computer, I cannot view logs (or at least I can't on this machine). Access is denied.

Thanks
Joseph
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 March 2006 :  08:51:50  Show Profile  Send ruirib a Yahoo! Message
Is the SQL Server configured to accept SQL Server authentication?


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

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 16 March 2006 :  15:23:05  Show Profile  Visit Gremlin's Homepage
Unfortunately SQL Express doesn't enable Mixed Mode Authentication by default, so your either going to have to connect using integrated security which would involve setting up a new Windows User, Giving access to that User to your Snitz DB in the SQL Express Manager, changing your connection string again and then finally changing the IIS user for this website to run under that logon as well or make some registry tweaks to enable Mixed Mode.

As you can see running integrated only is a bit of a hassle, so enabling Mixed Mode Authentication is probably the easiest thing to do.

See the section in this KB under the heading of "Enable Mixed Mode Authentication After Installation" and make the registry changes required.
http://support.microsoft.com/default.aspx?scid=kb;en-us;319930


Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 March 2006 :  17:02:02  Show Profile  Send ruirib a Yahoo! Message
Hmmm... missed the Express Edition part... and don't know it either, haven't installed it. Great info Brangwyn.


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

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 16 March 2006 :  18:41:18  Show Profile  Visit Gremlin's Homepage
Wasn't very familiar with it myself until just the other day when I decided to upgrade/downgrade a small application I'd written for work from SQL Server to express edition so we could free up a SQL License, Mixed Mode Authentication that was the very first hurdle I struck so it was still pretty fresh in my mind.

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

jsphweid
Starting Member

7 Posts

Posted - 16 March 2006 :  20:58:59  Show Profile  Visit jsphweid's Homepage  Send jsphweid an AOL message
Thank you for your advice,
Ok, I changed it to mixed mode auth.(I think)(the test they described was nothing like what it seemed to be. , ) by finding the correct registry key and switching it to '2'. Then you mentioned 'express manager' so I ran a search, found, downloaded, and installed Microsoft SQL Server Management Studio Express. I then went into MSSMSE and viewed the properties of my database file 'snitzdb' and gave full permissions (except the ones that said deny in front of it, like 'db_denydatareader'... whatever it is...) to a new user I created called 'snitzoperator' (who is a member of Admins group and all of that good stuff). I finally went to IIS and changed the anonymous access user to 'snitzoperator' and went for it again. Same message.

Thanks,
Joseph

Edited by - jsphweid on 16 March 2006 21:01:57
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 16 March 2006 :  21:07:14  Show Profile  Visit AnonJr's Homepage
I had a similar problem with an MSDE install. I'd forgotten to enable Mixed-Mode authorization, made the registry change, and it would never allow SQL Authentication until I uninstalled and reinstalled the MSDE...

I'm sure there is a better way, and I'd love to find out... but this has been my experience in the past.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 March 2006 :  21:16:39  Show Profile  Send ruirib a Yahoo! Message
I suppose you restarted SQL Server Express after changing the setting? (I'm admiting that it can be restarted, as I don't run the Express Edition).


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

jsphweid
Starting Member

7 Posts

Posted - 16 March 2006 :  21:51:04  Show Profile  Visit jsphweid's Homepage  Send jsphweid an AOL message
Yes, I did,

I have time to reinstall...

Back in a while
Joseph
Go to Top of Page

jsphweid
Starting Member

7 Posts

Posted - 16 March 2006 :  23:12:25  Show Profile  Visit jsphweid's Homepage  Send jsphweid an AOL message
I must have uninstalled it in the wrong order (since there are about 6 'programs' under SQL Server in the Add/Remove columns) and it is not good.
I have WS03Enterprise 180 day trial. I'm in the process of learning, but I've decided to prolong this project until I get broadband (to make my final product actually worth it). Be back in a month or so maybe.

Thanks for all you help and wisdom!
Many thanks again, sorry if I wasted anyones time.

Joseph
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.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07