In my first database named 'sshopping' has two tables IndiaStates and IndiaCity. I want to copy these both table in new database 'jaijinendera' .
IndiaStates has columns StateID (Primary Key) and StateName
IndiaCity has columns CityID(Primary Key) , StateID (Foreign Key),CityName
I used the query something like this
Insert int jaijinendera..IndiaStates select * from sshopping..IndiaStates
Insert int jaijinendera..IndiaCity select * from sshopping..IndiaCity
this has copied the data but not the keys (structure). What query should i made to copy proper structure and data from sshopping to jaijinendera