title: Issue with SQL variable
body: <p>Please could someone help me understand, why when I run the below SQL code it returns an "s". But when I run the SQL portion on its own it returns the correct value "DaisyRates_May2014"</p>
  
  <p>Full code:</p>
  
  <pre><code>DECLARE @tablevalue varchar
  
  SET @tablevalue = 'select distinct [BillingReferenceData].[dbo].[Customers].[Tariff]
  from [daisybilling].[dbo].[APRW14_FFA68878_Calls]
  inner join [BillingReferenceData].[dbo].[Customers] on [DaisyBilling].[dbo].[APRW14_FFA68878_Calls].[Customer Lookup] = [BillingReferenceData].[dbo].[Customers].[Customer ID]
  where [DaisyBilling].[dbo].[APRW14_FFA68878_Calls].[Customer Lookup] = [BillingReferenceData].[dbo].[Customers].[Customer ID]'
  
  Select @tablevalue
  </code></pre>
  
  <p>SQL on its own:</p>
  
  <pre><code>'select distinct [BillingReferenceData].[dbo].[Customers].[Tariff]
  from [daisybilling].[dbo].[APRW14_FFA68878_Calls]
  inner join [BillingReferenceData].[dbo].[Customers] on [DaisyBilling].[dbo].[APRW14_FFA68878_Calls].[Customer Lookup] = [BillingReferenceData].[dbo].[Customers].[Customer ID]
  where [DaisyBilling].[dbo].[APRW14_FFA68878_Calls].[Customer Lookup] = [BillingReferenceData].[dbo].[Customers].[Customer ID]
  </code></pre>
  
  <p>Thanks</p>