Click here to Skip to main content
15,903,856 members
Home / Discussions / Database
   

Database

 
GeneralMoving data Pin
Member 23350920-Jan-05 23:19
Member 23350920-Jan-05 23:19 
GeneralRe: Moving data Pin
Colin Angus Mackay20-Jan-05 23:49
Colin Angus Mackay20-Jan-05 23:49 
GeneralSearching in a disconnected dataset Pin
hendriks20-Jan-05 4:50
hendriks20-Jan-05 4:50 
GeneralRe: Searching in a disconnected dataset Pin
descola22-Jan-05 22:37
descola22-Jan-05 22:37 
GeneralGenerate Insert Statement Pin
Sebastien Lachance20-Jan-05 3:18
Sebastien Lachance20-Jan-05 3:18 
GeneralRe: Generate Insert Statement Pin
Colin Angus Mackay20-Jan-05 22:42
Colin Angus Mackay20-Jan-05 22:42 
GeneralRe: Generate Insert Statement Pin
Sebastien Lachance21-Jan-05 3:45
Sebastien Lachance21-Jan-05 3:45 
GeneralRe: Generate Insert Statement Pin
Colin Angus Mackay21-Jan-05 4:00
Colin Angus Mackay21-Jan-05 4:00 
Sebastien_Lachance wrote:
My english is not so great

That's okay - I read some of your blog and it looks like your English is very good. I guess you were just typing in a hurry.


Sebastien_Lachance wrote:
I have a Select statement that select some records. Then I want to send those record on another database. So I wanted to generate a Insert Script, that "Insert" those record.

If the two tables have the same columns then the easiest thing is:
INSERT INTO [DestinationDatabase].[dbo].[DestinationTableName]
SELECT *
FROM [SourceDatabase].[dbo].[SourceTableName]


You can, of course, use any select statement that returns the data you need.

Does this help?


Do you want to know more?
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums


Upcoming talk:
SELECT UserName, Password FROM Users
-- Getting unauthorised access to a SQL Server, and how to prevent it.

GeneralAny tutorial/link on developing applications for Windows CE .NET using C# Pin
amittinku19-Jan-05 18:44
amittinku19-Jan-05 18:44 
GeneralQuery Pin
Yulianto.19-Jan-05 16:31
Yulianto.19-Jan-05 16:31 
GeneralRe: Query Pin
Mike Ellison19-Jan-05 17:26
Mike Ellison19-Jan-05 17:26 
GeneralRe: Query Pin
Yulianto.19-Jan-05 18:00
Yulianto.19-Jan-05 18:00 
Generala problem about resultset from a procedure Pin
luobo19-Jan-05 16:01
luobo19-Jan-05 16:01 
GeneralSET NOBROWSETABLE Pin
Axsys19-Jan-05 15:50
Axsys19-Jan-05 15:50 
GeneralRe: SET NOBROWSETABLE Pin
Mike Dimmick20-Jan-05 1:44
Mike Dimmick20-Jan-05 1:44 
GeneralCopy DataSet and change primary key in Relations Pin
triton63019-Jan-05 12:56
triton63019-Jan-05 12:56 
GeneralDateTime no Time transferred Pin
cje19-Jan-05 9:43
cje19-Jan-05 9:43 
GeneralRe: DateTime no Time transferred Pin
Michael Potter20-Jan-05 9:51
Michael Potter20-Jan-05 9:51 
GeneralQuery on 2 DB Pin
Sebastien Lachance19-Jan-05 9:35
Sebastien Lachance19-Jan-05 9:35 
GeneralRe: Query on 2 DB Pin
David Salter19-Jan-05 11:16
David Salter19-Jan-05 11:16 
QuestionDataBind causing infinite loop? Pin
Evan Schultz19-Jan-05 6:38
Evan Schultz19-Jan-05 6:38 
GeneralSQL - Autonumber - Remove Pin
Purple Monk19-Jan-05 1:50
Purple Monk19-Jan-05 1:50 
GeneralRe: SQL - Autonumber - Remove Pin
David Salter19-Jan-05 7:57
David Salter19-Jan-05 7:57 
GeneralRe: SQL - Autonumber - Remove Pin
Purple Monk19-Jan-05 23:21
Purple Monk19-Jan-05 23:21 
GeneralRe: SQL - Autonumber - Remove Pin
David Salter20-Jan-05 11:12
David Salter20-Jan-05 11:12 

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.