Showing posts with label Way to Code Hack. Show all posts
Showing posts with label Way to Code Hack. Show all posts

Thursday, 21 November 2013

How to use crmsvcutil.exe in CRM 2011

Another Archive for CRM Development

CrmSvcUtil.exe /url:http://crmdevmscrm/CRM2011DEV/xrmServices/2011/Organization.svc/out:HosksGeneratedCode.cs    /username:Hosk /password:Hoskpassword

Source : http://crmbusiness.wordpress.com/2011/01/29/crm-2011-simple-crmsvcutil-example-for-creating-early-bound-classes/

Monday, 14 October 2013

Cara mencari String atau text di dalam Stored procedure di SQL server

Sumber : http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/

Cuma sebagai archive lagi... Cara mencari String atau text di dalam Stored procedure di SQL server *Tested di SQL Server 2008

SELECT DISTINCT o.name ,o.xtype
FROM syscomments c
INNER JOIN sysobjects o ON c.id=o.id
WHERE c.TEXT LIKE '%text yg dicari%'

Friday, 16 August 2013

Query untuk mendapatkan nama kolom di SQL Server


Sama seperti post sebelumnya. Saya mendapatkan ini di post dengan bahasa inggdri. Saya hanya mengetikkan ini disini sebagai archive agar saya tidak lupa...

Terkadang saat kita maintenance aplikasi yg telah jadi, terdapat table di sql server yg tidak memiliki foreign key. Untuk itu kita harus mencari nama kolom tersebut manual. Untuk mencarinya dengan cara cepat kita dapat menggunakan : 

SELECT t.name AS table_name,
SCHEMA_NAME(schema_id) AS schema_name,
c.name AS column_name
FROM sys.tables AS t
INNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJECT_ID
WHERE c.name LIKE '%NamaTable%'
ORDER BY schema_name, table_name;

Semoga membantu.. *ma'af repost... cuma sebagai archive

Wednesday, 14 August 2013

Cara Membuat Hot Spot WiFi melalui Laptop

Hm... Sepi sekali blog ini...

Next post akan pakai bahasa indonesia. Saya habis tidak lulus kelas bahasa inggris. *malah curhat...

Beberapa waktu lalu saya membeli HP baru... (Sombong... Sombong...). Lenovo K860. Sebuah hp yang cukup kuat untuk memainkan game game. Lalu saya juga membeli sebuah modem smartfren rev b. (Selama masa promosi cepat lho. Download di surabaya mencapai 500 kb/s di kuta bali mencapai 300 kb/s) Tujuannya, saya ingin menjadikan smartfren saya menjadi hotspot wireless (wifi hot spot).

Awalnya saya kira saya hanya perlu membuat sebuah koneksi ad hoc. *Peer to peer device saya dengan laptop. Sayangnya, hal ini tidak dimungkinkan... Setelah mencari beberapa lama. Saya menemukan sebuah artikel.... *Ma'af linknya hilang...

Yang kita lakukan adalah mengubah laptop kita menjadi hosted network. Jika anda tidak ingin membaca dari sumber berbahasa inggris, anda dapat membacanya disini...
  1. Connectkan modem anda ke internet
  2. Di connection properties modem anda, buat agar komputer lain bisa mengaksesnya. Caranya klik start : control panel  : network and internet  :  network and sharing center
  3. Click di link koneksi wireless anda. Disini saya menggunakan smartfren. Yang terlihat adalah ZTE Wireless Terminal
  4. Akan terbuka jendela status ZTE. Klik Properties
  5. Di jendela properties klik sharing dan centang allow other network users to....
  6. Klik Ok
  7. Masuk CMD as administrator (Buka start  :  ketik CMD di menu search  :  klik kanan  :  Run as Administrator)
  8. Ketikkan Perintah Berikut di CMD (Tidak pakai kurung siku) :
    netsh wlan set hostednetwork mode=allow ssid=[NamaNetwork] key=[Password]
    netsh wlan start hostednetwork
  9. Viola, laptop anda sekarang menjadi sebuah hot spot pribadi.
NOTE :
  1. Untuk melihat apakah network anda sedang menyala atau tidak ketik :
    netsh wlan show hostednetwork
  2. Untuk menghentikan share anda ketik :
    netsh wlan stop hostednetwork
Semoga membantu......

Tuesday, 18 June 2013

How to see Dynamic CRM data GUID

Hi hi... Another short post from me.

I will tell you some trick in as CRM admin. Dynamic CRM always use GUID as ID in each Data. Sometimes you need those GUID. There is an easy way to do that which is by using the URL.


  1. Click one data to open detail.  
  2. If the address bar is not shown. Press f11 (full screen) on data you want to get the GUID, find the url http://server:5555/org/main.aspx?etc=1&extraqs=%3f_gridType%3d1%26etc%3d1%26id%3d%257bE5F67BB7-51FE-DD11-8631-000C29478A85%257d%26rskey%3d521859899&pagetype=entityrecord
  3. The bold text above is the GUID.

Friday, 14 June 2013

Useful CMD Commands

Hm... So for today I want to post something useful(?).

As a developer we need to know basic usage of Command Prompt. Why? For example if your program suddenly crashed. In unknown reason. And the error said, the IP was used by another process. But you don't know how you would achieve that. You could use netstat.

This is just one example. I wish this could be useful for you.

Find Server Name
nslookup 172.19.12.237

Find Port Used (Below is the example in finding netstat for port 80)
netstat -o -n -a | findstr 0.0:80

Kill process by PID
taskkill /PID

Flush DNS
If you cannot access your computer by domain name. Do the following Command
ipconfig -flushdns

Check Serial Number DLL
Use this on visual studio command prompt
for check serial number - SN -T DllNames.dll

Reset IIS
iisreset

Auto Shutdown windows with CMD command in 60 seconds
Auto Shutdown - shutdown -s -f -t 60

Synchronize
To synchronize time with Active Directory server run the following command
net time  /domain:domain.com /set

Copy and merge files
How to copy a csv files to be one big files. Start > Run > type "cmd"
copy *.csv name.csv

Find out is the port of your server is opened from client
telnet servername 80

I hope this post could be useful for you, and for your project. :)

Actually i have a lot of things to share with you. But almost all of them was just copying from another site. I think i will post it here someday.