473,408 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Automatic creation of DB fields.

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 1228
ck9663
2,878 Expert 2GB
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
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 Expert 1GB
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.......123456
Microsoft............2.......456789
AppleInc.............1......345677

etc
Apr 1 '08 #4
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.......123456
Microsoft............2.......456789
AppleInc.............1......345677

etc

it should increase like this

ie

CompanyName........AccountNo1......AccountNo2..... ..AccountNo3 goes onnnn
Microsoft...................123456............2324 2343..............354543534
Microsoft...................456789............3423 423..................23424234


but it shld increase at runtime.

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

-- CK
Apr 1 '08 #6
deric
92
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
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...
7
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....
1
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...
3
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...
58
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...
16
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...
0
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...
7
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...
3
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.