Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 28th, 2005, 03:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default Generated Code Overwriting PWD

Hi All,
I am creating a Device app with Pocket PC 2003, MS SQLCE 2.
I am trying to use typed datasets to populate a list.
I have created this part fine, except that when I run the app on the device there is a password problem with the device.
When I manually changed the Connection string used by the DataAdapter everything works fine.

However my manual change gets overwritten whenever I add a new query to the dataadapter.

Is there anyway to set the password before code generation so that it is included in my connection string for autogenerated code?

The stange thing about this is that I get a message whenever configuring/creating a new query that suggests that the password is going to be stored in the connection string and is that ok by me, of course I say yes at this stage. But still no password in connection string.

Many thanks for your assistance
Rod

======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
__________________
======================================
"They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad."
--Shakespeare
======================================
 
Old November 28th, 2005, 04:27 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Never mind, I found the solution;
There is a property that can be set for the Dataset, Connection > ConnectionString.
For some reasn this was originally misbehaving, but after setting hte property manuall instead of the code all is good.
Thanks for your time.
Rod

======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================





Similar Threads
Thread Thread Starter Forum Replies Last Post
windows code generated siji44 Visual Studio 2005 1 September 11th, 2007 12:32 PM
overwriting files mrjits Excel VBA 2 August 1st, 2006 02:53 PM
overwriting data bryan.lugo Excel VBA 8 April 21st, 2006 01:59 PM
overwriting file ozPATT Excel VBA 0 October 14th, 2005 04:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.