Click here to Skip to main content
15,910,121 members
Home / Discussions / Database
   

Database

 
GeneralRe: Date format Pin
Mike Dimmick2-Apr-04 5:34
Mike Dimmick2-Apr-04 5:34 
GeneralLimiting a text field Pin
monrobot131-Apr-04 9:10
monrobot131-Apr-04 9:10 
GeneralStored Proc Newbie Pin
quilkin1-Apr-04 6:26
quilkin1-Apr-04 6:26 
GeneralRe: Stored Proc Newbie Pin
Colin Angus Mackay1-Apr-04 6:58
Colin Angus Mackay1-Apr-04 6:58 
GeneralRe: Stored Proc Newbie Pin
quilkin1-Apr-04 10:16
quilkin1-Apr-04 10:16 
GeneralRe: Stored Proc Newbie Pin
Colin Angus Mackay1-Apr-04 10:30
Colin Angus Mackay1-Apr-04 10:30 
GeneralRe: Stored Proc Newbie Pin
quilkin2-Apr-04 11:12
quilkin2-Apr-04 11:12 
GeneralRe: Stored Proc Newbie Pin
Colin Angus Mackay2-Apr-04 12:03
Colin Angus Mackay2-Apr-04 12:03 
chris fearnley wrote:
The procs are working now anyway.

Excellent.

I have actually thought of another possible solution. It may be possible to have a combined primary key on your tables, the extra field for the primary key would be the based on the serial number you mention above. If this is too much repetition of data (I'm guessing the serial numbers are quite long) you can set up a lookup table that contains all the relevant serial numbers and use its primary key in the main (original) table.

For example:
   +----+--------------+
   | PK | SerialId     |
   |    | SerialNumber |
   +----+--------------+
             |
             |
            /|\
+--------+----------------+
| PK, FK | SerialId       | 
| PK     | OriginalId     |
|        | OriginalField1 |
|        | OriginalField2 |
+--------+----------------+


With this schema your stored procedures would only need to add an extra item to the where clause to get the same effect has lots of tables with identical schema.


chris fearnley wrote:
If your SQL experience covers security issues, and you know what "21CFRpart11" is, I could do with your help on a paid basis

Unfortunately my knowledge of Security is about average for a developer (in other words: quite limited), although I am due to go on some courses later this year. However, this doesn't help your current situation. Thanks for the offer anyway.


"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar

"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)


GeneralRe: Stored Proc Newbie Pin
Jeff Martin1-Apr-04 10:32
Jeff Martin1-Apr-04 10:32 
GeneralMerging Views in ADO.NET Pin
Gary Hyslop1-Apr-04 4:32
Gary Hyslop1-Apr-04 4:32 
GeneralRe: Merging Views in ADO.NET Pin
-Dr_X-1-Apr-04 16:24
-Dr_X-1-Apr-04 16:24 
GeneralRe: Merging Views in ADO.NET Pin
Gary Hyslop2-Apr-04 8:54
Gary Hyslop2-Apr-04 8:54 
Generala query suing Time format Pin
Brutaldeath01-Apr-04 3:19
sussBrutaldeath01-Apr-04 3:19 
GeneralRe: a query suing Time format Pin
Colin Angus Mackay1-Apr-04 3:30
Colin Angus Mackay1-Apr-04 3:30 
GeneralRe: a query suing Time format Pin
Colin Angus Mackay1-Apr-04 3:35
Colin Angus Mackay1-Apr-04 3:35 
GeneralRe: a query suing Time format Pin
peterzorbas3-Apr-04 12:10
peterzorbas3-Apr-04 12:10 
GeneralMS Access Transactions Pin
opopov31-Mar-04 6:54
opopov31-Mar-04 6:54 
GeneralRe: MS Access Transactions Pin
Xiangyang Liu 刘向阳31-Mar-04 7:53
Xiangyang Liu 刘向阳31-Mar-04 7:53 
GeneralRe: MS Access Transactions Pin
opopov31-Mar-04 8:37
opopov31-Mar-04 8:37 
QuestionDataSets with Serialization? Pin
docdeath31-Mar-04 6:33
docdeath31-Mar-04 6:33 
GeneralSQL Server and MSDE Pin
Prasad N31-Mar-04 2:00
Prasad N31-Mar-04 2:00 
GeneralRe: SQL Server and MSDE Pin
Mazdak31-Mar-04 2:25
Mazdak31-Mar-04 2:25 
Questionhow to convert a PL/SQL stored procedure Pin
M. Abubakar29-Mar-04 6:32
M. Abubakar29-Mar-04 6:32 
AnswerRe: how to convert a PL/SQL stored procedure Pin
David Salter30-Mar-04 3:11
David Salter30-Mar-04 3:11 
Generalcolumn iterate Pin
JakubSK29-Mar-04 6:19
JakubSK29-Mar-04 6:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.