Re: Tabs, Comboxes and ADO.Net Problems



Thank You Bart. I was hoping SQL Server might solve problem 1. I do start a
thread when the program starts to tell the user if the program is already
running but anyways thank you for you time.

Steve

"Bart Mermuys" wrote:

> Hi,
>
> "Steve B." <SteveB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:8C603717-4E1A-448E-91DE-FEA76B6AD8E0@xxxxxxxxxxxxxxxx
> > Thanks Bart. I tried to be brief below
> >
> > I'm using VS for development. My local application is described as a top
> > level simple form with dropdown menus. The items in the menu link to
> > internal MS-Office network share drive documents or web pages. A couple
> > of
> > these menu items link to an ADO.Net Interface in which the underlying dB
> > is
> > MS-Access. The Interfaces provides Add, Delete, Change, DataGrid/dB
> > functionality. The adjacent bound DG ComboBoxes on the form display's the
> > "selected" row in the DG
> >
> > One of these Interfaces is quite complex containing approx 110 string
> > fields
> > in the Main table of the dB. The ADO.Net interface that addresses this
> > Main
> > table is modeled after a simpler Interface of 15 fields that works fine.
> > Both the simple and complex ADO.Net Interfaces utilize a common inherited
> > Interface file/class containing all the common ADO.Net methods.
> >
> > Problem #1
> > FYI, the VS DataAdapter wizard limits itself to 100 fields. So I said O'K,
> > let's do 90 fields and worry about the other ones later and get 90 working
> > and loaded. The 90 fields loaded into the DG and associated CB's fine.
> > Here's the problem, I can't manipulate the data. If I try to change a
> > field
> > in one of the 90 fields of the DG and try to save this Update to the dB I'll
> > get a "Expression is to Complex" error message. I haven't bther tring the
> > other functionalities.
> >
> > Proposed Solution #1
> > I'm going to strip the DA and DS from the automatically generated
> > InitializeComponent() code and put it all manually in my code. I hope
> > this
> > stops the error and allows me to add the 110 fields. I'm doing that now.
> > Comments? Let me also say I recognize dB Normalization.
>
> You're getting "Expression is to Complex" because the generated update query
> checks whether the old values are still the same to provide optimistic
> concurrency, but this causes a lot of AND's in the WHERE clause and the
> number is limited with Jet to 40. You could create your own query whithout
> checking the old values (no ANDs) but then you loose optimistic concurrency
> control. I've never dealt with that many columns.
>
> >
> > Problem #2
> > The complex Interface discussed above is a dll which is developed/debugged
> > on my machine and then the whole application is Released compiled to the
> > network. The problem is that sometimes and only sometimes the dll won't
> > close(). I don't know if a user doesn't close it properly but I can't
> > trace
> > the problem. There's only one thread in the program and I've tried stuff
> > like GC. All I know is when I try to Release compile I get an error
> > message
> > saying basically that can't compile that portion of the application
> > because
> > that file is open and the file is definitely not open at 5:30am.
> >
> > Fix #2
> > I have to get the IT guy, go to the server open all the running process on
> > the server, find my running database dll process and close it. I can't
> > see
> > it locally on my machine. After that I can Release compile fine. Why
> > doesn't the dll close?
>
> No idea why the dll remains open. If you are using threads then makes sure
> they end when the program gets closed. If non-background threads aren't
> ended they keep your program running.
>
> >
> > Problem #3 (BUG?)
> > When the program is not running and if I click on a Tab full of bound CB's
> > and have focus on a Tab and then try to close VS I get the following error
> > massage: "The following exception has occurred, DataBinding could not
> > find a
> > row in the list suitable for all bindings"..Is this a bug or a sign of the
> > stability of my program?
>
> That sounds like a bug.
>
> >
> > Will SQL Server help me in general?
>
> There is a lot of difference between sqlserver and access, first of all
> access is a file database while sql server is a server database. A lot of
> people don't consider access a "real" database. But you should be able to
> find lots of information (about the differences) on the internet.
>
> Sorry i couldn't be more helpfull, maybe someone else might still help.
>
> Greetings
>
> > My next step is contacting MS for assistance.
> >
> > Steve
>
>
>
.



Relevant Pages

  • Re: [STAThread]
    ... Java failed on the Windows client. ... SQL Server and many more expsose ... The unmanaged hosting interface ... 'Apartment' threaded COM objects have STA thread affinity, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: SQL 2K5 Custom Resolver (Business Logic Handler)
    ... Looking for a SQL Server replication book? ... register the dll in order to get the resolver to work. ... The Custom Resolver Component for article 'job' does not have a valid ...
    (microsoft.public.sqlserver.replication)
  • Application Generator For SQL Server and Challenge
    ... The generator does the rest. ... next MS SQL Server application, for you, in only one forth the amount of the ... interface is a familiar modern metaphor with a navigation tree on top or at ... interface remembers customizations to each data entry screen. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Error 22272: Cannot load the DLL xpstar.dll...
    ... I would look for MSVCR71.DLL in SYSTEM32. ... I believe that if an entire DLL was missing, ... Reinstall the SQL Server tools? ...
    (comp.databases.ms-sqlserver)
  • Looking for ASP.NET/SQL Server 2000 App Security Recommendations
    ... I am working on an active directory user management app with an ASP.NET ... User account requests are stored in a SQL Server 2000 store, ... connection between the ASP.NET interface and the data store. ... We have the SQL Server set up as mixed mode security. ...
    (microsoft.public.dotnet.framework.aspnet.security)