473,471 Members | 4,687 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Use array in SQL 2005?

8 New Member
Hi all,
I have a webpage with a timesheet. Tthe user can fill in name, number, location etc and the hours (s)he worked froom sunday to saturday. These hours can be entered in a matrix: 7 columns (=days in a week), 8 rows. Each row is unique in that it has different attributes like location where worked etc. But all rows belong to the same employee. I have a datamodel with a hours table that has columns for each unique matrixrow - days sun to sat and a few attributes that are specific for the row (the row still being the equivalent of a workweek + a few attributes). Now I don't know in advance how many of these rows the user will fill in. (S)He will submit at least one and at most 8. I made a stored procedure that stores the data - all data on the timesheet: personnel data as well as the hours worked. Do I have to call the stored procedure as many times as the user filled in rows in the hours matrix OR can I call the sp once, send it an array for each row in the hours matrix and do an insert while looping? I guess I need arrays for this - or create comma separated strings. What is the best solution in SQL 2005?
Oct 23 '06 #1
0 3815

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

Similar topics

1
by: ZMAN | last post by:
Hello all! Going Nuts with this array. My goal is to have a time system report on delinquent time that looks like this. Tom Doe Tom@workplace.com. Entered: 0
6
by: Belmin | last post by:
I have an array. The array key is the id of the item (for example categories, 91 is the ID of the category) all ID are not exactly in date order, but they're added to the array in date order, how...
4
by: Michael Hill | last post by:
If I have this array like: var XXXX = new Array( "('2003','45.24','.2',true,true)", "('2004','45.75','.25')", "('2005','46.01','.27')", ); and have identified the array as "selectedArray"...
4
by: Wayne Wengert | last post by:
Using VB.NET I want to read in an XML file that has an array of objects and then step through the resulting array in code. I build a class to define the structure and I am running code to read in...
11
by: truckaxle | last post by:
I am trying to pass a slice from a larger 2-dimensional array to a function that will work on a smaller region of the array space. The code below is a distillation of what I am trying to...
204
by: Alexei A. Frounze | last post by:
Hi all, I have a question regarding the gcc behavior (gcc version 3.3.4). On the following test program it emits a warning: #include <stdio.h> int aInt2 = {0,1,2,4,9,16}; int aInt3 =...
15
by: Geoff Cox | last post by:
Hello, Can I separately declare and initialize a string array? How and where would I do it in the code below? It was created using Visual C++ 2005 Express Beta 2 ... In C# I would have ...
11
by: Geoff Cox | last post by:
Hello, I am trying to get a grip on where to place the initialization of two arrays in the code below which was created using Visual C++ 2005 Express Beta 2... private: static array<String^>^...
2
by: Prince of Code | last post by:
Hey Guys Lets assume we have two arrays one bug array - main array another user array - sub array The bug array contains the id of the user to whom the bug is assigned to. This Id is present...
10
by: Bob Bedford | last post by:
Hi all, it's there any simple way to create an array of years and months dynamically (2 loops) for an associative array ? I've tried this so far: (having an error on last line with the "=>"...
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
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...
1
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
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.