Windows 10 işletim sisteminde aynı anda birden fazla uzak masaüstü kullanabilmek için Rdp Wrapper adlı programı kullanabilirsiniz. Aynı anda 3 kullanıcıya kadar destekliyor. Rdp Wrapper Program setup -> https://github.com/stascorp/rdpwrap/releases msi dosyasını kurarken bazen hata verebiliyor. zip dosyasını indirmenizi tavsiye ederim. Zip dosya içeriğini bilgisayarınızda herhangi bir dizine çıkardıktan sonra install.bat dosyasını çalıştırın. Program kurulduktan sonra RDPConf.exe…
Mssql Tablo boyutlarını listeleme
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 |
;with SpaceInfo(ObjectId, IndexId, TableName, IndexName ,Rows, TotalSpaceMB, UsedSpaceMB) as ( select t.object_id as [ObjectId] ,i.index_id as [IndexId] ,s.name + '.' + t.Name as [TableName] ,i.name as [Index Name] ,sum(p.[Rows]) as [Rows] ,sum(au.total_pages) * 8 / 1024 as [Total Space MB] ,sum(au.used_pages) * 8 / 1024 as [Used Space MB] from sys.tables t with (nolock) join sys.schemas s with (nolock) on s.schema_id = t.schema_id join sys.indexes i with (nolock) on t.object_id = i.object_id join sys.partitions p with (nolock) on i.object_id = p.object_id and i.index_id = p.index_id cross apply ( select sum(a.total_pages) as total_pages ,sum(a.used_pages) as used_pages from sys.allocation_units a with (nolock) where p.partition_id = a.container_id ) au where i.object_id > 255 group by t.object_id, i.index_id, s.name, t.name, i.name ) select ObjectId, IndexId, TableName, IndexName ,Rows, TotalSpaceMB, UsedSpaceMB ,TotalSpaceMB - UsedSpaceMB as [ReservedSpaceMB] from SpaceInfo order by TotalSpaceMB desc option (recompile) |
…
Django legacy database generate model of specific table
1 |
python manage.py inspectdb TableName > output.py |
…
SQL Update with row_number()
1 2 3 4 5 6 |
UPDATE x SET x.CODE_DEST = x.New_CODE_DEST FROM ( SELECT CODE_DEST, ROW_NUMBER() OVER (ORDER BY [RS_NOM]) AS New_CODE_DEST FROM DESTINATAIRE_TEMP ) x |
Kaynak: https://stackoverflow.com/a/13653680…
Sql Tablo Kolon ve Özelliklerini listeleme
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
SELECT c.name 'Column Name', t.Name 'Data type', c.max_length 'Max Length', c.precision , c.scale , c.is_nullable, ISNULL(i.is_primary_key, 0) 'Primary Key' FROM sys.columns c INNER JOIN sys.types t ON c.user_type_id = t.user_type_id LEFT OUTER JOIN sys.index_columns ic ON ic.object_id = c.object_id AND ic.column_id = c.column_id LEFT OUTER JOIN sys.indexes i ON ic.object_id = i.object_id AND ic.index_id = i.index_id WHERE c.object_id = OBJECT_ID('TABLOADI') --VEYA OBJECT_NAME(c.object_id) LIKE'TABLOADI' |
…
Visual studio tüm projeler için tek app.config kullama
Visual Studio’da, solution içinde birden fazla proje ile çalışıyor ve bu projelerin hepsinin tek app.config dosyasını kullanmasını istiyorsan; Projelerden sadece birinde app.config olsun. Diğer rojelerde sağ klik -> Add -> “Add Existing Item” ile App.config dosyasını seç ve “Add” butonunun yanındaki minik üçgene basıp “Add as Link” seçeneği ile projene ekle. Bitti, gitti. …
Windows mobile device emulator internet bağlantısı
Windows 7 ve üstü işletim sisteminde “Visual Studio Smart Device Project” geliştirirken emulatörü networke bağlamak için: Windows Mobil Aygıt Merkezi’ni aç ve connection settings kısmında “Allow connections to the one of the following” seçeneğini işaretleyip altındaki listeden “DMA” yı seç ve mobil aygıt merkezini açık bırak. Device Emulator Manager’ı açıp bir emulator seç ve sağ klik…
Ssh tunneling ile mysql bağlantısı
1 |
ssh -L 3333:localhost:3306 username@hostname |
…
Azure Linux vm pureftpd ayarları
1 2 |
echo "40110 40210" > /etc/pure-ftpd/conf/PassivePortRange sudo service pure-ftpd restart |
daha sonra da sanal makinenin ağ güvenlik kuralları -> gelen kuralları bölümünden 40110-40210 port aralığı için izin ver…
Vega Yazılım kasa satışları e-defter uyumlu muhasebe entegrasyon ayarları
İlk iş PEŞİN carisinin 5. Özel koduna POS yazıyoruz. Böylece muhasebe tarafında Peşin Satış faturasını entegre ederken ‘Pos Belgeleri -> Pos Satışları’ altında görebileceğiz. Daha sonra oluşacak muhasebe fişinin e-defter kılavuzundaki gerekliliklere uygun olması için ; Pos faturalarını listeleyip “İşlemler” kısından düzenle seçeneğini seçiyoruz. Gelen ekrandan Entegre Et scriptini düzenle diyoruz. Scriptin en başındaki değerleri…