examples/mssql: Fix compilation

git-svn-id: trunk@65338 -
This commit is contained in:
wp 2021-07-01 22:26:50 +00:00
parent 4e96538dd2
commit 5079a5b9a0
2 changed files with 16 additions and 20 deletions

View File

@ -7,7 +7,7 @@ object Form1: TForm1
ClientHeight = 314
ClientWidth = 456
OnCreate = FormCreate
LCLVersion = '0.9.31'
LCLVersion = '2.3.0.0'
object DBGrid1: TDBGrid
Left = 43
Height = 195
@ -15,15 +15,15 @@ object Form1: TForm1
Width = 365
Color = clWindow
Columns = <>
DataSource = Datasource1
DataSource = DataSource1
TabOrder = 0
end
object SQLTransaction1: TSQLTransaction
Active = False
Action = caNone
Database = SybaseConnection1
left = 208
top = 32
Left = 208
Top = 32
end
object SQLQuery1: TSQLQuery
FieldDefs = <
@ -31,13 +31,11 @@ object Form1: TForm1
Name = 'srvid'
DataType = ftSmallint
Precision = -1
Size = 0
end
item
Name = 'srvstatus'
DataType = ftSmallint
Precision = -1
Size = 0
end
item
Name = 'srvname'
@ -55,7 +53,6 @@ object Form1: TForm1
Name = 'srvclass'
DataType = ftSmallint
Precision = -1
Size = 0
end
item
Name = 'srvsecmech'
@ -67,13 +64,11 @@ object Form1: TForm1
Name = 'srvcost'
DataType = ftSmallint
Precision = -1
Size = 0
end
item
Name = 'srvstatus2'
DataType = ftBCD
Precision = 10
Size = 0
end
item
Name = 'srvprincipal'
@ -87,13 +82,9 @@ object Form1: TForm1
'select * from sysservers'
)
Params = <>
left = 280
top = 32
end
object Datasource1: TDatasource
DataSet = SQLQuery1
left = 352
top = 32
Macros = <>
Left = 280
Top = 32
end
object SybaseConnection1: TSybaseConnection
Connected = False
@ -102,14 +93,19 @@ object Form1: TForm1
Transaction = SQLTransaction1
UserName = 'sa'
LogEvents = []
left = 128
Left = 128
end
object MSSQLConnection1: TMSSQLConnection
Connected = False
LoginPrompt = False
KeepConnection = False
LogEvents = []
left = 128
top = 48
Left = 128
Top = 48
end
object DataSource1: TDataSource
DataSet = SQLQuery1
Left = 372
Top = 32
end
end

View File

@ -14,7 +14,7 @@ type
{ TForm1 }
TForm1 = class(TForm)
Datasource1: TDatasource;
DataSource1: TDataSource;
DBGrid1: TDBGrid;
MSSQLConnection1: TMSSQLConnection;
SQLQuery1: TSQLQuery;