Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can i create a table in a database without using sql server management studio??
Posted
Comments
uspatel 15-May-12 7:22am    
where you want to create database on remote server,or you have local instance of sql server?
Rahul GS 15-May-12 7:24am    
i dont have management studio....
uspatel 15-May-12 7:27am    
You dont need Mgmt studio but you should have sql server instance running on remote machine or on local machine.....
Rahul GS 15-May-12 7:28am    
only confgrtn tool is der in my pack

Sure, you can execute the following query:


SQL
CREATE TABLE table_name
(
column_name1 data_type,
column_name2 data_type,
column_name3 data_type,
....
)


an concrete example is:

SQL
CREATE TABLE Persons
(
P_Id int,
LastName varchar(255),
FirstName varchar(255),
Address varchar(255),
City varchar(255)
)


Cheers
 
Share this answer
 
Comments
Rahul GS 15-May-12 7:26am    
sir,
wer i want write this?
Mario Majčica 15-May-12 7:28am    
In you application I suppose, you didn't wrote down anything about your problem more in detail.
Mario Majčica 15-May-12 7:32am    
Beside, there are many ways of executing a query, these are some of them:
http://sourceforge.net/projects/queryexplus/
http://toadworld.com/SQLSERVER/tabid/760/Default.aspx
http://versabanq.com/products/squel.php
http://msdn.microsoft.com/en-us/library/ms162773.aspx

etc.

Why should you not use SSMS??? There is an free version of it.

Cheers
Rahul GS 15-May-12 7:37am    
only confgrtn tool is der in my sql pack.....no mangamnt stdio
Mario Majčica 15-May-12 7:42am    
Try to be more precise. Are you speaking about MS SQL, what are your limitations and your needs?

Cheers
Yeah, Ofcourse
just execute following command

SQL
CREATE TABLE abc
(
Id int not null,
name varchar(50) null,
sirname varchar(50) null,
place varchar(50) null
)


Then for insert records
SQL
insert into abc values(1,'Radhe','shyam','chandigarh')
 
Share this answer
 
v2
SQL
create table "Table name"("Column name1" "datatype")


eg.
SQL
create table Test(name varchar(50))
 
Share this answer
 
v2
By using microsoft access we can create database
 
Share this answer
 
Comments
Rahul GS 15-May-12 7:57am    
can i create a table???

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