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

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Code Works In Windows 2003 Not In Windows 2008
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

weeweeslap
Senior Member

USA
1077 Posts

Posted - 21 November 2010 :  20:34:17  Show Profile  Visit weeweeslap's Homepage  Reply with Quote
Hi,

This is in relation to one of the mods for snitz. Snitz Personalization. We moved to windows 2008 and are presented with a lot of problems. Most are taken care of fortunately or being taken care of. However, this one I can't figure it out.

Basically the database table is not being updated after the code is ran. The site is reading the tables just fine and is writing to all other tables just fine, just this one is giving me grief. Here is a text version of the asp page that is not updating the database:

http://www.coastercrazy.com/forum/my_edit_config.txt

If I manually add to the table, the site will read the table and display things correctly. However, if you log into the website and click any of the theme switching icons on the home page right below the menu on the right, it will tell you that it was updated successfully, however, it does not because you are still left with the default theme. Below is info to login and test it out for yourself:

Demo Account: SnitzTest
password: testtest

This code was working just fine on windows 2003 and sql server 2000. We moved to windows 2008 and sql server 2008 and this problem presented itself. I have deleted that specific table and recreated it manually and it did not fix the problem. I also deleted that table again and ran the dbs file for it and stil did not solve the problem. I am thinking maybe there is some code incompatability? Can someone please view the code linked above and see if there is anything that should be changed so it is windows 2008 and sql server 2008 compatible?

We thought maybe a trigger of the db was missing so I reexported the stored procs from the original db and imported them back into this db we have live now and still no fix. I appreciate any help you can provide on this situation.

Thank you,
Oscar

coaster crazy

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 21 November 2010 :  20:46:51  Show Profile  Reply with Quote
Off the bat, it sounds like there is a problem writing to the new table you created. Have you checked the permissions on the table to see if the account you using in config.asp has UPDATE permissions set for the table?

Support Snitz Forums
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 21 November 2010 :  20:51:15  Show Profile  Visit weeweeslap's Homepage  Reply with Quote
Yes it has UPDATE selected under permissions. There's 3 columns to select for UPDATE: Grant, With Grant and Deny

The Grant tick box is ticked, the remaining two are not. Should I tick box any of the other two?

Thank you,
Oscar

coaster crazy
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 21 November 2010 :  22:14:39  Show Profile  Reply with Quote
No the Grant should be enough. Does the SQL logs show any errors when you try to switch themes?
If not, it may just be the code that is the problem. Would need to step through each UPDATE in the code and see which is failing.

Support Snitz Forums
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 21 November 2010 :  23:21:24  Show Profile  Visit weeweeslap's Homepage  Reply with Quote
There's no errors in the SQL logs when I try to switch themes.
This you can help me out with the code perhaps? This is the file in charge of updating the database when switching themes: http://www.coastercrazy.com/forum/my_edit_config.txt

:)
thank you

coaster crazy
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20611 Posts

Posted - 22 November 2010 :  03:39:23  Show Profile  Visit HuwR's Homepage  Reply with Quote
it could be to do with the schema in which the table was created, does your new table have the same schema as all the other tables?

i.e
are they all called [dbo].TABLENAME, or is your new table something different like [username].TABLENAME

MVC .net dev/test site | Snitz .NET Core running on Raspberry Pi

Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 22 November 2010 :  11:25:08  Show Profile  Visit weeweeslap's Homepage  Reply with Quote
It is indeed different, it is username.TABLENAME with username being the username I use to connect to the db. However, I did create the table manually and that turned out to be dbo.TABLENAME and then it would not even read the table. It only reads username.TABLENAME

What I mean is after the table was created, I manually added a row to the table to see if it was even reading it right. In the dbo.TABLENAME, it was not reading the table after adding a row. In the username.TABLENAME, which was created by the dbs file, it read the table fine, but it would not write to it.

coaster crazy
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20611 Posts

Posted - 22 November 2010 :  12:19:33  Show Profile  Visit HuwR's Homepage  Reply with Quote
are you getting any errors returned ?
if you try to execute exactly the same sql in enterprise manager does it work (when logged in as the same user as the forum)?

MVC .net dev/test site | Snitz .NET Core running on Raspberry Pi

Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 22 November 2010 :  15:58:27  Show Profile  Visit weeweeslap's Homepage  Reply with Quote
When running the exact same sql in EM being logged in as the same user as the forum, no errors are being returned.

coaster crazy

Edited by - weeweeslap on 22 November 2010 15:58:49
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 22 November 2010 :  16:21:49  Show Profile  Reply with Quote
It does look like a schema / permissions issue The table should have the same schema as the existing forum tables and you should make sure the table is created with the same permissions as the other forum tables, in the exact same schema as the forum ones.


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

weeweeslap
Senior Member

USA
1077 Posts

Posted - 22 November 2010 :  17:02:31  Show Profile  Visit weeweeslap's Homepage  Reply with Quote
I recreated it using the same schema and permissions as the other tables and the code will not read from that table nor write to it as well

coaster crazy
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 22 November 2010 :  18:20:36  Show Profile  Reply with Quote
What error message are you getting?


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

weeweeslap
Senior Member

USA
1077 Posts

Posted - 22 November 2010 :  19:25:38  Show Profile  Visit weeweeslap's Homepage  Reply with Quote
I actually didn't get any error message doing the above. Even if I delete the table (FORUM_MY_CONFIG) it doesn't give an error. It just assumes a value of 0 and shows the default theme.

coaster crazy
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 23 November 2010 :  07:05:01  Show Profile  Reply with Quote
Well that simply can't be. If your code accesses the table, it would generate errors, unless your code is explicitly ignoring them. You are sure you don't have other versions of the table, under different schemas?


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

weeweeslap
Senior Member

USA
1077 Posts

Posted - 23 November 2010 :  11:51:29  Show Profile  Visit weeweeslap's Homepage  Reply with Quote
I am certain. You are welcomed to RDC into my server and check it out if you'd like?

coaster crazy
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 23 November 2010 :  12:05:58  Show Profile  Reply with Quote
Well if you want to email me the details I can try and have a look. Please provide me all the relevant data - remote desktop access and login data, SQL Server data, script name for the code that it is failing.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07