on 03-25-2010 11:29 AM
Hi Experts,
I would make additional user authorization for some UserDefinedTable (UDT).
I have no problem in doing it by hand. Now I would try to automate this stuff.
Suppose I have an UDT called TRUCKS (belongs to @TRACKS table).
When I open the UDT form, I can read the Form Type. Suppose the FormType is '11005'.
Yes, of course, If I make this table on a new company most likely the FormType changes.
I have done a little test.
SELECT TblNum FROM OUTB WHERE TableName = 'TRUCKS';
On a system where the FormType is '11005' the query returns 5.
On a system where the FormType is '11011' the query returns 11.
So I can automate the process by retrieving the TblNum, add it to 11000 and cast it as string.
It is correct this method or I can't make assumption about the FormType of UDT?
Thanks in advance.
Carmine
Jànos confirms my intuition. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Yes, your are right, this is always true to receive the formid of a UDT
SELECT 11000 + TblNum FROM OUTB
Regards,
J
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.