I have modified my SELECT statement in a stored procedure so that its column “Ticket” contain hyperlink to some javascript action but it gives me error saying Invalid Column Name Ticket
Set @SQL = 'Select ''<a href=' + CHAR(39) + 'javascript:editTicketByIDAction(' + CONVERT(VarChar(Max), Ticket) + ')' + CHAR(39) + '>' + CONVERT(VarChar(Max), Ticket) + '</a>'' Ticket,VendorTicket[Vendor Ticket],Comments From dbo.VendorTickets Where NotifyOn <= GetDate() And IsNull(NotifyOn,0)<>0 '
This is how it should be