Avatar billede trinerafn Nybegynder
19. januar 2006 - 14:04 Der er 13 kommentarer og
1 løsning

Begrænsninger i tabeller og forespørgsler

Jeg sidder med en database, hvor der skal være mange felter i "hovedtabellen". Jeg har hørt at der kan være 250 felter i en tabel, så jeg har delt hovedtabellen op i flere, som jeg så forbinder med en til en relationer. Mit problem er at jeg p.t. har ca. 150 felter bag "hovedformens" forespørgsel, og jeg kommer da nemt over 250. Så er der en der kan fortælle mig hvormange felter (er det det Thomas Jepsen kalder postsættet) kan der være bag en forespørgsel. Det nytter jo ikke at jeg deler forespørgslen op i flere, hvis man kun max. kan hive 250 felter ned i forespørgselsgitteret. Hvis der er en der kan svare, skal det kunne dokumenteres, evt. henvisning til Microsoft el.desl.
Avatar billede jensen363 Forsker
19. januar 2006 - 14:07 #1
Der er mig bekendt de samme begrænsninger i antallet af felter som kan returneres i en forespørgsel :o(
Avatar billede jensen363 Forsker
19. januar 2006 - 14:10 #2
Grænsen er 255 for at være helt præcis
Avatar billede trinerafn Nybegynder
19. januar 2006 - 14:12 #3
>jensen 363. Undskyld hvad er det lige du siger til mig der?
Avatar billede trinerafn Nybegynder
19. januar 2006 - 14:14 #4
Ok, kan du henvise til dokumentation?
Avatar billede jensen363 Forsker
19. januar 2006 - 14:14 #5
Jeg fortæller dig, hvor mange felter/kolonner der kan være bag en forespørgsel, er det ikke det du efterspørger ????

http://office.microsoft.com/da-dk/assistance/HP051868081030.aspx
Avatar billede terry Ekspert
19. januar 2006 - 14:15 #6
Trine, if you need more than 255 field son one form then I have a feeling that you have a design problem. If the database is normalized then this very likley would leed to a main form with one or more sub forms. In all my 20+ years as a programmer I havnet yet hit the limit.
Avatar billede terry Ekspert
19. januar 2006 - 14:17 #7
If for some reason you do need more than 255 then make a related table and then have two suub forms on your main form so that it just looks like one form
Avatar billede trinerafn Nybegynder
19. januar 2006 - 14:25 #8
>Jensen363, Tak for hjælpen, det var lige det link, jeg skulle bruge.
>Terry, Hi Terry, I started up with af TabControl, dividing up into tabs with subforms on, but I couldn't get it to work, with my "search form", so now I'm back to a main form with a query behind that covers all data. I would be very happy if you could look at it sometime. Maybe I should make a new question. Mvh. Trine
Avatar billede jensen363 Forsker
19. januar 2006 - 14:25 #9
Anytime :o)
Avatar billede jensen363 Forsker
19. januar 2006 - 14:27 #10
Jeg står også gerne til rådighed for hjælp med normalisering
Avatar billede terry Ekspert
19. januar 2006 - 14:37 #11
I can take a look and make some suggestions. If you have a requirement specification then that could help too.
Avatar billede trinerafn Nybegynder
19. januar 2006 - 20:18 #12
>Terry, I would appreciate that, but I will of course try to work some more on it myself first. Requirement specification, yeah right, when I took my Datamatiker uddannelse I worked with them, but the few times I have seen them in real life, they have been insufficient and not worth the paper they were written on. (Maybe if I ever reach to your knees in knowledge I will be so lucky to see some good ones). It's as if the users make up new demands and fields and tables as we get along. Not that it bothers me at all. I just try to solve it along the way, and it's quite exciting too. This db I think it's quite normalized, it's just there are really many informations that hangs directly together with the "Project Number", so the way I see it I have to divide up into one to one relations for the sake of "overskuelighed".I will try the model with a TabControl with subforms connected to the different tabs once more and if it doesn't work out I will haunt you again, I presume you've got the same email adress as earlier. Best regards Trine
Avatar billede terry Ekspert
19. januar 2006 - 20:50 #13
Hi Trine
I agree that its not very often one see's good documentation and I must admit that its not always something I've been very good at either. But over the years I've found that having one does have a number of advantages.

Yes I still have the same email. I'de better warn you though, that I'm rather busty so I may not be able to respond promptly, but I can promise that I will.

mvh
Terry
Avatar billede terry Ekspert
20. januar 2006 - 09:17 #14
"I'm rather busty"!!!

Sorry, better change that to "I'm rather busy" :o)
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Dyk ned i databasernes verden på et af vores praksisnære Access-kurser

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester