Quote:
Originally Posted by ReaLLiF
me to
|
This:
I also got that problem a few hours ago my sql service wasn't started and database.ini had a wrong value at the "data source="
was my response to LastThief in my previous post to his error but it seems to be that you 2 have to problem so i'll explain this a bit more detailed
Open your task manager and go to the tab services. Search for a name which starts with "MSSQL$"
In my case this one is called "MSSQL$SQLEXPRESS"
This is your sql service. be sure that this one is running.
Now open your database.ini the datbase.ini of the release looks like this:
Code:
[DATABASE]
connection=Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
As Data Source you can try 2 things the first one is '127.0.0.1' or 'localhost' if this one doesn't work try:
'<Name Of Your PC>/<The MSSQL service name>'
Change '<Name of Your PC>' to the name of your pc for example 'kevin_owner-PC'.
Change the <The MSSQL service name> to the name which is in your task manager service panel after the MSSQL$ part which we just searched for.
so the final Data Source string could look like this:
Code:
'Data Source=kevin_owner-PC/SQLEXPRESS'
if everything went right you now have your data source set.
The next value you need to fill in is the Initial Catalog which is your database. if your database name is silkroad fill in silkroad if your db name is monkey fill in monkey (i'm not gonna explain how to create a database).
the next 2 values you have to fill in are 'User id=' and 'password='
You created this one at the installation of sql server but you can always create a new account (at the security tab if i remember correctly) The default user an password where
username: 'sa'
password: '1234'
but i'm not sure about this one.
So the finished database string could look like this:
Code:
[DATABASE]
connection=Data Source=kevin_owner-PC\SQLEXPRESS;Initial Catalog=silkroad;User Id=sa;Password=1234;MultipleActiveResultSets=True;
There is one new thing in this database.ini which is MultipleActiveResultSets=True;
This one is needed to solve the DataReader already open problem.
Btw, You need to have Sql server 2005 or Higher cuz sql server 2000 doesn't support MultipleActiveResultSets.
I hope this helped