tag:blogger.com,1999:blog-46764370334503822452024-03-13T19:58:44.346-07:00Michas Dev BlogMichahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.comBlogger17125tag:blogger.com,1999:blog-4676437033450382245.post-2654783319831517802022-05-15T23:21:00.003-07:002022-05-18T23:23:23.557-07:00RDP Verbindung mit mehreren Monitoren<p>Für das Arbeiten im Homeoffice ist in meinem Fall eine RDP-Verbindung notwendig. Ich kann darüber auf den Rechner in meinem Arbeits-Büro zugreifen.</p><p>Auf Arbeit habe ich zwei Monitore und zu Hause drei. Nun möchte ich die zwei Bildschirme vom Arbeitsrechner über die RDP-Verbindung auf zweien meiner drei Monitore anzeigen.</p><p>Dies kann wie folgt bewerkstelligt werden:</p><p></p><ol style="text-align: left;"><li>RDP-Verbindung öffnen und Verbindungseinstellungen speichern</li><li>Gespeicherte Verbindungseinstellungen mit einem Texteditor öffnen</li><li>prüfen, ob ein Parameter <span style="font-family: courier;">selectedmonitors</span> bereits vorhanden ist, ggf. löschen bzw. editieren</li><li>die Kommandozeile (<span style="font-family: courier;">cmd</span>) öffnen und <span style="font-family: courier;">mstsc /L</span> eingeben. Nun werden hier alle verfügbaren Monitore aufgelistet. Mein Hauptmonitor ist #4. Die beiden anderen sind links daneben angeordnet.<br /><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEh9DmOyLr5hQatQ7DF3M9YZPxrMYT1NPaKJQ_XQl7Hlk8-C9LEMLIzRNjQi1dBvsX3yOrRZ6mYPgvfjY2hPYjqjKowRdNzkmsirI5_xz2S4GSRlbo3J7kqUHFkb0zCO3fsV0OfFHrAeCXhHVmQP8rz91B39VsUujuj33Rh2JvGcFWftekwcH7Q" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="76" data-original-width="282" height="86" src="https://blogger.googleusercontent.com/img/a/AVvXsEh9DmOyLr5hQatQ7DF3M9YZPxrMYT1NPaKJQ_XQl7Hlk8-C9LEMLIzRNjQi1dBvsX3yOrRZ6mYPgvfjY2hPYjqjKowRdNzkmsirI5_xz2S4GSRlbo3J7kqUHFkb0zCO3fsV0OfFHrAeCXhHVmQP8rz91B39VsUujuj33Rh2JvGcFWftekwcH7Q" width="320" /></a></div><br />Im Screenshot sind die Positionen der einzelnen Bildschirme aufgelistet. In meinem Fall sind diese also so angeordnet: [ 5 ] [ 0 ] [ 4 ]<br /><br /><br /></li><li>Zurück zu den RDP-Verbindungseinstellungen, welche im Editor noch offen sind. Hier wird nun ein weiterer Parameter selectedmonitors mit der Liste an Monitoren, die für die RDP-Verbindung genutzt werden dürfen hinzugefügt. In meinem Fall sieht das dann so aus: <span style="font-family: courier;">selectedmonitors:s:5,0 </span></li><li>Die Verbindungseinstellungen wieder speichern und diese dann per Doppelklick öffnen. Nun habe ich auch im Homeoffice die zwei Bildschirme vom Arbeitsrechner.</li></ol><div><b><span style="color: red;">ACHTUNG</span></b></div><div>Es kann sein, dass sich bei Neustart des Rechners, die Monitor-Nummern, sowie deren Position ändern. Dies ist der fall, wenn der Fehler "Aufgrund eines Protokollfehlers (0x112f) wird die Remote-Sitzung getrennt" erscheint.</div><div><br /></div><div>Es gibt einen weiteren wichtigen Parameter, der bei Auftreten dieses Fehlers angepasst werden muss:<br /><br /><span style="font-family: courier;">winposstr:s:0,1,-3840,0,-1920,1040</span><br /><br />Dieser Parameter bestimmt Größe und Position des Fensters. Hierbei sind die Werte an 3. und 4. Stelle sowie 5. und 6. Stelle wichtig. Mit diesen legt man die linke obere und rechte untere Position fest. Dazu kann man wieder <span style="font-family: courier;">mstsc /L </span>aufrufen. Dort müssen dann meist nur die 3. und 5. Position gesetzt werden.<br /><br />Weitere Infos gibt es hier: https://social.technet.microsoft.com/wiki/contents/articles/665.how-to-set-the-monitor-for-a-remote-desktop-session-in-a-multi-monitor-setup.aspx#Calculating_the_Values_for_winposstr</div><p></p>Michahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.com0tag:blogger.com,1999:blog-4676437033450382245.post-66127788184841290642016-09-07T06:38:00.003-07:002016-09-07T06:53:26.238-07:00[LINUX] Crontabs aller User auflisten<span style="font-family: Courier New, Courier, monospace;">for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done</span>Michahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.com0tag:blogger.com,1999:blog-4676437033450382245.post-53686434095159721582014-02-05T02:58:00.000-08:002014-02-05T02:58:20.888-08:00BigDump: Staggered MySQL Dump ImporterVor vielen Jahren hat mir dieses Tool gute Dienste erwiesen. Nun bin ich erneut darüber gestolpert und möchte es gern hier verlinken:<br />
<br />
http://www.ozerov.de/bigdump/<br />
<br />
Große MySQL Dumpfiles können hiermit auch auf "Problemservern" importiert werden.Michahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.com0tag:blogger.com,1999:blog-4676437033450382245.post-22418344994832536122013-10-23T23:43:00.002-07:002013-10-23T23:44:20.717-07:00Mehrere SQL Kommandos in Access mittels VBA ausführenIn Access ist es leider nicht möglich, mehrere SQL Anweisungen auszuführen. Hier kann man sich mittels VBA helfen. Der dazugehörige Code folgt hier:<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">Sub ExecSqlFromFile()</span><br />
<span style="font-family: Courier New, Courier, monospace;"> ' Variablen deklarieren</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Dim vSql As Variant</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Dim vSqls As Variant</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Dim strSql As String</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Dim intF As Integer</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"> intF = FreeFile()</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Open "c:\sql.txt" For Input As #intF ' Datei öffnen</span><br />
<span style="font-family: Courier New, Courier, monospace;"> </span><br />
<span style="font-family: Courier New, Courier, monospace;"> Do While Not EOF(intF) ' Solange das Dateiende nicht erreicht ist</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Line Input #intF, strSql ' nächste Zeile der Datei in TextLine speichern</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Loop</span><br />
<span style="font-family: Courier New, Courier, monospace;"> </span><br />
<span style="font-family: Courier New, Courier, monospace;"> Close intF ' Datei schließen</span><br />
<span style="font-family: Courier New, Courier, monospace;"> vSqls = Split(strSql, ";") ' Anweisungen splitten</span><br />
<span style="font-family: Courier New, Courier, monospace;"> </span><br />
<span style="font-family: Courier New, Courier, monospace;"> On Error Resume Next</span><br />
<span style="font-family: Courier New, Courier, monospace;"> For Each vSql In vSqls</span><br />
<span style="font-family: Courier New, Courier, monospace;"> If Len(vSql) > 0 Then</span><br />
<span style="font-family: Courier New, Courier, monospace;"> MsgBox (vSql) ' Anweisung ausgeben</span><br />
<span style="font-family: Courier New, Courier, monospace;"> CurrentDb.Execute vSql ' Anweisung ausführen</span><br />
<span style="font-family: Courier New, Courier, monospace;"> End If</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Next</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">End Sub</span><br />
<div>
<br /></div>
<div>
<br /></div>
Michahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.com0tag:blogger.com,1999:blog-4676437033450382245.post-17637993125263974532013-01-02T01:41:00.001-08:002013-01-02T01:41:26.142-08:00 [LINUX] Verzeichnisgrößen ermittelnum heruaszufinden, welche Verzeichnisse den meisten Platz verwenden, nutze man "du" mit folgendem Parameter:<div>
<br /></div>
<div>
<blockquote class="tr_bq">
<span style="font-family: Courier New, Courier, monospace;">du -sh ./*/</span></blockquote>
<br />
siehe auch: <a href="http://linux.about.com/library/cmd/blcmdl1_du.htm">http://linux.about.com/library/cmd/blcmdl1_du.htm</a> </div>
<div>
<br /></div>
Michahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.com0tag:blogger.com,1999:blog-4676437033450382245.post-70409433818062479532012-10-04T04:58:00.001-07:002012-10-04T23:45:38.772-07:00[SYBASE] How to fix a "suspect" database<br />
<div class="MsoNormal">
Damit ich es wiederfinde, habe ich mir mal folgenden Beitrag aus einem Forumpost kopiert. Das Original ist hier zu finden: <a href="http://sybase-developer-network.com/conversation/44016/" style="font-family: inherit;">http://sybase-developer-network.com/conversation/44016/</a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: white;"><span style="font-size: 10pt;"><span style="font-family: inherit;"> </span></span><span style="font-family: inherit;"><span class="postsender"><strong>From:</strong> Bret Halford</span> <span class="postdate"><strong>On:</strong> Sept. 20, 2011, 9:03 a.m.</span></span></span></div>
<blockquote class="tr_bq">
<span style="background-color: white;"><span style="font-family: inherit;">Clearing the suspect database flag is fairly easy, the suspect bit's</span><br /><span style="font-family: inherit;">value in sysdatabases.status is 256. This code flips the bit off</span><br /><span style="font-family: inherit;">if it is on:</span><br /><br /><span style="font-family: Courier New, Courier, monospace;">sp_configure "allow updates", 1<br />go</span><br /><span style="font-family: inherit;">-- on very old versions (pre-11.x), "</span><span style="font-family: Courier New, Courier, monospace;">reconfigure with override</span><span style="font-family: inherit;">" would --</span><br /><span style="font-family: inherit;">be needed here, it is not needed in current versions.</span><br /><span style="font-family: Courier New, Courier, monospace;">go<br />update sysdatabases<br />set<br />status = status ^ 256 -- exclusive or operator flip the bit<br />where<br />status & 256 = 256<br />[and name = "mydb"]</span><br /><br /><span style="font-family: inherit;">If you included the "name" clause, you should get 1 row affected.</span><br /><br /><span style="font-family: inherit;">The next step is to cause the database to go through recovery again</span><br /><span style="font-family: inherit;">now that it is no longer marked suspect. On all versions, you can</span><br /><span style="font-family: inherit;">do this by shutting down and then rebooting the whole ASE server.</span><br /><span style="font-family: inherit;">In 12.5.4 ESD 1 and higher 12.5.x versions, and in 15.0.2 and above</span><br /><span style="font-family: inherit;">you can use DBCC DBREBOOT to reboot just the one database</span><br /><br /><span style="font-family: Courier New, Courier, monospace;">dbcc dbreboot("shutdown", </span><dbname><span style="font-family: Courier New, Courier, monospace;">)<br />go<br />dbcc dbreboot("restart", </span><dbname><span style="font-family: Courier New, Courier, monospace;">)<br />go</span><br /><br /><span style="font-family: inherit;">The database should now either recover normally or hit a</span><br /><span style="font-family: inherit;">problem and get marked suspect again.</span><br /><br /><span style="font-family: inherit;">If the problem is some sort of corruption in the database, your</span><br /><span style="font-family: inherit;">options are to try loading an older dump of the database or</span><br /><span style="font-family: inherit;">(if no such dump exists, for instance) working with tech support.</span><br /><span style="font-family: inherit;">Generally speaking, though, if some sort of corruption is</span><br /><span style="font-family: inherit;">preventing recovery from completing, it is unlikely that the</span><br /><span style="font-family: inherit;">database can be brought to a transactionally consistent state.</span></dbname></dbname></span></blockquote>
Michahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.com3tag:blogger.com,1999:blog-4676437033450382245.post-39266026630169712802012-07-20T00:15:00.000-07:002012-10-04T01:53:03.094-07:00[SYBASE] Stored Procedures erneut kompilierenÄndert man eine Tabelle in Sybase und hat eine Stored Procedure oder einen Trigger, welcher auf diese Tabelle zugreift, so kann es sein, dass z.B. die Stored Procedure nicht mehr funktioniert. Diese muss dann neu kompiliert werden.<br />
<div>
<br /></div>
<div>
Mit sp_recompile braucht man sich nicht darum zu kümmern, welche Stored Procedures auf die geänderte Tabelle zugreifen. Man wendet sp_recompile stattdessen auf das geänderte Objekt an. Die Stored Procedure erhöht dann lediglich den Zähler "schemacnt". Sybase prüft diesen Zähler bei der Ausführung von z.B. Stored Procedures und rekompiliert die auszuführenden Objekte, wenn ein Unterschied bemerkt wird.</div>
<div>
<br /></div>
<div>
Links:</div>
<div>
ASE 12.5: <a href="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.dc36271_36272_36273_36274_1250/html/refman/X91980.htm">http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.dc36271_36272_36273_36274_1250/html/refman/X91980.htm</a></div>
<div>
<br /></div>
<div>
ASE 15: <a href="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ase_15.0.sprocs/html/sprocs/sprocs181.htm">http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ase_15.0.sprocs/html/sprocs/sprocs181.htm</a></div>
Michahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.com0tag:blogger.com,1999:blog-4676437033450382245.post-5279044874575563722012-07-18T02:40:00.000-07:002015-08-31T07:32:04.078-07:00[LINUX] Dateien finden und in separaten Ordner kopierenMöchte man in Linux Dateien finden und in einen separaten Ordner kopieren, so kann man dies mit folgendem Befehl bewerkstelligen:<br />
<br />
<br />
<blockquote class="tr_bq">
<span style="font-family: 'Courier New', Courier, monospace;">find -type f -name "*.jpg" -exec cp {} /tmp/images/ \;</span></blockquote>
<div>
<br />
Soll die Verzeichnisstruktur erhalten bleiben:<br />
<br />
<blockquote class="tr_bq">
<span style="font-family: Courier New, Courier, monospace;">find -type f -name "*.jpg" -exec cp '{}' /tmp/images/ --parents \;</span></blockquote>
</div>
Michahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.com0tag:blogger.com,1999:blog-4676437033450382245.post-86394362937736134952012-03-12T02:53:00.001-07:002012-10-04T01:55:53.978-07:00[SYBASE] Database Dump with compressionASE 15:<br />
<br />
<span style="font-family: 'Courier New', Courier, monospace;">DUMP DATABASE [databasename] TO "[filename.zdmp]" with compression="4"</span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br />
</span><br />
<span style="font-family: inherit;">Link: <a href="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ase_15.0.sag2/html/sag2/sag2473.htm">http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ase_15.0.sag2/html/sag2/sag2473.htm</a></span><br />
<br />
ASE 12.5<br />
<span style="font-family: 'Courier New', Courier, monospace;">DUMP DATABASE [databasename] TO compress::[filename.zdmp]</span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br />
</span><br />
<span style="font-family: inherit;">Link: <a href="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.dc31654_31644_1250/html/sag/sag1145.htm">http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.dc31654_31644_1250/html/sag/sag1145.htm</a></span>Michahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.com0tag:blogger.com,1999:blog-4676437033450382245.post-29432592044634884302011-07-15T05:09:00.001-07:002012-10-04T01:58:26.653-07:00[SYBASE] ASE 12.5 with UTF-8This PDF describes to setup your ASE 12.5 with a default UTF-8 charset: <a href="http://www.sybase.com/content/1026310/unicode_support_wp.pdf">http://www.sybase.com/content/1026310/unicode_support_wp.pdf</a><br />
<br />
To fix the "text" fields check out this page: <a href="http://manuals.sybase.com/onlinebooks/group-asarc/srv10024/sag/@Generic__BookTextView/49306;pt=49154">http://manuals.sybase.com/onlinebooks/group-asarc/srv10024/sag/@Generic__BookTextView/49306;pt=49154</a><br />
<br />
Quote:<br />
<br />
<blockquote>
Changing to a multibyte character set makes the internal management of <i>text </i>data more complicated. Since a <i>text </i>value can be large enough to cover several pages, SQL Server must be able to handle characters that may span across page boundaries. To do so, the server requires additional information on each of the <i>text </i>pages.<br />
To see the names of all tables that contain <i>text </i>data, use this query:</blockquote>
<blockquote>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">select sysobjects.name<br />
from sysobjects, syscolumns<br />
where syscolumns.type = 35<br />
and sysobjects.id = syscolumns.id</span></blockquote>
<blockquote>
The System Administrator or table owner must run <b>dbcc fix_text </b>to calculate the new values needed.</blockquote>
Michahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.com0tag:blogger.com,1999:blog-4676437033450382245.post-68617364649902553892010-09-15T08:08:00.000-07:002012-10-04T01:58:45.387-07:00Passwort für Microsoft IE Test Virtual PCNormalerweise habe ich die virtuellen Maschinen zum Testen des IE nur kurz auf. Wenn es mal wieder etwas länger dauert, kann es schonmal passieren, dass man zur Eingabe des Passwortes genötigt wird. Als guter Entwickler ändert man das natürlich auch nie :)<br />
<br />
Das Passwort für den User IETest ist: <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>P2ssw0rd</b></span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b><br />
</b></span><br />
<span class="Apple-style-span" style="font-family: inherit;">Um das Ganze noch zu vervollständigen, hier der Link zu den Test Images:</span><br />
<a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&displaylang=en">Internet Explorer Application Compatibility VPC Image</a><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b><br />
</b></span>Michahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.com0tag:blogger.com,1999:blog-4676437033450382245.post-91445278456038605952010-08-27T07:23:00.001-07:002012-10-04T01:58:11.105-07:00[SYBASE] BCPDamit habe ich mich richtig rumgeärgert.. <br />
<div>
<br /></div>
<div>
<div>
[PATHTOSYBASE]\OCS-15_0\bin\bcp.exe [DBNAME].[TABLENAME] partition [PARTITIONNAME] in [PATHTOCSVFILE] -c -t ; -r \n -U [USERNAME] -P [PASSWORD] -S [SERVERNAME] -Y</div>
</div>
<div>
<br /></div>
<div>
<s>ich suche noch nach einer Seite, wo das im einzelnen erklärt ist.</s><br />
Hier ist die Seite vom Sybase Onlinebook: <a href="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc30191.1502/html/utility/X14951.htm">http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc30191.1502/html/utility/X14951.htm</a></div>
<div>
<br /></div>
<div>
Wichtig ist, dass die CSV Datei mit Unix-Zeilenendungen und in ANSI/ASCII geschrieben ist.</div>
Michahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.com0tag:blogger.com,1999:blog-4676437033450382245.post-86172957031213219852010-07-21T05:49:00.001-07:002012-10-04T01:57:12.580-07:00[SYBASE] Device anlegenUm ein neues Device in Sybase anzulegen verwendet man foldenden Befehl: <br />
<div>
<span class="Apple-style-span" style="font-family: 'courier new'; font-size: medium; white-space: pre;"><br /></span></div>
<div>
<span class="Apple-style-span" style="font-family: 'courier new'; font-size: medium; white-space: pre;"></span></div>
<blockquote>
<div>
<span class="Apple-style-span" style="font-family: 'courier new'; font-size: medium; white-space: pre;">disk init </span></div>
<div>
<span class="Apple-style-span" style="font-family: 'courier new'; font-size: medium; white-space: pre;">name = "[DEVICENAME]", </span></div>
<div>
<span class="Apple-style-span" style="font-family: 'courier new'; font-size: medium; white-space: pre;"></span><span class="Apple-style-span" style="font-family: 'courier new'; font-size: medium; white-space: pre;">physname = "[DEVICEPATH]",</span></div>
<div>
<span class="Apple-style-span" style="font-family: 'courier new'; font-size: medium; white-space: pre;"></span><span class="Apple-style-span" style="font-family: 'courier new'; font-size: medium; white-space: pre;">size = [DEVICESIZE]</span></div>
<div>
<span class="Apple-style-span" style="font-family: 'courier new'; font-size: medium; white-space: pre;"><br /></span></div>
<div>
<span class="Apple-style-span" style="font-family: 'courier new'; font-size: medium; white-space: pre;"></span><span class="Apple-style-span" style="font-family: 'courier new'; font-size: medium; white-space: pre;">go</span></div>
</blockquote>
<div>
<span class="Apple-style-span" style="font-family: 'courier new'; font-size: medium; white-space: pre;"></span></div>
<div>
<div>
<div>
<span class="Apple-style-span" style="font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12px;"></span><br />
<pre style="margin-bottom: 12px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12px;"><span class="Apple-style-span" style="font-family: 'courier new';"></span></span></pre>
</div>
</div>
</div>
Michahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.com0tag:blogger.com,1999:blog-4676437033450382245.post-92148147359244851262010-07-12T02:11:00.000-07:002012-10-04T01:57:31.268-07:00[SYBASE] Device mit iSQL vergößern<div>
Im nachfolgenden Beispiel möchte ich eine Datenbank von Data=100M und Log=50M auf Data=1000M und Log=500M vergößern. Dazu will ich kein neues Device anlegen, sondern die vorhandenen Devices vergrößern. Hier nun eine kurze Step-by-Step Anleitung.</div>
<div>
<br /></div>
Zuerst einmal einen Überblick verschaffen:<br />
<span class="Apple-style-span" style="font-family: 'courier new';"></span><br />
<blockquote>
<span class="Apple-style-span" style="font-family: 'courier new';">sp_helpdb [DBNAME]</span><br />
<span class="Apple-style-span" style="font-family: 'courier new';">go</span></blockquote>
<br />
Dann das Device vergrößern:<br />
<span class="Apple-style-span" style="font-family: 'courier new';"></span><br />
<blockquote>
<span class="Apple-style-span" style="font-family: 'courier new';">disk resize name="[DATADEVICE]", size="900M"</span><br />
<span class="Apple-style-span" style="font-family: 'courier new';">disk resize name="[LOGDEVICE]", size="450M"</span></blockquote>
Jetzt muss der neu geschaffene Speicherplatz der Datenbank zugewiesen werden:<br />
<div>
<div>
<span class="Apple-style-span" style="font-family: 'courier new';"></span><br />
<blockquote>
<span class="Apple-style-span" style="font-family: 'courier new';">alter database storedb ON [DATADEVICE]= "1000M" log on [LOGDEVICE]= "500M"</span></blockquote>
</div>
</div>
<div>
zum Schluss alles nochmal überprüfen:</div>
<div>
<span class="Apple-style-span" style="font-family: 'courier new';"></span><br />
<blockquote>
<span class="Apple-style-span" style="font-family: 'courier new';">sp_helpdb [DBNAME]</span><br />
<span class="Apple-style-span" style="font-family: 'courier new';">go</span></blockquote>
<div>
<span class="Apple-style-span" style="font-family: 'courier new';"><br /></span></div>
</div>
Michahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.com0tag:blogger.com,1999:blog-4676437033450382245.post-32047500094303969732009-05-31T14:41:00.000-07:002009-05-31T14:43:44.192-07:00Amazon Associates WebserviceDa ich den Link zur Amazon Associates Webservice Dokumentation immer suche, lege ich den Verweis hier ab: <a href="http://docs.amazonwebservices.com/AWSECommerceService/2009-02-01/DG/">http://docs.amazonwebservices.com/AWSECommerceService/2009-02-01/DG/</a>Michahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.com0tag:blogger.com,1999:blog-4676437033450382245.post-25425578357744951402009-05-31T14:35:00.000-07:002012-07-20T00:16:06.091-07:00[Google Maps] Marker ClustererEine interessante Lösung viele Marker darzustellen:<br />
<a href="http://gmaps-utility-library.googlecode.com/svn/trunk/markerclusterer/1.0/examples/speed_test_example.html"> http://gmaps-utility-library.googlecode.com/svn/trunk/markerclusterer/1.0/examples/speed_test_example.html </a><br />
<br />
<b>How it works</b>:<br />
<br />
* The <code>MarkerClusterer</code> will group markers into clusters according to<br />
* their distance from a cluster's center. When a marker is added,<br />
* the marker cluster will find a position in all the clusters, and<br />
* if it fails to find one, it will create a new cluster with the marker.<br />
* The number of markers in a cluster will be displayed<br />
* on the cluster marker. When the map viewport changes,<br />
* <code>MarkerClusterer</code> will destroy the clusters in the viewport<br />
* and regroup them into new clusters.Michahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.com0tag:blogger.com,1999:blog-4676437033450382245.post-3488137125277588472009-02-17T02:22:00.000-08:002012-10-04T01:56:49.076-07:00[LINUX] Packen und entpacken unter Linux<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1.25em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
Ein Verzeichnis mit tar.gz packen:</div>
<pre style="background-color: white; color: #333333; font-size: 12px; line-height: 18px;">tar cfvz paketname.tar.gz verzeichnisname/</pre>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1.25em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<br /></div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1.25em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
Ein Verzeichnis mit tar.gz entpacken:</div>
<pre style="background-color: white; color: #333333; font-size: 12px; line-height: 18px;"><span style="font-family: 'Courier New', Courier, monospace;">tar xfvz paketname.tar.gz</span></pre>
Michahttp://www.blogger.com/profile/16233596158781369630noreply@blogger.com0