Click here to Skip to main content
15,906,467 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends
I'm trying to save entire grid to DataBase. Can anyone tell, how can i create table with the fieldname that refer to header in grid

Thanks in advance
Posted
Comments
Manas Bhardwaj 10-Mar-11 6:22am    
no effort!
[no name] 10-Mar-11 6:54am    
What code you have tried so for?
Henry Minute 10-Mar-11 7:02am    
To get help you need to provide more information.

Is this a Windows Forms application of an ASP.Net one, or something else?
Where does the data come from currently?

Without full information any suggestions will be pure guesswork.
Sandeep Mewara 10-Mar-11 7:12am    
Any effort?
dhage.prashant01 10-Mar-11 7:37am    
I'm trying to import excel data to grid and later trying to save data to database.
I imported data to grid, now stuck up how to save grid to database

1 solution

Why don't you try researching with google[^] first. Basic syntax for creating a table with SQL is:

CREATE TABLE <table name><br />
(<br />
<Column Name> <DataType> (<DataSize>),<br />
<Column Name> <DataType> (<Datasize>)<br />
)


But without you supplying more information or narrowing down your questions, we aren't going to be able to help you further.
 
Share this answer
 

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