Public regKey As Microsoft.Win32.RegistryKey regKey = My.Computer.Registry.CurrentUser.OpenSubKey("Control Panel\International", True) If regKey.GetValue("sShortDate") = "dd/MM/yyyy" Then Else SetRegionalSetting("dd/MM/yyyy") End If
Saturday, 11 June 2011
Get or set shortdate format from regional setting in .net
Friday, 10 June 2011
Enable disable all Trigger In One Query
sp_MSforeachtable "ALTER TABLE ? DISABLE TRIGGER ALL" GO sp_MSforeachtable "ALTER TABLE ? ENABLE TRIGGER ALL"
Subscribe to:
Posts (Atom)