User commentString
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


User commentString Expand / Collapse
Author
Message
Posted 10/3/2009 5:12:17 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/4/2009 1:40:24 PM
Posts: 4, Visits: 4
On creating users not all users have been given a standard comment. As we use staff numbers for logging on its hard to tell who this person is (quickly)

I have wrote a script to search ldap for all the users in the database but can not find a way to update this field (modify user doesn't show the option looking in the manuals). COMMEN ON USER|database also does not work.

Any ideas on how to modify this?

select databasename,commentstring from dbc.databases where databasename = 'username'

If the field I am talking about.
Post #17024
Posted 10/4/2009 12:24:28 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Yesterday @ 3:55:54 AM
Posts: 111, Visits: 263
COMMENT ON USER username AS 'anythingyoulike';
Post #17025
Posted 10/4/2009 1:43:57 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/4/2009 1:40:24 PM
Posts: 4, Visits: 4
I tried that, again, and get a 3707:

3707: Syntax error, expected something like a name or a Unicode delimited identifier between the 'USER' keyword and the string '0'.
Output directed to Answerset window

The SQL I have tried:

COMMENT ON USER '1234567' AS 'This is a test comment';
COMMENT ON USER 1234567 AS 'This is a test comment';

Any ideas?

Scratch that just tried as follows:

COMMENT ON USER "1234567" AS 'This is a test comment';

Damn quotes :-)
Post #17026
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 6:11pm

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.047. 10 queries. Compression Disabled.