Question : Build sitemap for website

Hi Experts.  I admit that 5% of my technical knowledge/experience relates to websites so prepare yourself for a noob question.  How do I create a sitemap for my site?  I have done a lot of reading on the web and have seen websites that will make one for you but I wanted to ask the pro's for the best way to proceed.

Thanks in advance.

-I plan to use this sitemap with the google custom search option that is on my site if that matters any

Answer : Build sitemap for website


SELECT
Asset.AssetId,
Asset.SerialNo,
MachineType.MachineTypeId,
MachineType.Description AS TypeDesc,
MachineModel.MachineModelId,
MachineModel.Description AS ModelDesc,
x.MovementDate, x.StoreName
FROM Asset
INNER JOIN Machine ON Asset.MachineId = Machine.MachineId
INNER JOIN MachineModel ON Machine.MachineModelId = MachineModel.MachineModelId
INNER JOIN MachineType ON Machine.MachineTypeId = MachineType.MachineTypeId
CROSS APPLY
(
SELECT MAX(MovementDate) MovementDate, MAX(StoreName) StoreName
FROM Store s
JOIN Movement m ON s.StoreID = m.StoreID
WHERE Asset.AssetID = m.AssetID
)x
WHERE Asset.Active = 1
Random Solutions  
 
programming4us programming4us