|
-
Nov 15th, 2012, 11:58 AM
#1
Thread Starter
Addicted Member
Select INSERT in c#
Hello There,
I just wanna ask how will i implement Select Insert query in C#.
Example
"INSERT INTO DB1.TABLE1 (lastname,firstname,middlename) SELECT lastname,firstname,middlename FROM DB2.TABLE2"
can i use this query like this?or do i need to separate the two statements.
cmd.commandtext = "INSERT INTO DB1.TABLE1 (lastname,firstname,middlename) SELECT lastname,firstname,middlename FROM DB2.TABLE2";
Thanks in advance!
glen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|