How do I copy a table from one SQL CE Server db into another?
- From: Loogie <boogieloogie@xxxxxxxxx>
- Date: Thu, 28 Jun 2007 16:20:39 -0300
Hello
I am trying to copy a table from one database into another, user named, database. The code I have is not working and I don't know why. Please help.
Thanks
:L
'Create and open connection.
Dim ssceconn As New SqlCeConnection("Data Source = \Program Files\data\projects\" & Me.Text & "\" & Me.Text & ".sdf")
ssceconn.Open()
Dim strIn As String
Dim strOut As String
strIn = "\Program Files\data\projects\" & Me.Text & "\" & Me.Text & ".sdf"
strOut = "\Program Files\data\tabs\header\spec.sdf"
Dim sqlImport As New SqlCeCommand("SELECT * INTO strIn.dbo.[tblHeader] FROM strOut.dbo.[tblHeader]", ssceconn)
sqlImport.ExecuteNonQuery() I get the following error here: There was an error parsing the query. [ Token line number = 1,Token line offset = 10,Token in error = INTO ]
' Close the connection
ssceconn.Close()
ssceconn.Dispose()
ssceconn = Nothing
engine.Dispose()
engine = Nothing
Beep()
MsgBox("import done")
.
- Follow-Ups:
- Re: How do I copy a table from one SQL CE Server db into another?
- From: William \(Bill\) Vaughn
- Re: How do I copy a table from one SQL CE Server db into another?
- Prev by Date: Re: select then insert into tables
- Next by Date: Re: How do I copy a table from one SQL CE Server db into another?
- Previous by thread: RDA Push returns empty table
- Next by thread: Re: How do I copy a table from one SQL CE Server db into another?
- Index(es):
Relevant Pages
|