PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET How to change the connection string of a TableAdapter

Reply

How to change the connection string of a TableAdapter

 
Thread Tools Rate Thread
Old 22-06-2006, 08:44 PM   #1
ad
Guest
 
Posts: n/a
Default How to change the connection string of a TableAdapter


I am useing the the TableAdapter of VS2005.
I copy a DataTable form one project to another project.
The connection strings in the two projects is different.
I want to change the connection of the TableAdapter to the one of the new
project. Where can I change it?


  Reply With Quote
Old 23-06-2006, 05:47 AM   #2
Cor Ligthert [MVP]
Guest
 
Posts: n/a
Default Re: How to change the connection string of a TableAdapter

Ad,

In its name and than .connection, you can get it as well from there.

Dim conn As SqlClient.SqlConnection = Me.OrdersTableAdapter.Connection

I hope this helps,

Cor


"ad" <flying@wfes.tcc.edu.tw> schreef in bericht
news:e2tbFRjlGHA.1552@TK2MSFTNGP04.phx.gbl...
>I am useing the the TableAdapter of VS2005.
> I copy a DataTable form one project to another project.
> The connection strings in the two projects is different.
> I want to change the connection of the TableAdapter to the one of the new
> project. Where can I change it?
>



  Reply With Quote
Old 23-06-2006, 06:11 PM   #3
Mark
Guest
 
Posts: n/a
Default Re: How to change the connection string of a TableAdapter

right click on the table adapter in your dataset, then properties/connection

--
Best regards
Mark

"ad" <flying@wfes.tcc.edu.tw> wrote in message
news:e2tbFRjlGHA.1552@TK2MSFTNGP04.phx.gbl...
>I am useing the the TableAdapter of VS2005.
> I copy a DataTable form one project to another project.
> The connection strings in the two projects is different.
> I want to change the connection of the TableAdapter to the one of the new
> project. Where can I change it?
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off