Access data insertion into SQL Server -


i'm stuck inserting data access table sql server 2008.

i doing following using c#:

  1. connect access database using oledbconnection

  2. execute statement using oledbcommand:

    insert table1 in server=localhost;database=test;integrated security=sspi select * tables1 

i'm getting error

syntax error in insert command

what need do? please guide.

you need on lines of:

insert [odbc;driver=sql server;server=localhost;database=test;integrated security=sspi].table1 select * table1 

the easiest way correct connection string link table , check connect property.

you find connections strings @ http://connectionstrings.com


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -