User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Feb 2008
Posts: 2
Reputation: aasahi is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
aasahi aasahi is offline Offline
Newbie Poster

mssql walkthrough

  #1  
Feb 21st, 2008
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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 762
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 59
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

Re: mssql walkthrough

  #2  
Feb 21st, 2008
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/
Reply With Quote  
Join Date: Nov 2007
Location: � Jogja �
Posts: 2,584
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Rep Power: 11
Solved Threads: 235
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: mssql walkthrough

  #3  
Feb 21st, 2008
SQL Server Configuration Manager
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote  
Join Date: Feb 2008
Posts: 2
Reputation: aasahi is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
aasahi aasahi is offline Offline
Newbie Poster

Re: mssql walkthrough

  #4  
Feb 22nd, 2008
Thank you for the reply..
What I want to achieve is I want to create a database. and access it through java...
If I create a database through VS, what would be the database username and password?
and it's corresponding url?
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 762
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 59
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

Re: mssql walkthrough

  #5  
Feb 22nd, 2008
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/
Reply With Quote  
Join Date: Feb 2008
Posts: 4
Reputation: luciano_sunny is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
luciano_sunny luciano_sunny is offline Offline
Newbie Poster

Re: mssql walkthrough

  #6  
Feb 26th, 2008
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
Reply With Quote  
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,165
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Rep Power: 7
Solved Threads: 59
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: mssql walkthrough

  #7  
Mar 5th, 2008
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.
Last edited by hollystyles : Mar 5th, 2008 at 9:04 am.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MS SQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the MS SQL Forum

All times are GMT -4. The time now is 9:41 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC