Database hosting

01/09/2010 08:42 Santa#1
Ok, well me and a friend have decided to mess around with websites and shit, and i got to thinking. You know how most websites have to ability to host Sql servers? Well i tried hosting this for a CoEmuv2 server and it didn't work, has anyone do this before? Is it even possible? Ill post a picture of my error, its line 30, but the line 30 "fix" doesn't seem to be working.
[Only registered and activated users can see links. Click Here To Register...]
01/09/2010 09:22 ~Yuki~#2
If you cant understand what the console says, quit.
01/09/2010 09:31 Santa#3
Quote:
Originally Posted by ~Yuki~ View Post
If you cant understand what the console says, quit.
All my fault cause i don't sit on my PC 24/7 like my, SORRY FORGOT. Dude, if you have nothing nice to say, don't say shit. Its really fucking annoying.

Any btw, you must not be very smart, cause you couldn't answer my other questions.
01/09/2010 10:15 spare2#4
Starbuck please don't respond to flame with flame, there's is a report button.

But to answer your question, the exception is a null reference exception, which means on that line you called a object or instance that is null or returned null. Try and find out what caused that by debugging.
01/09/2010 11:14 Korvacs#5
Looks like you didnt define your connection object before you tried to open it.

Your absolutely right that web servers can be used to host Sql servers, the thing is that you will have a delay between when your servers sends the request, and when you receive your data because it has to be sent accross the internet unlike accessing it from a local server where you get your data almost instantly. You might want to think about that before you go for it.
01/09/2010 14:50 pro4never#6
yah I used an external sql server hosted with my webhosting for a while (to make registration and other access simpler) but after a week or so I gave up on that due to the lag between the two.
01/09/2010 20:20 Santa#7
Quote:
Originally Posted by Korvacs View Post
Looks like you didnt define your connection object before you tried to open it.

Your absolutely right that web servers can be used to host Sql servers, the thing is that you will have a delay between when your servers sends the request, and when you receive your data because it has to be sent accross the internet unlike accessing it from a local server where you get your data almost instantly. You might want to think about that before you go for it.
Well, i have messed with this source before and it has never done this to me before i have tried connecting to an outside database.

Quote:
Originally Posted by pro4never View Post
yah I used an external sql server hosted with my webhosting for a while (to make registration and other access simpler) but after a week or so I gave up on that due to the lag between the two.
Yeah, i remember that, but im just messin around with different options.
01/10/2010 12:52 Korvacs#8
Quote:
Originally Posted by StarBucks View Post
Well, i have messed with this source before and it has never done this to me before i have tried connecting to an outside database.
Well, my advice would be to recheck your definition for your connection and make sure it is correctly defined, because it clearly states that it isnt defined when you try to open it.