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
 some mssql database questions
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

realnus
New Member

Turkey
77 Posts

Posted - 27 November 2005 :  18:51:38  Show Profile
Hi , My forum database has reached to 54 Mb and There are about 40000 posts in the forums . So , I decided to convert my access Db to mssql db.
My Questions :
1) My database has reached to 54 Mb in one year and it will keep on increasing . So , If I convert my database I will make it 250 Mb . If one day it reaches to 250 Mb , Am I able to increase it again ? (logically this must be done , but I need confirmation ,I am trying to learn mssql )

2) What does log file do ? With database I must use a log file as I see. What must be the size of the log file ... How will I decide its size ?

3)I have comverted my access database to mssql database , it works well but while creating categories I get an error

Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert the value NULL into column 'FORUM_ID', table 'snitz_mssql.dbo.FORUM_FORUM'; column does not allow nulls. INSERT fails.
/yeni_site/post_info.asp, line 1349


and in post_info.asp the code block is this
my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords

So , As I have understood according to mssql database logic the fields properties must be set properly .No null entries allowed

As you see , I am a starter with mssql and still reading articles about it. If you answer my questions I will be glad ...
Thanks.

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 November 2005 :  18:56:15  Show Profile  Send ruirib a Yahoo! Message
1. Database size can grow whenever needed.

2. Let SQL Server decide the log size. You can configure the database to use a simple recovery model, which will make the log file as small as possible.

3. You should have followed the advice here: http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=31144
Do it if you still can.


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

realnus
New Member

Turkey
77 Posts

Posted - 27 November 2005 :  20:25:36  Show Profile
Thanks for the answers ruirib ,
I have read more articles and started to understand more about the settings .
I am posting some images and I want to talk about thoose ones.

As you see it shows "Number of users" as 1
Does this mean only 1 user can connect the db at the same time (users of my forum) ? (or the determined admin account for the db is 1.)

When I converted the db , automatically "unrestricted file growth" had been selected.So I dont worry about the db limit .It will always grow (is this true?)
And one more question about this. Is there an advance of making the database with limited size ?

As I read in articles , for example if a data is inseted to database , firstly this action is recorded to translaction logs and then the operation (or writing/deleting to db) is done.So the log file size seems to be importent .If the log file is exceeded the db will stop working.(Am I wrong about this? Do I need to delete translaction logs with a period?

Do you advice me to change any setting with this screen? For ex. "Auto Close" is used for what .Does it automatically close the connections in 20 minutes (I thought about this as default timeout)

Thanks and sorry for too many questions



Edited by - realnus on 27 November 2005 20:30:37
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 November 2005 :  04:00:03  Show Profile  Send ruirib a Yahoo! Message
1. It means you have added permissions for a single user to access the database. Quite likely that's the user you've specified in your connection string. Whenever someone uses the forum, the user accessing the database is the one you specified in the connection string.

2. Yeah, size will always grown unless there is no more free disk space.

3. Yeah, logs are important. Do not mess with them. Let SQL Server handle it.

4. I would select Auto shrink.


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

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 28 November 2005 :  05:06:59  Show Profile  Send pdrg a Yahoo! Message
quote:
Originally posted by ruirib


3. Yeah, logs are important. Do not mess with them. Let SQL Server handle it.



Excellent

As it happens, realnus, there are some AWESOME articles in 'Books Online' (Help for SQL Server) located probably in the 80\Tools\Books\ folder of your SQL install. If you want to understand logging etc properly, try reading through these - you'll quickly see why Rui suggests they're important! Fact is SQL Server is an enterprise-grade db engine, so it does some things way in advance of what Access can handle/do, and it's as well to start learning about the differences.

Slightly off-topic (as is my way...) - We have people here come for interview believeing themselves to be 8 or 9 /10 at 'SQL Server', yet the true expert will never estimate themselves above a 6-7...there is a lot to learn in there
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 November 2005 :  06:00:43  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by pdrg

[quote][Slightly off-topic (as is my way...) - We have people here come for interview believeing themselves to be 8 or 9 /10 at 'SQL Server', yet the true expert will never estimate themselves above a 6-7...there is a lot to learn in there


That is so true. There is so much to know about SQL Server... I couldn't live without a very good reference book near me, and I resort to it quite frequently, specially on matters I deal with less frequently. And with the 2005 version out, a lot more to learn yet.


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

realnus
New Member

Turkey
77 Posts

Posted - 28 November 2005 :  19:47:21  Show Profile
Thanks for the replies ruirib. I know that this is a sea and there are too many miles to swim and I started. Tomorrow I will buy a mssql book and start to read from the beginnig.

I may ask some general questions and I will need your experiences .

Let the MSSQL be with u

Edited by - realnus on 28 November 2005 20:41:36
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 29 November 2005 :  05:23:48  Show Profile  Send pdrg a Yahoo! Message
Sure, ask away if you hit any big blockers! There are some awesome SQL Server resources online too:

http://www.sqlservercentral.com/
http://www.sswug.org/
http://www.experts-exchange.com (not expertsexchange, as it used to be called!)

often have really, really useful articles for all levels.
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.99 seconds. Powered By: Snitz Forums 2000 Version 3.4.07