Manage PlItems

You may optionally enter a comparison operator (<, <=, >, >=, <> or =) at the beginning of each of your search values to specify how the comparison should be done.

Advanced Search
Displaying 191-200 of 300 results.
IDPlCodelangPlGroupPlItemTitleCode 
 
137T-SQLDatenmengenDifferenzen anzeigenSELECT field_to_compare FROM Destination_Table EXCEPT SELECT field_to_compare FROM Source_TableView Update Delete
139T-SQLDatenbank-AdministrationAlle Transaktion/Jounal-Log Files verkleinern-- The script is designed to work on a sql server -- 2008R2. However it works on 2005 and sql server -- 2012 instances. -- It shrinks all log files for the databases -- created by users -- Written by Igor Micev, 2012 -- from SQLServerCentral.com declare @logname nvarchar(128) declare @dbname nvarchar(128) declare @dynamic_command nvarchar(1024) set @dynamic_command = null declare log_cursor cursor for select db_name(mf.database_id),name from sys.master_files mf where mf.database_id not in (1,2,3,4) --avoid system databases and mf.name not like 'ReportServer$%' and right(mf.physical_name,4) = '.ldf' and mf.state_desc='online' open log_cursor fetch next from log_cursor into @dbname,@logname while @@fetch_status = 0 begin set @dynamic_command = 'USE '+@dbname+' DBCC SHRINKFILE(N'''+@logname+''',0,TRUNCATEONLY)' exec sp_executesql @dynamic_command fetch next from log_cursor into @dbname,@logname set @dynamic_command = null end close log_cursor deallocate log_cursor View Update Delete
140T-SQLDatenbankAktuellen Datenbanknamen ausgebenSELECT DB_NAME() AS DB_NameView Update Delete
235MySQLDatenbankAktuellen Datenbanknamen ausgebenSELECT DATABASE() AS DB_Name;View Update Delete
141SQLiteDatenbankFremdschlüsselprüfung aktivieren-- http://www.sqlite.org/foreignkeys.html PRAGMA foreign_keys = ON; -- !! this is only valid for the current session. -- If you want to use this permanent, you have to use this statement every time you start a new sessionView Update Delete
142JavaScriptURL-HandlingAktuelle URL bekommen// http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-46183437 myURL = document.URL; // => http://myDNSNameOrIP:1234/path/testfile.htmlView Update Delete
187PHPURL-HandlingAktuelle URL bekommen// https://myDomain/appPath/index.php $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://"; $domainName = $_SERVER['HTTP_HOST']; $query = $_SERVER['PHP_SELF']; $path = pathinfo( $query ); $myURLBasePath=$protocol.$domainName.$path['dirname']; echo $myURLBasePath; // https://myDomain/appPath echo $myURLBasePath.'/'.$path['basename']; // https://myDomain/appPath/index.phpView Update Delete
143JavaScriptURL-HandlingDomain und Port einer URLdomainAndPort = document.URL.split("/")[2]; // => 192.168.1.100:1234 // => myDNSname.com:6789View Update Delete
287MySQLStringsAnzahl an Zeichen in einem String ermitteln-- Gets only result with 4 "/" in the the field relativePath SELECT id ,albumRoot ,relativePath ,date ,caption ,collection ,icon ,LENGTH(relativePath) - LENGTH(REPLACE(relativePath,'/','')) AS `occurrences` FROM Albums WHERE LENGTH(relativePath) - LENGTH(REPLACE(relativePath,'/',''))=4 ; View Update Delete
145JavaScriptStringsAnzahl an Zeichen in einem String ermittelnmyString = "This is a string, containing some words. Try it, if you don't believe ;-)"; // Get the count of commas in the string: cntCommas = myString.split(",").length-1; // => 2View Update Delete