Le blog de Jean David TECHER, un Réunionnais à Saint-Priest/Lyon

Aller au contenu | Aller au menu | Aller à la recherche


< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 >

lundi 13 janvier 2014

SQL Server 2000 (Enterprise Edition) on Linux 64

Wine 1.6.2 is used. Tools like 'Enterprise Manager', 'Query Analyzer', 'OSQL' are used. The Server 2000 is running on Linux

lundi 6 janvier 2014

SQL Server 2000 Standard Edition (+SP4) on Linux using Wine

For the moment I am able to get SQL Server 2000 Standard Edition + SP4 working on Linux using Wine 1.7.10. Two days were required to be able to set everything up! Only TCP/IP works but it is worth having that :).

1. Prerequistes

Wine 1.7.X must be installed -- where X=8,9,10 --. wine must be available /provided in your PATH. Your folder where wine is installed must be added in your environment variable. Since I am used to build wine from source I have to do
export PATH=/opt/wine/apps/SQL_Server_2000/bin/:PATH

2. Installation

In a nutshell you have to
  • make a fresh MSDE SP4 installation. This step is not very complicated.
    • Set up a new/fresh WINEPREFIX
      export WINEPREFIX=/where/you/want/your/SQL/Server/to/be/installed
    • Use winetricks
      winetricks vcrun2003
      This command above aims at copying expected DLL into your $WINEPREFIX
    • Set the DLL mscvp71.dll and msvcr71.dll as native through winecfg
    • Download SQL2000-KB884525-SP4-x86-ENU.EXE (google)
      wget ftp://ftp.akdeniz.edu.tr/Microsoft/SQL%20Server/SQL_Server_Service_Pack/Sql2000SP4/SQL2000.MSDE-KB884525-SP4-x86-ENU.EXE
    • Run it. Command shown below will perform a silent installation using /S switch
      wine SQL2000-KB884525-SP4-x86-ENU.EXE /S
    • Go to the directory where the files have been extracted
      cd $WINEPREFIX/SQL2KSP4/MSDE
    • Generate a batch file
      echo 'setup.exe DISABLEROLLBACK=1 BLANKSAPWD=1 DISABLENETWORKPROTOCOLS=0 SECURITYMODE=SQL TARGETDIR="C:\Program Files\Microsoft SQL Server\" DATADIR="C:\Program Files\Microsoft SQL Server\" /L*v C:\MSDE_Setup.log' > setup.bat
      Run it using wineconsole
      wineconsole setup.bat
    • The installer may crash and it can't end properly. However it didn't prevent your from going ahead.
    • You will have to copy a few DLLs...This step has to be completed!
  • Download the SQL 2000 Standard Edition (google)
  • Run the installer
    cd /path/where/your/CD/is/installed
    wine x86/setup/setupsql.exe
  • Choose the expected options to upgrade your current SQL Server installation based on MSDE.

vendredi 3 janvier 2014

Liens pour SQL Server 2000

Download Documentation All hotfixes Repair http://blogs.msdn.com/b/joaol/archive/2008/03/13/how-to-rebuild-your-master-database-in-msde-when-it-became-corrupted.aspx

vendredi 27 décembre 2013

PostgreSQL 9.1 and pgsql_fdw

  • Get the sources
     git clone git://git.code.sf.net/p/interdbconnect/code interdbconnect-code
Tips ti know
  • If you got this error
    biotricks=# ALTER SERVER remote_biopacs_production VERSION '1.0'  OPTIONS ( host '10.1.0.244', port '5433', dbname 'biopacs_production');
    ERROR:  option "host" provided more than once
    then use set
    biotricks=# ALTER SERVER remote_biopacs_production   OPTIONS ( SET host '10.1.0.244');
    ALTER SERVER
    biotricks=# ALTER SERVER remote_biopacs_production   OPTIONS ( SET port '5433');
    ALTER SERVER
    biotricks=# ALTER SERVER remote_biopacs_production   OPTIONS ( SET dbname 'biopacs_production' );
    ALTER SERVER