Tuesday, April 19, 2016

Script to open ports for SQL Server

For years now, I've been using a netsh batch script to manage SQL Server firewall ports (see below). I recall picking this up on MSDN (How to open firewall ports for SQL Server).

All well and good, but Windows has moved to PowerShell, and it's time to upgrade.  Fortunately, Ryan Mangan has created a PowerShell script to replace the old netsh script.  You can find it here: PowerShell Script for SQL Firewall rules - Ryan Mangan. And another one at Scripts to open Windows Firewall Ports for SQL Server - brankovucinec.com.

For reference, here is an older copy of the port change script using the netsh commands - which still works:

       

@echo =========  SQL Server Ports  ===================
@echo Source:
@echo   http://support.microsoft.com/kb/968872
@echo ================================================  
@echo Enabling SQLServer default instance port 1433
netsh firewall set portopening TCP 1433 "SQLServer" 
@echo Enabling Dedicated Admin Connection port 1434
netsh firewall set portopening TCP 1434 "SQL Admin Connection" 
@echo Enabling conventional SQL Server Service Broker port 4022  
netsh firewall set portopening TCP 4022 "SQL Service Broker" 
@echo Enabling Transact-SQL Debugger/RPC port 135 
netsh firewall set portopening TCP 135 "SQL Debugger/RPC" 
@echo =========  Analysis Services Ports  ==============
@echo Enabling SSAS Default Instance port 2383
netsh firewall set portopening TCP 2383 "Analysis Services" 
@echo Enabling SQL Server Browser Service port 2382
netsh firewall set portopening TCP 2382 "SQL Browser" 
@echo =========  Misc Applications  ==============
@echo Enabling HTTP port 80 
netsh firewall set portopening TCP 80 "HTTP" 
@echo Enabling SSL port 443
netsh firewall set portopening TCP 443 "SSL" 
@echo Enabling HTTP port 300 Master Data Services 
netsh firewall set portopening TCP 300 "HTTP" 
@echo Enabling port for SQL Server Browser Service's 'Browse' Button
netsh firewall set portopening UDP 1434 "SQL Browser" 
@echo Allowing multicast broadcast response on UDP (Browser Service Enumerations OK)
netsh firewall set multicastbroadcastresponse ENABLE 

-- for tabular on Windows10, based on error message back usingSSMS
netsh firewall set portopening TCP 50523 "Analysis TAb Services" 
       
 

Monday, April 18, 2016

What is the proper key for the clustered index?

In data modeling a table one of the more difficult questions is: should my primary key (PK) have a clustered or non-clustered index? One of the best answers I've seen for this question has been posted on StackExchange. The answer starts by rephrasing the question:

What is the proper key for the clustered index?  

Here is cited copy of response. With a link below to the full listing.



The question is not 'when should the PK be NC', but instead you should ask 'what is the proper key for the clustered index'?  And the answer really depends on how do you query the data. 

The clustered index has an advantage over all other indexes: since it always includes all columns, is always covering. Therefore queries that can leverage the clustered index certainly do not need to use lookups to satisfy some of the projected columns and/or predicates. 

Another piece of the puzzle is how can an index be used? There are three typical patterns: 


  • probes, when a single key value is seek-ed in the index 
  • range scans, when a range of key values is retrieved 
  • order by requirements, when an index can satisfy an order by w/o requiring a stop-and-go sort 


So if you analyze your expected load (the queries) and discover that a large number of queries would use a particular index because they use a certain pattern of access that benefits from an index, it makes sense to propose that index as the clustered index. 

Yet another factor is that the clustered index key is the lookup key used by all non-clustered indices and therefore a wide clustered index key creates a ripple effect and widens all the non-clustered indices and wide indices mean more pages, more I/O, more memory, less goodness. 

A good clustered index is stable, it does not change during the lifetime of the entity, because a change in the clustered index key values means the row has to be deleted and inserted back. 

And a good clustered index grows in order not randomly (each newly inserted key value is larger than the preceding value) as to avoid page splits and fragmentation (without messing around with FILLFACTORs). 

So now that we know what a good clustered index key is, does the primary key (which is a data modelling logical property) match the requirements? If yes, then the PK should be clustered. If no, then the PK should be non-clustered. 

To give an example, consider a sales facts table. Each entry has an ID that is the primary key. But the vast majority of queries ask for data between a date and another date, therefore the best clustered index key would be the sales date, not the ID. Another example of having a different clustered index from the primary key is a very low selectivity key, like a 'category', or a 'state', a key with only very few distinct values. Having a clustered index key with this low selectivity key as the leftmost key, e.g. (state, id), often makes sense because of ranges scans that look for all entries in a particular 'state'. 

One last note about the possibility of a non-clustered primary key over a heap (i.e. there is no clustered index at all). This may be a valid scenario, the typical reason is when bulk insert performance is critical, since heaps have significantly better bulk insert throughput when compared to clustered indices.

this answer edited Dec 1 '12 at 4:31 Paul White
answered Nov 10 '11 at 22:39 Remus Rusanu 
originally posted at: 
http://dba.stackexchange.com/questions/7741/when-should-a-primary-key-be-declared-non-clustered

You can read the full listing on Stackexchange
here: When should a primary key be declared non-clustered?

Monday, April 11, 2016

SSMS - Now a stand-alone, separate tool from SQL Server

If you have been working with SQL Server 2016, you may have noticed that SQL Server Management Studio (SSMS) now has a separate install. 

In an interview posted April 5, 2016 on SQLSentry, Ken Van Hyning, Microsoft's Engineering Manager for SQL Server Client Tools outlined the future for SSMS, and a big part of that future is as a stand-alone, universal tool. A tool that is installed and updated separately from the core bits of SQL Server. And one that can work with all version of SQL Server, including the upcoming Linux variant.  This is welcome news.

Still, this all began back in 2015, with an initial solo release of SSMS. And going forward, we'll be able to install the current version of SSMS regardless of the servers on the backend. One tool to manage them all! Plus, Van Hyning suggested that going forward, there would be monthly updates, improvements to performance & reliability and to start to address the long list of customer requests. You can read the full interview here:  An Interview with Microsoft's Ken Van Kyning.

You can download the current or earlier version here:
Download SQL Server Management Studio (SSMS)
Previous SQL Server Management Studio Releases

For early versions of 2016 (CTP & RC's), we had install issues, and often had to use a command line to install. With the official general availability (GA) release, install was straight forward. If you do find that the install fails, this might help  - see SQL Server 2016 - SSMS - How to Install  for tips on how to install SSMS for your 2016 installation.

Tuesday, April 5, 2016

Province Lookup Table

On occasion I've needed a lookup table for states and provinces. The following DDL and DML are my typical starting point. You can adjust it as needed. The second scrip includes states and provinces for the U.S., Canada and Australia.  ( see Country Code Dimension or Lookup Table)

DDL for the Province table:

       

use yourdatabase;
go


if exists (select * from sys.objects where object_id = object_id(N'dbo.Province'))
  drop table dbo.Province
  go

 CREATE TABLE dbo.Province
 (
  ProvinceKey  smallint  IDENTITY (1,1) ,
  CountryKey  smallint not null,    -- FK  
  ProvinceCode  nvarchar(50)  NOT NULL ,
  ProvinceLongName  nvarchar(100) not NULL ,
  ProvinceShortName    nvarchar(50)  NULL ,
  ProvinceDesc  nvarchar(255)  NULL ,     
  SortOrder  smallint  NOT NULL ,
  AuditKey int  NOT NULL ,
  CONSTRAINT  PK_Province PRIMARY KEY (ProvinceKey  ASC),
  --  CONSTRAINT  FK_Province_Country_CountryKey FOREIGN KEY (CountryKey) REFERENCES  dbo.Country(CountryKey)  
 )
 go

  -- AK
  CREATE  UNIQUE INDEX AK_ProvinceProvinceCode ON dbo.Province ( CountryKey, ProvinceCode  ASC  )
  go
  CREATE  UNIQUE INDEX AK_ProvinceProvince_Long_Name ON dbo.Province ( CountryKey, ProvinceLongName  ASC)
  go
  CREATE  UNIQUE INDEX AK_ProvinceProvince_Short_Name ON dbo.Province ( CountryKey, ProvinceShortName  ASC)
  go

       
 


DML to initially populate the table:

       

/*  -------------------------------------

 ----------------------------
 Province Populate Listing
 ----------------------------
 - country table required
 - Countries SPECIFIC MAP BY ID

    ------------------------------------- */
use yourdatabase;
go


   
SET IDENTITY_INSERT [dbo].[Province] ON
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (1, 8, N'AB', N'Alberta', N'AB', N'', 10, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (4, 8, N'BC', N'British Columbia', N'BC', N'', 20, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (5, 8, N'MB', N'Manitoba', N'MB', N'', 30, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (6, 8, N'NB', N'New Brunswick', N'NB', N'', 40, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (7, 8, N'NL', N'Newfoundland and Labrado', N'NL', N'', 50, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (8, 8, N'NS', N'Nova Scotia', N'NS', N'', 60, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (9, 8, N'NU', N'Nunavut', N'NU', N'', 70, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (10, 8, N'ON', N'Ontario', N'ON', N'', 80, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (11, 8, N'PE', N'Prince Edward Island', N'PE', N'', 90, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (12, 8, N'QC', N'Quebec', N'QC', N'', 100, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (13, 8, N'SK', N'Saskatchewan', N'SK', N'', 110, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (14, 8, N'YT', N'Yukon Territory', N'Yukon', N'', 120, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (15, 1, N'ACT', N'Australian Capital Territory', N'Aus Capital', N'', 10, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (16, 1, N'QLD', N'Queensland', N'Queensland', N'', 10, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (17, 1, N'VIC', N'Victoria', N'Victoria', N'', 10, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (18, 1, N'NSW', N'New South Wales', N'NS Wales', N'', 10, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (19, 1, N'SA', N'South Australia', N'S. Aus.', N'', 10, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (20, 1, N'WA', N'Western Australia', N'W. Aus.', N'', 10, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (21, 1, N'NT', N'Northern Territory', N'N. Terr.', N'', 10, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (22, 1, N'TAS', N'Tasmania', N'Tasmania', N'', 10, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (23, 4, N'Scotland', N'Scotland', N'Scotland', N'', 10, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (24, 4, N'England', N'England', N'England', N'', 10, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (25, 4, N'Wales', N'Wales', N'Wales', N'', 10, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (26, 4, N'Northern Ireland', N'Northern Ireland', N'N. Ireland', N'', 10, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (27, 2, N'AK', N'Alaska', N'Alaska', N'', 270, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (28, 2, N'AL', N'Alabama', N'Alabama', N'', 280, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (29, 2, N'AR', N'Arkansas', N'Arkansas', N'', 290, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (30, 2, N'AZ', N'Arizona', N'Arizona', N'', 300, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (31, 2, N'CA', N'California', N'California', N'', 310, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (32, 2, N'CO', N'Colorado', N'Colorado', N'', 320, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (33, 2, N'CT', N'Connecticut', N'Connecticut', N'', 330, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (34, 2, N'DC', N'District of Columbia', N'District of Columbia', N'', 340, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (35, 2, N'DE', N'Delaware', N'Delaware', N'', 350, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (36, 2, N'FL', N'Florida', N'Florida', N'', 360, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (37, 2, N'GA', N'Georgia', N'Georgia', N'', 370, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (38, 2, N'HI', N'Hawaii', N'Hawaii', N'', 380, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (39, 2, N'IA', N'Iowa', N'Iowa', N'', 390, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (40, 2, N'ID', N'Idaho', N'Idaho', N'', 400, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (41, 2, N'IL', N'Illinois', N'Illinois', N'', 410, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (42, 2, N'IN', N'Indiana', N'Indiana', N'', 420, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (43, 2, N'KS', N'Kansas', N'Kansas', N'', 430, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (44, 2, N'KY', N'Kentucky', N'Kentucky', N'', 440, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (45, 2, N'LA', N'Louisiana', N'Louisiana', N'', 450, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (46, 2, N'MA', N'Massachusetts', N'Massachusetts', N'', 460, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (47, 2, N'MD', N'Maryland', N'Maryland', N'', 470, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (48, 2, N'ME', N'Maine', N'Maine', N'', 480, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (49, 2, N'MI', N'Michigan', N'Michigan', N'', 490, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (50, 2, N'MN', N'Minnesota', N'Minnesota', N'', 500, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (51, 2, N'MO', N'Missouri', N'Missouri', N'', 510, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (52, 2, N'MS', N'Mississippi', N'Mississippi', N'', 520, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (53, 2, N'MT', N'Montana', N'Montana', N'', 530, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (54, 2, N'NC', N'North Carolina', N'North Carolina', N'', 540, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (55, 2, N'ND', N'North Dakota', N'North Dakota', N'', 550, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (56, 2, N'NE', N'Nebraska', N'Nebraska', N'', 560, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (57, 2, N'NH', N'New Hampshire', N'New Hampshire', N'', 570, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (58, 2, N'NJ', N'New Jersey', N'New Jersey', N'', 580, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (59, 2, N'NM', N'New Mexico', N'New Mexico', N'', 590, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (60, 2, N'NV', N'Nevada', N'Nevada', N'', 600, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (61, 2, N'NY', N'New York', N'New York', N'', 610, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (62, 2, N'OH', N'Ohio', N'Ohio', N'', 620, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (63, 2, N'OK', N'Oklahoma', N'Oklahoma', N'', 630, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (64, 2, N'OR', N'Oregon', N'Oregon', N'', 640, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (65, 2, N'PA', N'Pennsylvania', N'Pennsylvania', N'', 650, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (66, 2, N'RI', N'Rhode Island', N'Rhode Island', N'', 660, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (67, 2, N'SC', N'South Carolina', N'South Carolina', N'', 670, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (68, 2, N'SD', N'South Dakota', N'South Dakota', N'', 680, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (69, 2, N'TN', N'Tennessee', N'Tennessee', N'', 690, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (70, 2, N'TX', N'Texas', N'Texas', N'', 700, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (71, 2, N'UT', N'Utah', N'Utah', N'', 710, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (72, 2, N'VA', N'Virginia', N'Virginia', N'', 720, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (73, 2, N'VT', N'Vermont', N'Vermont', N'', 730, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (74, 2, N'WA', N'Washington', N'Washington', N'', 740, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (75, 2, N'WI', N'Wisconsin', N'Wisconsin', N'', 750, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (76, 2, N'WV', N'West Virginia', N'West Virginia', N'', 760, 1)
INSERT [dbo].[Province] ([ProvinceKey], [CountryKey], [ProvinceCode], [ProvinceLongName], [ProvinceShortName], [ProvinceDesc], [SortOrder], [AuditKey]) VALUES (77, 2, N'WY', N'Wyoming', N'Wyoming', N'', 770, 1)
SET IDENTITY_INSERT [dbo].[Province] OFF

       
 

Country Code Dimension or Lookup Table

It's common for a system to need a standardized country table that holds the ISO 3166 country codes and I do not like to start from scratch for each project. Below is the being DDL and DML I use to build out the initial country table. This data is from about 2013, so it might be a bit outdated, but still easily updated if you reference the ISO 3166 Country Codes site, or the Wikipedia ISO 3166 page.

DDL to build the table:

       

use yourdatabase;
go

if exists (select * from sys.objects where object_id = object_id(N'dbo.Country'))
  drop table dbo.Country
  go

 CREATE TABLE dbo.Country
 (
  CountryKey     smallint  IDENTITY (1,1) ,
  CountryA2Code  nvarchar(2)  NOT NULL ,
  CountryA3Code  nvarchar(3)  NULL ,
  CountryNum     nvarchar(10)  NULL ,
  CountryName    nvarchar(100)  NULL ,
  CountryDesc    nvarchar(255)  NULL ,     
  SortOrder      smallint  NOT NULL ,
  AuditKey       int  NOT NULL ,
  CONSTRAINT  PK_Country_CountryKey  PRIMARY KEY (CountryKey  ASC)
 )
 go


  -- AK
  CREATE  UNIQUE INDEX AK_CountryA2 ON dbo.Country ( CountryA2Code  ASC )
  go

  CREATE  UNIQUE INDEX AK_CountryA3 ON dbo.Country ( CountryA3Code  ASC )
  go

  CREATE  UNIQUE INDEX AK_CountryNum ON dbo.Country ( CountryNum  ASC )
  go

  CREATE  UNIQUE INDEX AK_CountryName ON dbo.Country ( CountryName  ASC )
  go


       
 

DML to do the initial data population:

       

use yourdatabase;
go


SET QUOTED_IDENTIFIER ON

/* -----------------------------------------
   Country

   ----------------------------------------- */

SET IDENTITY_INSERT dbo.Country  ON

INSERT INTO dbo.Country ( CountryKey, CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES( 0,'-','-',0,'unknown',0,'A',1)
INSERT INTO dbo.Country ( CountryKey, CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES( 1,'AU','AUS',36,'Australia',130,'A',1)
INSERT INTO dbo.Country ( CountryKey, CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES( 2,'US','USA',840,'United States',2230,'A',1)
INSERT INTO dbo.Country ( CountryKey, CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES( 4,'GB','GBR',826,'United Kingdom',2220,'A',1)
INSERT INTO dbo.Country ( CountryKey, CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES( 8,'CA','CAN',124,'Canada',380,'A',1)
INSERT INTO dbo.Country ( CountryKey, CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES( 6,'FI','FIN',246,'Finland',720,'A',1)
INSERT INTO dbo.Country ( CountryKey, CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES( 7,'FR','FRA',250,'France',730,'A',1)
INSERT INTO dbo.Country ( CountryKey, CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES( 5,'IT','ITA',380,'Italy',1050,'A',1)
INSERT INTO dbo.Country ( CountryKey, CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES( 9,'SG','SGP',702,'Singapore',1880,'A',1)

SET IDENTITY_INSERT dbo.Country OFF
go

--- MORE COUNTRIES, WITHOUT FORCING THE ID
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'UM','UMI',581,'United States Minor Outlying Islands',2240,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'AF','AFG',4,'Afghanistan',10,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'AL','ALB',8,'Albania',20,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'DZ','DZA',12,'Algeria',30,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'AS','ASM',16,'American Samoa',40,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'AD','AND',20,'Andorra',50,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'AO','AGO',24,'Angola',60,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'AI','AIA',660,'Anguilla',70,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'AQ','ATA',10,'Antarctica',80,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'AG','ATG',28,'Antigua and Barbuda',90,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'AR','ARG',32,'Argentina',100,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'AM','ARM',51,'Armenia',110,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'AW','ABW',533,'Aruba',120,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'AT','AUT',40,'Austria',140,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'AZ','AZE',31,'Azerbaijan',150,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BS','BHS',44,'Bahamas',160,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BH','BHR',48,'Bahrain',170,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BD','BGD',50,'Bangladesh',180,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BB','BRB',52,'Barbados',190,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BY','BLR',112,'Belarus',200,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BE','BEL',56,'Belgium',210,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BZ','BLZ',84,'Belize',220,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BJ','BEN',204,'Benin',230,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BM','BMU',60,'Bermuda',240,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BT','BTN',64,'Bhutan',250,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BO','BOL',68,'Bolivia',260,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BA','BIH',70,'Bosnia and Herzegowina',270,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BW','BWA',72,'Botswana',280,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BV','BVT',74,'Bouvet Island',290,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BR','BRA',76,'Brazil',300,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'IO','IOT',86,'British Indian Ocean Territory',310,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BN','BRN',96,'Brunei Darussalam',320,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BG','BGR',100,'Bulgaria',330,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BF','BFA',854,'Burkina Faso',340,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'BI','BDI',108,'Burundi',350,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'KH','KHM',116,'Cambodia',360,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'CM','CMR',120,'Cameroon',370,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'CV','CPV',132,'Cape Verde',390,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'KY','CYM',136,'Cayman islands',400,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'CF','CAF',140,'Central African Republic',410,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'TD','TCD',148,'Chad',420,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'CL','CHL',152,'Chile',430,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'CN','CHN',156,'China',440,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'CX','CXR',162,'Christmas Island',450,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'CC','CCK',166,'Cocos (Keeling) Islands',460,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'CO','COL',170,'Colombia',470,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'KM','COM',174,'Comoros',480,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'CG','COG',178,'Congo',490,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'CK','COK',184,'Cook Islands',500,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'CR','CRI',188,'Costa Rica',510,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'CI','CIV',384,'Cote d‘ivoire',520,'A',1) 
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'HR','HRV',191,'Croatia (local name: Hrvatska)',530,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'CU','CUB',192,'Cuba',540,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'CY','CYP',196,'Cyprus',550,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'CZ','CZE',203,'Czech Republic',560,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'DK','DNK',208,'Denmark',570,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'DJ','DJI',262,'Djibouti',580,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'DM','DMA',212,'Dominica',590,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'DO','DOM',214,'Dominican Republic',600,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'TP','TMP',626,'East Timor',610,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'EC','ECU',218,'Ecuador',620,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'EG','EGY',818,'Egypt',630,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'SV','SLV',222,'El Salvador',640,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'GQ','GNQ',226,'Equatorial Guinea',650,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'ER','ERI',232,'Eritrea',660,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'EE','EST',233,'Estonia',670,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'ET','ETH',231,'Ethiopia',680,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'FK','FLK',238,'Falkland Islands (Malvinas)',690,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'FO','FRO',234,'Faroe Islands',700,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'FJ','FJI',242,'Fiji',710,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'FX','FXX',249,'France, Metropolitan',740,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'GF','GUF',254,'French Guiana',750,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'PF','PYF',258,'French Polynesia',760,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'TF','ATF',260,'French Southern Territories',770,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'GA','GAB',266,'Gabon',780,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'GM','GMB',270,'Gambia',790,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'GE','GEO',268,'Georgia',800,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'DE','DEU',276,'Germany',810,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'GH','GHA',288,'Ghana',820,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'GI','GIB',292,'Gibraltar',830,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'GR','GRC',300,'Greece',840,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'GL','GRL',304,'Greenland',850,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'GD','GRD',308,'Grenada',860,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'GP','GLP',312,'Guadeloupe',870,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'GU','GUM',316,'Guam',880,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'GT','GTM',320,'Guatemala',890,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'GN','GIN',324,'Guinea',900,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'GW','GNB',624,'Guinea-Bissau',910,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'GY','GUY',328,'Guyana',920,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'HT','HTI',332,'Haiti',930,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'HM','HMD',334,'Heard and Mc Donald Islands',940,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'HN','HND',340,'Honduras',950,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'HK','HKG',344,'Hong Kong',960,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'HU','HUN',348,'Hungary',970,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'IS','ISL',352,'Iceland',980,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'IN','IND',356,'India',990,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'ID','IDN',360,'Indonesia',1000,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'IR','IRN',364,'Iran (Islamic Republic of)',1010,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'IQ','IRQ',368,'Iraq',1020,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'IE','IRL',372,'Ireland',1030,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'IL','ISR',376,'Israel',1040,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'JM','JAM',388,'Jamaica',1060,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'JP','JPN',392,'Japan',1070,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'JO','JOR',400,'Jordan',1080,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'KZ','KAZ',398,'Kazakhstan',1090,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'KE','KEN',404,'Kenya',1100,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'KI','KIR',296,'Kiribati',1110,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'KP','PRK',408,'Korea (north), Democratic People’s Republic of',1120,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'KR','KOR',410,'Korea (south), Republic of',1130,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'KW','KWT',414,'Kuwait',1140,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'KG','KGZ',417,'Kyrgyzstan',1150,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'LA','LAO',418,'Lao People’s Democratic Republic',1160,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'LV','LVA',428,'Latvia',1170,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'LB','LBN',422,'Lebanon',1180,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'LS','LSO',426,'Lesotho',1190,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'LR','LBR',430,'Liberia',1200,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'LY','LBY',434,'Libyan Arab Jamahiriya',1210,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'LI','LIE',438,'Liechtenstein',1220,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'LT','LTU',440,'Lithuania',1230,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'LU','LUX',442,'Luxembourg',1240,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MO','MAC',446,'Macau',1250,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MK','MKD',807,'Macedonia, the former Yugoslav Republic of',1260,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MG','MDG',450,'Madagascar',1270,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MW','MWI',454,'Malawi',1280,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MY','MYS',458,'Malaysia',1290,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MV','MDV',462,'Maldives',1300,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'ML','MLI',466,'Mali',1310,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MT','MLT',470,'Malta',1320,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MH','MHL',584,'Marshall Islands',1330,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MQ','MTQ',474,'Martinique',1340,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MR','MRT',478,'Mauritania',1350,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MU','MUS',480,'Mauritius',1360,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'YT','MYT',175,'Mayotte',1370,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MX','MEX',484,'Mexico',1380,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'FM','FSM',583,'Micronesia, Federated States of',1390,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MD','MDA',498,'Moldova, Republic of',1400,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MC','MCO',492,'Monaco',1410,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MN','MNG',496,'Mongolia',1420,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MS','MSR',500,'Montserrat',1430,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MA','MAR',504,'Morocco',1440,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MZ','MOZ',508,'Mozambique',1450,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MM','MMR',104,'Myanmar',1460,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'NA','NAM',516,'Namibia',1470,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'NR','NRU',520,'Nauru',1480,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'NP','NPL',524,'Nepal',1490,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'NL','NLD',528,'Netherlands',1500,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'AN','ANT',530,'Netherlands Antilles',1510,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'NC','NCL',540,'New Caledonia',1520,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'NZ','NZL',554,'New Zealand',1530,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'NI','NIC',558,'Nicaragua',1540,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'NE','NER',562,'Niger',1550,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'NG','NGA',566,'Nigeria',1560,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'NU','NIU',570,'Niue',1570,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'NF','NFK',574,'Norfolk Island',1580,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'MP','MNP',580,'Northern Mariana Islands',1590,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'NO','NOR',578,'Norway',1600,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'OM','OMN',512,'Oman',1610,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'PK','PAK',586,'Pakistan',1620,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'PW','PLW',585,'Palau',1630,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'PA','PAN',591,'Panama',1640,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'PG','PNG',598,'Papua New Guinea',1650,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'PY','PRY',600,'Paraguay',1660,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'PE','PER',604,'Peru',1670,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'PH','PHL',608,'Philippines',1680,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'PN','PCN',612,'Pitcairn',1690,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'PL','POL',616,'Poland',1700,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'PT','PRT',620,'Portugal',1710,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'PR','PRI',630,'Puerto Rico',1720,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'QA','QAT',634,'Qatar',1730,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'RE','REU',638,'Reunion',1740,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'RO','ROM',642,'Romania',1750,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'RU','RUS',643,'Russian Federation',1760,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'RW','RWA',646,'Rwanda',1770,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'KN','KNA',659,'Saint Kitts and Nevis',1780,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'LC','LCA',662,'Saint Lucia',1790,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'VC','VCT',670,'Saint Vincent and the Grenadines',1800,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'WS','WSM',882,'Samoa',1810,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'SM','SMR',674,'San Marino',1820,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'ST','STP',678,'Sao Tome and Principe',1830,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'SA','SAU',682,'Saudi Arabia',1840,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'SN','SEN',686,'Senegal',1850,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'SC','SYC',690,'Seychelles',1860,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'SL','SLE',694,'Sierra Leone',1870,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'SK','SVK',703,'Slovakia (Slovak Republic)',1890,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'SI','SVN',705,'Slovenia',1900,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'SB','SLB',90,'Solomon Islands',1910,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'SO','SOM',706,'Somalia',1920,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'ZA','ZAF',710,'South Africa',1930,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'GS','SGS',239,'South Georgia and the South Sandwich Islands',1940,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'ES','ESP',724,'Spain',1950,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'LK','LKA',144,'Sri Lanka',1960,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'SH','SHN',654,'St. Helena',1970,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'PM','SPM',666,'St. Pierre and Miquelon',1980,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'SD','SDN',736,'Sudan',1990,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'SR','SUR',740,'Suriname',2000,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'SJ','SJM',744,'Svalbard and Jan Mayen Islands',2010,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'SZ','SWZ',748,'Swaziland',2020,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'SE','SWE',752,'Sweden',2030,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'CH','CHE',756,'Switzerland',2040,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'SY','SYR',760,'Syrian Arab Republic',2050,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'TW','TWN',158,'Taiwan',2060,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'TJ','TJK',762,'Tajikistan',2070,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'TZ','TZA',834,'Tanzania, United Republic of',2080,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'TH','THA',764,'Thailand',2090,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'TG','TGO',768,'Togo',2100,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'TK','TKL',772,'Tokelau',2110,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'TO','TON',776,'Tonga',2120,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'TT','TTO',780,'Trinidad and Tobago',2130,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'TN','TUN',788,'Tunisia',2140,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'TR','TUR',792,'Turkey',2150,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'TM','TKM',795,'Turkmenistan',2160,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'TC','TCA',796,'Turks and Caicos Islands',2170,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'TV','TUV',798,'Tuvalu',2180,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'UG','UGA',800,'Uganda',2190,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'UA','UKR',804,'Ukraine',2200,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'AE','ARE',784,'United Arab Emirates',2210,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'UY','URY',858,'Uruguay',2250,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'UZ','UZB',860,'Uzbekistan',2260,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'VU','VUT',548,'Vanuatu',2270,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'VA','VAT',336,'Vatican City State (Holy See)',2280,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'VE','VEN',862,'Venezuela',2290,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'VN','VNM',704,'Viet Nam',2300,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'VG','VGB',92,'Virgin Islands (British)',2310,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'VI','VIR',850,'Virgin islands (U.S.)',2320,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'WF','WLF',876,'Wallis and Futuna Islands',2330,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'EH','ESH',732,'Western Sahara',2340,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'YE','YEM',887,'Yemen',2350,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'YU','YUG',891,'Yugoslavia',2360,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'ZR','ZAR',180,'Zaire',2370,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'ZM','ZMB',894,'Zambia',2380,'A',1)
INSERT INTO dbo.Country ( CountryA2Code, CountryA3Code, CountryNum, CountryName, SortOrder, CountryDesc, AuditKey )  VALUES(  'ZW','ZWE',716,'Zimbabwe',2390,'A',1)

go

update dbo.Country set CountryDesc =  CountryName;
go
select * from dbo.country;

       
 

Currency Code Dimension or Lookup Table

Periodically, I need to create a currency code table.  Currency codes follow the ISO 4217 standard. You can read more about the standard at ISO 4217. And if  you ever need to get an updated value, or make changes, this is a good place to start. You can also use the ISO 4217 Wikipedia page.

Below is both the DDL used to create the currency table, along with the DML to do the initial population. This is from 2012, so review the listing and make any adjustments that may be needed.

I've also included a CountryKey column in the table. Typically, this is used to denote the country that issues the currency. Or in the case of the Euro, the organization. You will need a many-to-many table to define the full list of countries and the currency used.


       
use yourdatabase;
go


if exists (select * from sys.objects where object_id = object_id(N'dbo.Currency'))
  drop table dbo.Currency
  go

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

 CREATE TABLE dbo.Currency
 (
     CurrencyKey    smallint  IDENTITY (1,1) ,
     CountryKey    smallint  NOT NULL ,  -- issue country
     CurrencyA3Code  nvarchar(3) NOT NULL ,
     CurrencyNumCode nvarchar(10)  NULL ,
     Currency_Name   nvarchar(100)  NULL ,
     CountryDesc    nvarchar(100)  NULL ,     
     SortOrder     smallint  NOT NULL ,
     CONSTRAINT  PK_Currency_CurrencyKey PRIMARY KEY clustered (CurrencyKey  ASC)
 )
 go


  -- AK
  CREATE  UNIQUE INDEX AK_Currency_A3 ON dbo.Currency ( CurrencyA3Code  ASC )
  go

       
 


The following DML populates the currency table. I always use the integer value 0 (zero) to denote an unknown value.

       

use yourdatabase;
go

-- truncate table dbo.Currency;

/*
ISO 4217 Currency codes as of 2012, update as needed

 See URL for updated/current values
  http://www.iso.org/iso/home/standards/currency_codes.htm
  https://en.wikipedia.org/wiki/ISO_4217
  
*/

-----
SET IDENTITY_INSERT dbo.Currency On
-- unknown
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc, CurrencyNumCode)values ( 0, 0, 'n/a' , 'unknown', 0, 'A', '000'  );
-- all others
-- insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  1, 0, '-','unknown',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  2, 0, 'AFA','Afghani',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  3, 0, 'DZD','Algerian Dinar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  4, 0, 'ADP','Andorran Peseta',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  5, 0, 'ARS','Argentine Peso',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  6, 0, 'AMD','Armenian Dram',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  7, 0, 'AWG','Aruban Guilder',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  8, 0, 'AUD','Australian Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  9, 0, 'AZM','Azerbaijanian Manat',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  10, 0, 'BSD','Bahamian Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  11, 0, 'BHD','Bahraini Dinar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  12, 0, 'THB','Baht',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  13, 0, 'PAB','Balboa',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  14, 0, 'BBD','Barbados Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  15, 0, 'BYB','Belarussian Ruble',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  16, 0, 'BEF','Belgian Franc',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  17, 0, 'BZD','Belize Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  18, 0, 'BMD','Bermudian Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  19, 0, 'VEB','Bolivar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  20, 0, 'BOB','Boliviano',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  21, 0, 'BRL','Brazilian Real',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  22, 0, 'BND','Brunei Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  23, 0, 'BIF','Burundi Franc',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  24, 0, 'CAD','Canadian Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  25, 0, 'CVE','Cape Verde Escudo',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  26, 0, 'KYD','Cayman Islands Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  27, 0, 'GHC','Cedi',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  28, 0, 'XOF','CFA Franc BCEAO',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  29, 0, 'XAF','CFA Franc BEAC',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  30, 0, 'XPF','CFP Franc',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  31, 0, 'CLP','Chilean Peso',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  32, 0, 'COP','Colombian Peso',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  33, 0, 'KMF','Comoro Franc',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  34, 0, '---','Convertible Mark',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  35, 0, 'NIO','Cordoba Oro',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  36, 0, 'CRC','Costa Rican Colon',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  37, 0, 'CUP','Cuban Peso',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  38, 0, 'CYP','Cyprus Pound',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  39, 0, 'CZK','Czech Koruna',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  40, 0, 'GMD','Dalasi',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  41, 0, 'DKK','Danish Krone',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  42, 0, 'MKD','Denar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  43, 0, 'DEM','Deutsche Mark',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  44, 0, 'DJF','Djibouti Franc',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  45, 0, 'STD','Dobra',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  46, 0, 'DOP','Dominican Peso',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  47, 0, 'VND','Dong',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  48, 0, 'GRD','Drachma',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  49, 0, 'XCD','East Caribbean Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  50, 0, 'XCD','East Carribean Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  51, 0, 'XEU','ECU (until 1998-12-31)',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  52, 0, 'EGP','Egyptian Pound',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  53, 0, 'SVC','El Salvador Colon',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  54, 0, 'ETB','Ethiopian Birr',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  55, 0, 'EUR','Euro',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  56, 0, 'FKP','Falkland Islands Pound',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  57, 0, 'FJD','Fiji Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  58, 0, 'ZAL','Financial Rand',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  59, 0, 'HUF','Forint',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  60, 0, 'FRF','French Franc',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  61, 0, 'GIP','Gibraltar Pound',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  62, 0, 'HTG','Gourde',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  63, 0, 'PYG','Guarani',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  64, 0, 'GNF','Guinea Franc',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  65, 0, 'GWP','Guinea-Bissau Peso',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  66, 0, 'GYD','Guyana Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  67, 0, 'HKD','Hong Kong Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  68, 0, 'UAH','Hryvnya',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  69, 0, 'ISK','Iceland Krona',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  70, 0, 'INR','Indian Rupee',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  71, 0, 'IRR','Iranian Rial',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  72, 0, 'IQD','Iraqi Dinar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  73, 0, 'IEP','Irish Pound',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  74, 0, 'ITL','Italian Lira',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  75, 0, 'JMD','Jamaican Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  76, 0, 'JOD','Jordanian Dinar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  77, 0, 'UAK','Karbovanets',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  78, 0, 'KES','Kenyan Shilling',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  79, 0, 'PGK','Kina',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  80, 0, 'LAK','Kip',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  81, 0, 'EEK','Kroon',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  82, 0, 'HRK','Kuna',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  83, 0, 'KWD','Kuwaiti Dinar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  84, 0, 'ZMK','Kwacha',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  85, 0, 'MWK','Kwacha',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  86, 0, 'AOR','Kwanza Reajustado',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  87, 0, 'MMK','Kyat',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  88, 0, 'GEL','Lari',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  89, 0, 'LVL','Latvian Lats',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  90, 0, 'LBP','Lebanese Pound',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  91, 0, 'ALL','Lek',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  92, 0, 'HNL','Lempira',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  93, 0, 'SLL','Leone',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  94, 0, 'ROL','Leu',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  95, 0, 'BGL','Lev',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  96, 0, 'LRD','Liberian Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  97, 0, 'LYD','Libyan Dinar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  98, 0, 'SZL','Lilangeni',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  99, 0, 'LTL','Lithuanian Litas',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  100, 0, 'LSL','Loti',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  101, 0, 'LUF','Luxembourg Franc',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  102, 0, 'MGF','Malagasy Franc',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  103, 0, 'MYR','Malaysian Ringgit',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  104, 0, 'MTL','Maltese Lira',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  105, 0, 'TMM','Manat',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  106, 0, 'FIM','Markka',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  107, 0, 'MUR','Mauritius Rupee',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  108, 0, 'MZM','Metical',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  109, 0, 'MXN','Mexican Nuevo Peso',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  110, 0, 'MDL','Moldovan Leu',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  111, 0, 'MAD','Moroccan Dirham',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  112, 0, 'BOV','MVDol',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  113, 0, 'NGN','Naira',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  114, 0, 'NAD','Namibia Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  115, 0, 'NPR','Nepalese Rupee',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  116, 0, 'ANG','Netherlands Antillean Guilder',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  117, 0, 'NLG','Netherlands Guilder',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  118, 0, 'YUM','New Dinar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  119, 0, 'AON','New Kwanza',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  120, 0, 'TWD','New Taiwan Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  121, 0, 'ZRN','New Zaire',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  122, 0, 'NZD','New Zealand Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  123, 0, 'BTN','Ngultrum',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  124, 0, 'KPW','North Korean Won',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  125, 0, 'NOK','Norwegian Krone',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  126, 0, 'PEN','Nuevo Sol',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  127, 0, 'MRO','Ouguiya',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  128, 0, 'TOP','Pa anga',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  129, 0, 'PKR','Pakistan Rupee',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  130, 0, 'MOP','Pataca',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  131, 0, 'UYU','Peso Uruguayo',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  132, 0, 'PHP','Philippine Peso',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  133, 0, 'PTE','Portuguese Escudo',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  134, 0, 'GBP','Pound Sterling',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  135, 0, 'BWP','Pula',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  136, 0, 'QAR','Qatari Rial',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  137, 0, 'GTQ','Quetzal',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  138, 0, 'ZAR','Rand',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  139, 0, 'OMR','Rial Omani',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  140, 0, 'KHR','Riel',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  141, 0, 'MVR','Rufiyaa',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  142, 0, 'IDR','Rupiah',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  143, 0, 'RUR','Russian Ruble',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  144, 0, 'RWF','Rwanda Franc',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  145, 0, 'SAR','Saudi Riyal',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  146, 0, 'SCR','Seychelles Rupee',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  147, 0, 'ILS','Shekel',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  148, 0, 'ATS','Shilling',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  149, 0, 'SGD','Singapore Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  150, 0, 'SKK','Slovak Koruna',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  151, 0, 'SBD','Solomon Islands Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  152, 0, 'KGS','Som',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  153, 0, 'SOS','Somali Shilling',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  154, 0, 'ESP','Spanish Peseta',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  155, 0, 'LKR','Sri Lanka Rupee',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  156, 0, 'SHP','St. Helena Pound',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  157, 0, 'ECS','Sucre',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  158, 0, 'SDD','Sudanese Dinar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  159, 0, 'SRG','Surinam Guilder',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  160, 0, 'SEK','Swedish Krona',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  161, 0, 'CHF','Swiss Franc',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  162, 0, 'SYP','Syrian Pound',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  163, 0, 'TJR','Tajik Ruble',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  164, 0, 'BDT','Taka',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  165, 0, 'WST','Tala',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  166, 0, 'TZS','Tanzanian Shilling',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  167, 0, 'KZT','Tenge',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  168, 0, 'TPE','Timor Escudo',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  169, 0, 'SIT','Tolar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  170, 0, 'TTD','Trinidad and Tobago Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  171, 0, 'MNT','Tugrik',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  172, 0, 'TND','Tunisian Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  173, 0, 'TRL','Turkish Lira',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  174, 0, 'AED','UAE Dirham',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  175, 0, 'UGX','Uganda Shilling',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  176, 0, 'ECV','Unidad de Valor Constante (UVC)',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  177, 0, 'CLF','Unidades de Formento',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  178, 0, 'USD','US Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  179, 0, 'UZS','Uzbekistan Sum',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  180, 0, 'VUV','Vatu',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  181, 0, 'KRW','Won',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  182, 0, 'YER','Yemeni Rial',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  183, 0, 'JPY','Yen',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  184, 0, 'CNY','Yuan Renminbi',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  185, 0, 'ZWD','Zimbabwe Dollar',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  186, 0, 'PLZ','Zloty (PLZ)',10, 'A' ); 
insert into dbo.Currency ( CurrencyKey, CountryKey, CurrencyA3Code, Currency_Name,SortOrder, CountryDesc) values (  187, 0, 'PLN','Zloty (PLN)',10, 'A' ); 

SET IDENTITY_INSERT dbo.Currency Off

select * from dbo.Currency;