Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i need to create a database in my main server not in local host
plz help me with this
Posted
Comments
Nirav Prabtani 3-Jun-14 5:22am    
What is problem to create database on server??
sp_suresh 3-Jun-14 5:23am    
Please elaborate your needs .If you want to create DB in Main server
1. Then you should have permissions for that
ShobuGpta 3-Jun-14 5:27am    
yes i have permission...
ShobuGpta 3-Jun-14 5:28am    
i want to know the whole procedure of this
actualy the program i made has database in my PC...
if i install it in othe system, it's showing error
Prasad Avunoori 3-Jun-14 5:29am    
USER MASTER
CREATE DATABASE MYDATABASE

start SQL server management studio.
connect using sql server authentication.
from right pane click on databases to view all databases.
right click on the database you want to export to server

>> go to tasks
>> Generate Script
>> Select all tables, stored procedures, user defined functions, views.
>> next


the script will be ready to export on server

now on server create a database with any name and open the script and click on execute.

your database will be ready for you.
 
Share this answer
 
v2
Right click on database>>Generate Script>> Select all tables, stored procedures, user defined functions, views.

Then run those scripts on target server.
 
Share this answer
 
Comments
ShobuGpta 3-Jun-14 5:38am    
i tried bt i cant see this 'databse' option.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900