Article View: borland.public.cppbuilder.database.ado
Article #4336Re: Access to field of type 'uniqueidentifier' on SQL7?
From: Frost Sheila
Date: Wed, 13 Feb 2002 18:52
Date: Wed, 13 Feb 2002 18:52
46 lines
2735 bytes
2735 bytes
Baris YURTCU wrote: >>>I also tried "SELECT Uniqf, Field2, Field3 FROM dbo.myTable". But the >>> > result > >>>is same. >>> >> >>I also noticed that in your first post you had: >> >> Edit1->Text=DataModule1->DataSource1->DataSet->FieldValues["Uniqf"]; >> >>but you mentioned the field name is UniqueIdentifier, is that correct? >> > > No, not field NAME. I mentioned the field TYPE is uniqueidentifier. (for > example, Field2's type is varchar. Like that, Uniqf field's type is > uniqueidentifier) > > >>Another suggestion I would make is to be sure your connection is >>becomming active. If it is not then you would also get the Field Not >>Found error. >> > > I am sure connection is active. At design time, I put a DBEdit onto my form > and set it's DataSource property to 'DataSource1'. Then I click it's > combobox of DataField property, a list appears and all fields of myTable are > there (for example Field2, Field3). But the field Uniqf is not. > > >>If that doesn't help let me know, I will try to throw out some more >>ideas. :) >> >> > > :) Thanks for your interest David. > Baris. > > > May it be that uniqueidentifyer fields identify the row with a 'Uniqe' value wich wouldnt be transmitted to an Normal user? These Fields are usaly the sole property of the Database, so they dont get transmitted to an Application. Perhaps you get the Field by logging on as 'sa'.
Technical Details
Message-ID:
<3C6AB5E4.7010701@gmx.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!newsfeed.wirehub.nl!news-hub.cableinet.net!blueyonder!easynet-quince!easynet.net!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3c5b4d26_2@dnews> <3C5EB03F.2000309@kalos-inc.com> <3c5fe200_1@dnews> <3C61603F.3040707@kalos-inc.com> <3c63df83_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,63e18f51711dcbf X-Google-Attributes: gid10698b,public X-Google-Thread: fc5f9,63e18f51711dcbf X-Google-Attributes: gidfc5f9,public X-Google-ArrivalTime: 2002-02-13 10:55:43 PST Message-ID: <3C6AB5E4.7010701@gmx.de> Date: Wed, 13 Feb 2002 19:52:20 +0100 From: Frost Sheila <OldMaster@gmx.de> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: en-us, zh, zh-cn, zh-tw, ja, ko MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.ado,borland.public.cppbuilder.database.sqlservers Subject: Re: Access to field of type 'uniqueidentifier' on SQL7? References: <3c5b4d26_2@dnews> <3C5EB03F.2000309@kalos-inc.com> <3c5fe200_1@dnews> <3C61603F.3040707@kalos-inc.com> <3c63df83_2@dnews> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.23.64.4 X-Trace: dnews 1013626341 213.23.64.4 (13 Feb 2002 10:52:21 -0800) Lines: 50 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!newsfeed.wirehub.nl!news-hub.cableinet.net!blueyonder!easynet-quince!easynet.net!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews