473,698 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Automatic creation of DB fields.

10 New Member
i hv to increase my Database fields at runtime.
Example: i am hving fields like

1.company name

2. account number.

i hv to increase many account number for single company name.

how can i dynamically increase the field ie.(account number field).

FrontEnd - ASP.NET(C#)
BackEnd - SQL Server2005
Apr 1 '08 #1
6 1241
ck9663
2,878 Recognized Expert Specialist
i hv to increase my Database fields at runtime.
Example: i am hving fields like

1.company name

2. account number.

i hv to increase many account number for single company name.

how can i dynamically increase the field ie.(account number field).

FrontEnd - ASP.NET(C#)
BackEnd - SQL Server2005
Increase size/length?

-- CK
Apr 1 '08 #2
tina2626
10 New Member
Increase size/length?

-- CK

Thankz for reply me,

i m not asking that, i m asking abt increase column,

like account number1, account number2........ ............
Apr 1 '08 #3
Delerna
1,134 Recognized Expert Top Contributor
Hi tina2626.
If i understand you correctly, your tables should be designed so that the quantity of account numbers for a company grows vertically.

IE
CompanyName Count AccountNo
Microsoft...... ......1.......1 23456
Microsoft...... ......2.......4 56789
AppleInc....... ......1......34 5677

etc
Apr 1 '08 #4
tina2626
10 New Member
Hi tina2626.
If i understand you correctly, your tables should be designed so that the quantity of account numbers for a company grows vertically.

IE
CompanyName Count AccountNo
Microsoft...... ......1.......1 23456
Microsoft...... ......2.......4 56789
AppleInc....... ......1......34 5677

etc

it should increase like this

ie

CompanyName.... ....AccountNo1. .....AccountNo2 .......AccountN o3 goes onnnn
Microsoft...... .............12 3456........... .23242343...... ........3545435 34
Microsoft...... .............45 6789........... .3423423....... ...........2342 4234


but it shld increase at runtime.

no account number creation at the time of table creation.
Apr 1 '08 #5
ck9663
2,878 Recognized Expert Specialist
You might want to follow Delerna's structure.

-- CK
Apr 1 '08 #6
deric
92 New Member
Yeah, I also suggest you design your table similar to what Delerma suggested. Your idea is so complex that it comes with several issues. If you need more help, let us know.
Apr 2 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1757
by: Ido | last post by:
Hello, I am searching for an automatic forms creation tool that will help me to save time in developin forms (preferrably with validation). My forms get some data from a MySQL database and are supposed to save all data back to the database. Any recommendations!?
7
3660
by: svilen | last post by:
hello again. i'm now into using python instead of another language(s) for describing structures of data, including names, structure, type-checks, conversions, value-validations, metadata etc. And i have things to offer, and to request. And a lot of ideas, but who needs them.... here's an example (from type_struct.py):
1
1219
by: Phino | last post by:
Hi there, I need some help in order to reduce the amount of code needed to implement the logging of INSERT and UPDATE in my application's database. In every table of my database I have four fields (CreatedBy, CreatedTime, ModifiedBy, ModificatedTime), these fields allow me to trace the users who create and modify the registers in my application. I know that I can add in every stored procedure a piece of code who
3
1461
by: Mark | last post by:
Hi all, I am trying to add 4 fields to an existing table which will show record creation date and time and record update date and time. I have managed to do the creation date and time ok by adding a default value to the fields on the form of =Now(). My problem begins when I try to get the updated field filled in automatically. I just can't think how to do it. Many thanks in advance for any suggestions Mark
58
4654
by: Jorge Peixoto de Morais Neto | last post by:
I was reading the code of FFmpeg and it seems that they use malloc just too much. The problems and dangers of malloc are widely known. Malloc also has some overhead (although I don't know what is the overhead of automatic variable sized arrays, I suspect it is smaller than that of malloc), although I'm not too worried about it. I was thinking that, with C99's variable length arrays, malloc shouldn't be needed most of the time. But I'm...
16
1780
by: nkoriginal | last post by:
I want an automatic insert. I've an ASP page with more than 50 fields (form) and I want to an insert all that information in a table in SQL server 2005. Now, I've statments for insert BUT I need to create en automatic insert, because sometimes I need to add new fields or remove some fields (from HTML form page), and I dont want to modify the insert statment every time I add a new field I dont know if I explained my idea. I really...
0
1464
by: cephal0n | last post by:
Hi All! I have two table tblHome1, contains all the unique PinNo and tblHome2 contains a duplicated PinNo and description. I put an automatic numbering (ProdID) and set it as my index. What I want to do is make an automatic filtering and labeling method for my table. The reason for this is because I m handling more than 500 records and labeling them would take me forever, so I started with what I can understand, which is seeking 5 records...
7
1249
by: Author | last post by:
I wrote a simple Person class with Visual C# 2008 Express Edition, in which I define two properties: FirstName and LastName. If I use the new c# automatic property feature, it *compiles with no problem*, but I don't get the value through the property. If I use the regular old style property definition, then it works perfect. // does not work
3
11833
by: Author | last post by:
If we do automatic property, we don't declare the private fields because the compiler will generate them for us. Then, how do we implement a constructor that takes the private fields as its parameters? For example, the following Person class uses the automatic property feature. class Person
0
9155
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9018
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8858
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7711
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4360
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4614
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3038
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2322
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.