Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. DECLARE @CollationName varchar(50)
  2. set @CollationName = (
  3. select collation_name
  4. from information_schema.columns
  5. where table_name = 'MeteringPointPrice' and column_name = 'MeteringPointId'
  6. )
  7.  
  8. if OBJECT_ID('tempdb..#MPLIST2') IS NOT NULL
  9. drop table #MPLIST2
  10. if @CollationName = 'SQL_Danish_Pref_CP1_CI_AS'
  11. create table #MPLIST2 (MeteringPointId varchar(18) COLLATE SQL_Danish_Pref_CP1_CI_AS)
  12. if @CollationName = 'Danish_Norwegian_CI_AS'
  13. create table #MPLIST2(MeteringPointId varchar(18) COLLATE Danish_Norwegian_CI_AS)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement