•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 422,804 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,378 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser: Programming Forums
Views: 794 | Replies: 6
![]() |
| |
•
•
Join Date: Feb 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
I'm a newbie in MSSQL. But i already tried using mysql.
How can I create a database in mssql. I mean what would be the first step.
I had installed Microsoft SQL Server 2005 along with Microsoft Visual C# Express Edition.
The following are the tools found in Start>Program Files>Microsoft SQL Server 2005> Configuration Tools:
- SQL Server Configuration Manager
- SQL Server Error and Usage Reporting
- SQL Server Surface Area Configuration
Which of the tools above would be used to start creating a database? Or I need to install another MSSQL tool?
Thank you in advance.
I'm a newbie in MSSQL. But i already tried using mysql.
How can I create a database in mssql. I mean what would be the first step.
I had installed Microsoft SQL Server 2005 along with Microsoft Visual C# Express Edition.
The following are the tools found in Start>Program Files>Microsoft SQL Server 2005> Configuration Tools:
- SQL Server Configuration Manager
- SQL Server Error and Usage Reporting
- SQL Server Surface Area Configuration
Which of the tools above would be used to start creating a database? Or I need to install another MSSQL tool?
Thank you in advance.
You've installed Microsoft SQL Server Express Edition which runs from VS, to create Database you need to open VS and create Database and so on...
Last edited by RamyMahrous : Feb 21st, 2008 at 2:48 pm.
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
•
•
Join Date: Nov 2007
Location: � Jogja �
Posts: 2,584
Reputation:
Rep Power: 11
Solved Threads: 235
SQL Server Configuration Manager
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
The connection string still the same just create the database and connect it from anywhere. what I've said is you just can create database from VS, after the creation you can access your DB from any application using ConnectionString www.connectionstrings.com
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
•
•
Join Date: Feb 2008
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
Hi aashi,
There is a tool Microsoft SQL Server Management Studio Express. Microsoft SQL Server Management Studio Express (SSMSE) is a free, easy-to-use graphical management tool for managing SQL Server 2005 Express Edition and SQL Server 2005 Express Edition with Advanced Services.
I know of two easy options to create databases for SQL Server 2005 Express Edition. One is with Visual Studio and the second one is with this tool. But trust me it would be very easy and you will have more control if you use this tool. The tool can be downloaded at http://www.microsoft.com/downloads/d...displaylang=en
Sunny
There is a tool Microsoft SQL Server Management Studio Express. Microsoft SQL Server Management Studio Express (SSMSE) is a free, easy-to-use graphical management tool for managing SQL Server 2005 Express Edition and SQL Server 2005 Express Edition with Advanced Services.
I know of two easy options to create databases for SQL Server 2005 Express Edition. One is with Visual Studio and the second one is with this tool. But trust me it would be very easy and you will have more control if you use this tool. The tool can be downloaded at http://www.microsoft.com/downloads/d...displaylang=en
Sunny
•
•
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,165
Reputation:
Rep Power: 7
Solved Threads: 59
Start -> Run
type 'cmd' (without quotes) press enter
at the command prompt type:
>net start "Sql Server (SQLEXPRESS)"
Press enter
This ensures the service is running, if it's already started no problem, if it isn't it should start.
At the next prompt type:
>osql -SCOMPUTERNAME\SQLEXPRESS -E
Press enter - you should get a connection to SQL server the -E means to use Windows Authentication
You now get a OSQL prompt
1>
type this:
1>create database myDB
Press Enter
type:
2>GO
Press enter
Your database will be created.
type
1>exit
Press enter - to quit from OSQL programme
Microsoft Sql Server Management Studio Express is also a good tool for this kind of thing.
And of course as Ramy mentioned Visual Studio's Server Explorer (View menu -> Server Explorer) can be used to create databases. In server explorer expand Servers node, expand your computer node, expand Sql Servers node, right click the Sql Server and choose New Database from the context menu.
type 'cmd' (without quotes) press enter
at the command prompt type:
>net start "Sql Server (SQLEXPRESS)"
Press enter
This ensures the service is running, if it's already started no problem, if it isn't it should start.
At the next prompt type:
>osql -SCOMPUTERNAME\SQLEXPRESS -E
Press enter - you should get a connection to SQL server the -E means to use Windows Authentication
You now get a OSQL prompt
1>
type this:
1>create database myDB
Press Enter
type:
2>GO
Press enter
Your database will be created.
type
1>exit
Press enter - to quit from OSQL programme
Microsoft Sql Server Management Studio Express is also a good tool for this kind of thing.
And of course as Ramy mentioned Visual Studio's Server Explorer (View menu -> Server Explorer) can be used to create databases. In server explorer expand Servers node, expand your computer node, expand Sql Servers node, right click the Sql Server and choose New Database from the context menu.
Last edited by hollystyles : Mar 5th, 2008 at 9:04 am.
![]() |
•
•
•
•
•
•
•
•
DaniWeb MS SQL Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the MS SQL Forum
- Previous Thread: sql server 2005 express i need help<<<?
- Next Thread: Database password authentication



Hybrid Mode