Code Works In Windows 2003 Not In Windows 2008 - Posted (1844 Views)
Senior Member
weeweeslap
Posts: 1077
1077
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
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Admin
HuwR
Posts: 20611
20611
Posted
Development Team Member
Davio
Posts: 12217
12217
Ahh yes. I see what you're saying now. Just went and look back at the file weeweeslap posted:
Set objDB = Server.CreateObject("ADODB.Connection")
objDB.Open my_Conn
It was using it's own connection instead. I see I see.
Posted
Snitz Forums Admin
ruirib
Posts: 26364
26364
Yeppers, that was it. I guess this means that you can't even use the argument that a given set of code was working well before, when problems arise. You just need to question it all!! Not a reassuring thought!!
Posted
Senior Member
weeweeslap
Posts: 1077
1077
Happy Thanksgiving, thank you for resolving this error bigsmile
Posted
Snitz Forums Admin
ruirib
Posts: 26364
26364
You're welcome. We do not celebrate Thanksgiving here, but I hope you have a Happy one yourself.
You Must enter a message