Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - How do I create a db on a SQL server?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How do I create a db on a SQL server?

 Post Reply Post Reply Page  12>
Author
pvillaca View Drop Down
Newbie
Newbie


Joined: 03 June 2004
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote pvillaca Quote  Post ReplyReply Direct Link To This Post Topic: How do I create a db on a SQL server?
    Posted: 06 June 2004 at 8:45pm

Hi,

well, after receiving some important advices from our friends here at WWGuide, I decided to change my Forum to a SQL version. However, one of the first instructions is: Create a database or use an existing one. Well, how do I do that? I have acess to my server through Terminal Services, but I don't know how to create a db. I've already uploaded all the files, but now what?

Thanks!

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 07 June 2004 at 5:02am
You need to have access to a server running MS SQL Server, you then use MS SQL Server Enterprise manager to connect to the SQL server that can be used to create the database.

Your host will usually create the database for you on the SQL server in advance.
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 07 June 2004 at 11:26am

Or use osql.exe by clicking Start > Run > "Cmd" Then type

osql -S [server] -U [username] -P [password] -Q "CREATE DATABASE [databasename]"

Back to Top
pvillaca View Drop Down
Newbie
Newbie


Joined: 03 June 2004
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote pvillaca Quote  Post ReplyReply Direct Link To This Post Posted: 07 June 2004 at 11:02pm
What's the extension of the db? mdb? db?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2004 at 5:38am
I think you are getting confused here.

Access is a flat file database system so you have a file like myDatabase.mdb that can be downloaded etc.

MS SQL Server is a server database system so doesn't have a flat file that can be downloaded like you can with access.

This then means that MS SQL Server performs much better than access as it doesn't require a flat file to be completely loaded into memory every time it is accessed.

Have a look on google for some sites on MS SQL Server so that you get a better idea of how it works.

To create a MS SQL Server database you need to connect to the SQL Server via frontend software like MS SQL Server Enterprise manager, from there you need to create a database on the SQL Server.

Edited by -boRg-
Back to Top
pvillaca View Drop Down
Newbie
Newbie


Joined: 03 June 2004
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote pvillaca Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2004 at 11:47am

Oh, ok.

You know what? I'm not going to try and do something I'm cleary not apt to. I'll have a friend to do it for me.

Thanks anyway.

Back to Top
pvillaca View Drop Down
Newbie
Newbie


Joined: 03 June 2004
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote pvillaca Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2004 at 7:04pm

Ok, the SQL Server database was created. Good.

HOWEVER (oh, boy), I'm getting an error message while trying to run the mssql_server_setup.asp thingy. Now, I know the message below says the data is incorrect, but I checked and rechecked: everything is correct (User Name, password, SQL Server Name, Database Name), so... my questions are:

1) The database was created in a directory different from the one where the Forum files are. It's not even in the Inetpub directory, but on a local directory. Is there a problem?

2) When entering the data on the sql_server_connection.asp do I have to specify the directory of the database?

3) Are the names CaSe Sensitive? (Well, I did use everything correctly anyway).

4) Am I lost or what?

 
Error Connecting to database on SQL Server
Check the following is set up and correct:-
SQL Server User Name
SQL Server Password
Name of the SQL Server
Database name set up by you on the server
Empty Database set up by you on the SQL Server
Check also that you have entered the correct details in the file 'SQL_server_connection.asp' found in the admin directory

Back to Top
pvillaca View Drop Down
Newbie
Newbie


Joined: 03 June 2004
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote pvillaca Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2004 at 7:05pm
Oh, and one more thing: the directory where the database is should have its Security configurations changed?
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.