Your Demat account number will be assigned as soon as you open your account. You will receive a mail/ letter with your account details, including ID for the DP, account number, etc., once you open your account.