Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB Tools

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 02-02-2017, 03:43 AM
sktamrkar sktamrkar is offline
Member
 
Join Date: Oct 2013
Posts: 71
Default SQL Table data on label control

GM Experts,
Plz guide how to display sql table data on label control.
In detail, i have created a database in sql server 2008 with one table. I want to retreive data to label on GUI on button click. Plz give me code.


Thnx
Sandeep Kumar
Reply With Quote
  #2  
Old 02-02-2017, 08:20 AM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,335
Default

A full table in 1 label?

Single column from single row could be something like
Code:
Label1.Caption := Table1.FieldByName('fieldname').AsString();
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:28 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.