Click here to Skip to main content
15,898,222 members
Home / Discussions / Database
   

Database

 
AnswerRe: updating an sql database Pin
N a v a n e e t h19-Mar-07 19:26
N a v a n e e t h19-Mar-07 19:26 
AnswerRe: updating an sql database Pin
Imran Khan Pathan19-Mar-07 19:28
Imran Khan Pathan19-Mar-07 19:28 
QuestionSQLExpress usage advice please Pin
Glen Harvy19-Mar-07 16:57
Glen Harvy19-Mar-07 16:57 
QuestionHow to get the IP address of a user sitting behind a routher? Pin
Khoramdin19-Mar-07 12:39
Khoramdin19-Mar-07 12:39 
QuestionSql update problem Pin
ali_reza_zareian19-Mar-07 11:34
ali_reza_zareian19-Mar-07 11:34 
AnswerRe: Sql update problem Pin
mghiassi24-Mar-07 5:34
mghiassi24-Mar-07 5:34 
QuestionGenerate SQL Script for tables Pin
dhananjayamurthy19-Mar-07 10:01
dhananjayamurthy19-Mar-07 10:01 
AnswerRe: Generate SQL Script for tables Pin
Colin Angus Mackay19-Mar-07 13:19
Colin Angus Mackay19-Mar-07 13:19 
dhananjayamurthy wrote:
I want to generate sql script with data. i.e., on run the script it should create the table structure and insert the data too.


You can query the data structure with the views on INFORMATION_SCHEMA. Although, that is quite complex task - I usually leave it to the Enterprise Manager to generate the creation scripts for me.

Data population scripts are slightly easier. You SELECT the data from the table, but concat' it all into one columns

SELECT 'INSERT INTO TableName(PK, Col1, Col2) VALUES ('+PK+', '+Col1+', '+Col2+')'
FROM TableName



AnswerRe: Generate SQL Script for tables Pin
Laxman Auti20-Mar-07 5:03
Laxman Auti20-Mar-07 5:03 
Questiondataset.acceptchange method [modified] Pin
manni_n19-Mar-07 7:58
manni_n19-Mar-07 7:58 
QuestionHow to script job in stored proc to run on dynamicly assigned server? Pin
RainFox19-Mar-07 1:06
RainFox19-Mar-07 1:06 
QuestionQuick Index question Pin
Rob Philpott18-Mar-07 23:09
Rob Philpott18-Mar-07 23:09 
AnswerRe: Quick Index question Pin
andyharman19-Mar-07 2:02
professionalandyharman19-Mar-07 2:02 
GeneralRe: Quick Index question Pin
Rob Philpott19-Mar-07 4:25
Rob Philpott19-Mar-07 4:25 
GeneralRe: Quick Index question Pin
Mike Dimmick19-Mar-07 5:10
Mike Dimmick19-Mar-07 5:10 
Questionhow to perform pagging using stored processors Pin
Imran Khan Pathan18-Mar-07 22:18
Imran Khan Pathan18-Mar-07 22:18 
AnswerRe: how to perform pagging using stored processors Pin
Harini N K18-Mar-07 22:52
Harini N K18-Mar-07 22:52 
AnswerRe: how to perform pagging using stored processors Pin
Pete O'Hanlon18-Mar-07 23:52
mvePete O'Hanlon18-Mar-07 23:52 
Questioncolumn length select query Pin
playout18-Mar-07 20:31
playout18-Mar-07 20:31 
AnswerRe: column length select query Pin
Ziyad Mohammad18-Mar-07 20:47
Ziyad Mohammad18-Mar-07 20:47 
GeneralRe: column length select query Pin
playout18-Mar-07 21:53
playout18-Mar-07 21:53 
Questioninstalled in server and run from client Pin
hamid_m17-Mar-07 23:21
hamid_m17-Mar-07 23:21 
AnswerRe: installed in server and run from client Pin
Colin Angus Mackay18-Mar-07 3:38
Colin Angus Mackay18-Mar-07 3:38 
Questionupdating table of one database with data from another database? Pin
PandemoniumPasha17-Mar-07 19:55
PandemoniumPasha17-Mar-07 19:55 
AnswerRe: updating table of one database with data from another database? Pin
mghiassi18-Mar-07 9:56
mghiassi18-Mar-07 9:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.