diff --git a/builds/win32/msvc6/engine.dsp b/builds/win32/msvc6/engine.dsp
index 1148c55db5..bca2044d9f 100644
--- a/builds/win32/msvc6/engine.dsp
+++ b/builds/win32/msvc6/engine.dsp
@@ -736,10 +736,6 @@ SOURCE=..\..\..\src\jrd\dmp_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\doserr.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\dpm_proto.h
# End Source File
# Begin Source File
@@ -1064,10 +1060,6 @@ SOURCE=..\..\..\src\jrd\mov_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\mpexl.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\msg.h
# End Source File
# Begin Source File
@@ -1092,10 +1084,6 @@ SOURCE=..\..\..\src\jrd\nav_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\nlm_thd.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\nod.h
# End Source File
# Begin Source File
@@ -1152,10 +1140,6 @@ SOURCE=..\..\..\src\jrd\os\pio_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\pragma.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\PreparedStatement.h
# End Source File
# Begin Source File
@@ -1164,10 +1148,6 @@ SOURCE=..\..\..\src\jrd\prv_m_bypass.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\pwd_proto.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\quad.h
# End Source File
# Begin Source File
@@ -1256,10 +1236,6 @@ SOURCE=..\..\..\src\jrd\sdw_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\seg_proto.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\sha.h
# End Source File
# Begin Source File
@@ -1280,7 +1256,7 @@ SOURCE=..\..\..\src\jrd\sort_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\sql_code.h
+SOURCE=..\..\..\src\include\gen\sql_code.h
# End Source File
# Begin Source File
@@ -1316,10 +1292,6 @@ SOURCE=..\..\..\src\jrd\TempSpace.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\termtype.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\TextType.h
# End Source File
# Begin Source File
diff --git a/builds/win32/msvc6/engine_classic.dsp b/builds/win32/msvc6/engine_classic.dsp
index f3c5a0d1bc..7c7d532535 100644
--- a/builds/win32/msvc6/engine_classic.dsp
+++ b/builds/win32/msvc6/engine_classic.dsp
@@ -705,10 +705,6 @@ SOURCE=..\..\..\src\jrd\dmp_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\doserr.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\dpm_proto.h
# End Source File
# Begin Source File
@@ -1033,10 +1029,6 @@ SOURCE=..\..\..\src\jrd\mov_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\mpexl.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\msg.h
# End Source File
# Begin Source File
@@ -1061,10 +1053,6 @@ SOURCE=..\..\..\src\jrd\nav_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\nlm_thd.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\nod.h
# End Source File
# Begin Source File
@@ -1121,10 +1109,6 @@ SOURCE=..\..\..\src\jrd\os\pio_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\pragma.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\PreparedStatement.h
# End Source File
# Begin Source File
@@ -1133,10 +1117,6 @@ SOURCE=..\..\..\src\jrd\prv_m_bypass.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\pwd_proto.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\quad.h
# End Source File
# Begin Source File
@@ -1225,10 +1205,6 @@ SOURCE=..\..\..\src\jrd\sdw_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\seg_proto.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\sha.h
# End Source File
# Begin Source File
@@ -1249,7 +1225,7 @@ SOURCE=..\..\..\src\jrd\sort_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\sql_code.h
+SOURCE=..\..\..\src\include\gen\sql_code.h
# End Source File
# Begin Source File
@@ -1285,10 +1261,6 @@ SOURCE=..\..\..\src\jrd\TempSpace.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\termtype.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\TextType.h
# End Source File
# Begin Source File
diff --git a/builds/win32/msvc6/engine_embed.dsp b/builds/win32/msvc6/engine_embed.dsp
index eb75ea7baf..000769ee89 100644
--- a/builds/win32/msvc6/engine_embed.dsp
+++ b/builds/win32/msvc6/engine_embed.dsp
@@ -709,10 +709,6 @@ SOURCE=..\..\..\src\jrd\dmp_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\doserr.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\dpm_proto.h
# End Source File
# Begin Source File
@@ -1037,10 +1033,6 @@ SOURCE=..\..\..\src\jrd\mov_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\mpexl.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\msg.h
# End Source File
# Begin Source File
@@ -1065,10 +1057,6 @@ SOURCE=..\..\..\src\jrd\nav_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\nlm_thd.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\nod.h
# End Source File
# Begin Source File
@@ -1125,10 +1113,6 @@ SOURCE=..\..\..\src\jrd\os\pio_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\pragma.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\PreparedStatement.h
# End Source File
# Begin Source File
@@ -1137,10 +1121,6 @@ SOURCE=..\..\..\src\jrd\prv_m_bypass.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\pwd_proto.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\quad.h
# End Source File
# Begin Source File
@@ -1233,10 +1213,6 @@ SOURCE=..\..\..\src\jrd\sdw_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\seg_proto.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\sha.h
# End Source File
# Begin Source File
@@ -1257,7 +1233,7 @@ SOURCE=..\..\..\src\jrd\sort_proto.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\sql_code.h
+SOURCE=..\..\..\src\include\gen\sql_code.h
# End Source File
# Begin Source File
@@ -1293,10 +1269,6 @@ SOURCE=..\..\..\src\jrd\TempSpace.h
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\jrd\termtype.h
-# End Source File
-# Begin Source File
-
SOURCE=..\..\..\src\jrd\TextType.h
# End Source File
# Begin Source File
diff --git a/builds/win32/msvc7/engine.vcproj b/builds/win32/msvc7/engine.vcproj
index d5b503ed17..8e25c08fc9 100644
--- a/builds/win32/msvc7/engine.vcproj
+++ b/builds/win32/msvc7/engine.vcproj
@@ -535,9 +535,6 @@
-
-
@@ -787,9 +784,6 @@
-
-
@@ -811,9 +805,6 @@
-
-
@@ -862,18 +853,12 @@
-
-
-
-
@@ -952,9 +937,6 @@
-
-
@@ -971,7 +953,7 @@
RelativePath="..\..\..\src\jrd\sort_proto.h">
+ RelativePath="..\..\..\src\include\gen\sql_code.h">
@@ -1000,9 +982,6 @@
-
-
diff --git a/builds/win32/msvc7/engine_classic.vcproj b/builds/win32/msvc7/engine_classic.vcproj
index b0562c7fb5..cc31737548 100644
--- a/builds/win32/msvc7/engine_classic.vcproj
+++ b/builds/win32/msvc7/engine_classic.vcproj
@@ -535,9 +535,6 @@
-
-
@@ -787,9 +784,6 @@
-
-
@@ -811,9 +805,6 @@
-
-
@@ -862,18 +853,12 @@
-
-
-
-
@@ -952,9 +937,6 @@
-
-
@@ -971,7 +953,7 @@
RelativePath="..\..\..\src\jrd\sort_proto.h">
+ RelativePath="..\..\..\src\include\gen\sql_code.h">
@@ -1000,9 +982,6 @@
-
-
diff --git a/builds/win32/msvc7/engine_embed.vcproj b/builds/win32/msvc7/engine_embed.vcproj
index a74af47bb0..947630911d 100644
--- a/builds/win32/msvc7/engine_embed.vcproj
+++ b/builds/win32/msvc7/engine_embed.vcproj
@@ -536,9 +536,6 @@
-
-
@@ -788,9 +785,6 @@
-
-
@@ -812,9 +806,6 @@
-
-
@@ -863,18 +854,12 @@
-
-
-
-
@@ -953,9 +938,6 @@
-
-
@@ -972,7 +954,7 @@
RelativePath="..\..\..\src\jrd\sort_proto.h">
+ RelativePath="..\..\..\src\include\gen\sql_code.h">
@@ -1001,9 +983,6 @@
-
-
diff --git a/builds/win32/msvc8/engine.vcproj b/builds/win32/msvc8/engine.vcproj
index 6167592909..58f905a727 100644
--- a/builds/win32/msvc8/engine.vcproj
+++ b/builds/win32/msvc8/engine.vcproj
@@ -830,10 +830,6 @@
RelativePath="..\..\..\src\jrd\dmp_proto.h"
>
-
-
@@ -1182,10 +1178,6 @@
RelativePath="..\..\..\src\jrd\mov_proto.h"
>
-
-
@@ -1214,10 +1206,6 @@
RelativePath="..\..\..\src\jrd\nbak.h"
>
-
-
@@ -1282,10 +1270,6 @@
RelativePath="..\..\..\src\jrd\os\pio_proto.h"
>
-
-
@@ -1294,10 +1278,6 @@
RelativePath="..\..\..\src\jrd\prv_m_bypass.h"
>
-
-
@@ -1402,10 +1382,6 @@
RelativePath="..\..\..\src\jrd\sdw_proto.h"
>
-
-
@@ -1427,7 +1403,7 @@
>
-
-
diff --git a/builds/win32/msvc8/engine_classic.vcproj b/builds/win32/msvc8/engine_classic.vcproj
index e2fdde3292..74d95e6683 100644
--- a/builds/win32/msvc8/engine_classic.vcproj
+++ b/builds/win32/msvc8/engine_classic.vcproj
@@ -830,10 +830,6 @@
RelativePath="..\..\..\src\jrd\dmp_proto.h"
>
-
-
@@ -1182,10 +1178,6 @@
RelativePath="..\..\..\src\jrd\mov_proto.h"
>
-
-
@@ -1214,10 +1206,6 @@
RelativePath="..\..\..\src\jrd\nbak.h"
>
-
-
@@ -1282,10 +1270,6 @@
RelativePath="..\..\..\src\jrd\os\pio_proto.h"
>
-
-
@@ -1294,10 +1278,6 @@
RelativePath="..\..\..\src\jrd\prv_m_bypass.h"
>
-
-
@@ -1402,10 +1382,6 @@
RelativePath="..\..\..\src\jrd\sdw_proto.h"
>
-
-
@@ -1427,7 +1403,7 @@
>
-
-
diff --git a/builds/win32/msvc8/engine_embed.vcproj b/builds/win32/msvc8/engine_embed.vcproj
index b373c4dd03..c7bd79fee7 100644
--- a/builds/win32/msvc8/engine_embed.vcproj
+++ b/builds/win32/msvc8/engine_embed.vcproj
@@ -830,10 +830,6 @@
RelativePath="..\..\..\src\jrd\dmp_proto.h"
>
-
-
@@ -1182,10 +1178,6 @@
RelativePath="..\..\..\src\jrd\mov_proto.h"
>
-
-
@@ -1214,10 +1206,6 @@
RelativePath="..\..\..\src\jrd\nbak.h"
>
-
-
@@ -1282,10 +1270,6 @@
RelativePath="..\..\..\src\jrd\os\pio_proto.h"
>
-
-
@@ -1294,10 +1278,6 @@
RelativePath="..\..\..\src\jrd\prv_m_bypass.h"
>
-
-
@@ -1402,10 +1382,6 @@
RelativePath="..\..\..\src\jrd\sdw_proto.h"
>
-
-
@@ -1427,7 +1403,7 @@
>
-
-