« first day (2099 days earlier)      last day (559 days later) » 

6:31 AM
@TehShrike Thank
 
Hello.
 
Is there any way to create a a sql with show column name based on row count.

I mean, if there is 3 row in the list/table, I wanted to show Column1,Column2,Column 3
The closest solution I can find is with PIVOT
I have post a simplified table to my problem.
CREATE TABLE Employee
(
	Id bigint not null identity (1,1),
	Name nvarchar(max) not null,

	CONSTRAINT PK_Employee_Id
	PRIMARY KEY(Id)
);

GO

CREATE TABLE EmployeeListMaster
(
	Id bigint not null identity(1,1),
	EmployeeListId bigint not null,

	CONSTRAINT PK_EmployeeListMaster_Id
	PRIMARY KEY(Id),

	CONSTRAINT UNQ_EmployeeListMaster_EmployeeListId
	UNIQUE(EmployeeListId)
);

GO

CREATE TABLE EmployeeListDetail
(
	Id bigint not null identity(1,1),
	EmployeeListId bigint not null,
	EmployeeId bigint not null,
 
I am receiving a network error, at least I think that is what it is (SQL error 11). Trying to connect to a localhoast database via TCP/IP from: ODBC/wine/ubuntu.
Do I need to activate the TCP/IP connect for this case in my.cnf ?
This is the full message received:
Connectio failed:
SQLState: '01000'
SQL server error: 11 [Microsoft][ODBC SQL Driver][TCP/IP
Sockets]ConnectionOpen (PreLoginHandshake()).
Connection failed:
SQLState: '08001'
SQL Server Error: 11
[Microsoft][ODBC SQL Server Driver][TCP/IP
Sockets]General network error. Check your network
documentation.
Thanks for any help ...
 
7:34 AM
Ah ... Looks to be a Microsoft driver issue; I need a specific driver for MySQL.
 
7:50 AM
any one here?
 
 
13 hours later…
8:55 PM
I have solve my problem with an aggregate function (concat) , I settle for Employee1,Employee2,Employee3 and will parse the display in Application side
 

« first day (2099 days earlier)      last day (559 days later) »