Sunday, October 10, 2010
Google Apps Standard Edition
Link to set up domain for Google Apps Standard Edition is as below http://www.google.com/a/cpanel/domain/new
Friday, September 24, 2010
MyMobiler-nice tool to remote control a mobile device
Nice tool to have when developing mobile applications. It works as remote desktop for your mobile device making testing on actual device easier.
MyMobiler v1.25 (02/07/2008) - FREEWARE
* View your mobile screen on your desktop.
* Control your mobile by using desktop keyboard and mouse.
* Copy/Cut/Paste text between mobile and desktop.
* Capture mobile screen.
* Drag and drop files to your mobile.
* Support ActiveSync / IP Connection
* Support Mobile Explorer (File Browse)
* Run Command by Ctrl-Enter
This freeware can be downloaded at http://www.mymobiler.com/
Works great with Symbol handheld scanners with Windows Mobil 5
MyMobiler v1.25 (02/07/2008) - FREEWARE
* View your mobile screen on your desktop.
* Control your mobile by using desktop keyboard and mouse.
* Copy/Cut/Paste text between mobile and desktop.
* Capture mobile screen.
* Drag and drop files to your mobile.
* Support ActiveSync / IP Connection
* Support Mobile Explorer (File Browse)
* Run Command by Ctrl-Enter
This freeware can be downloaded at http://www.mymobiler.com/
Works great with Symbol handheld scanners with Windows Mobil 5
Saturday, August 21, 2010
Find out free disk space on SQL server
The xp_fixeddrives returns a list of physical hard drives associated with the SQL Server machine and the number of megabytes of free space on each one.
exec xp_fixeddrives
exec xp_fixeddrives
Wednesday, July 14, 2010
Convert all uppercase text to propercase in MS-Word.
1. Copy and paste all uppercase text in MS-Word.
2. Select all the text by pressing CTRL + A.
3. Press SHIFT + F3 to convert all text to lowercase.
4. Press SHIFT + F3 again to convert it to propercase.
2. Select all the text by pressing CTRL + A.
3. Press SHIFT + F3 to convert all text to lowercase.
4. Press SHIFT + F3 again to convert it to propercase.
Tuesday, June 22, 2010
T-SQL Format DateTime
Convert SQL DATE/Times to commonly used formats
-- Date Format MM/DD/YYYY
SELECT CONVERT(varchar(10),getdate(),101)
-- Date Fromat MM/DD/YYYY HH:MM
SELECT CONVERT(char(10), getdate(), 101)
+ ' ' + CONVERT (char(5), getdate(), 108);
SELECT CONVERT(VARCHAR, GetDate(), 101) + ' ' +
CONVERT(VARCHAR, DATEPART(hh, GetDate())) + ':' +
RIGHT('0' + CONVERT(VARCHAR, DATEPART(mi, GetDate())), 2) AS Date
SELECT CONVERT(CHAR(11),GETDATE(),101)
+ CONVERT(CHAR( 5),GETDATE(),114)
--- Date Format MM/DD/YYYY HH:MMAM/PM
SELECT CONVERT(VARCHAR(10), GETDATE(), 101) + ' ' + RIGHT(CONVERT(VARCHAR, GETDATE(), 100), 7)
-- Date Format MM/DD/YYYY
SELECT CONVERT(varchar(10),getdate(),101)
-- Date Fromat MM/DD/YYYY HH:MM
SELECT CONVERT(char(10), getdate(), 101)
+ ' ' + CONVERT (char(5), getdate(), 108);
SELECT CONVERT(VARCHAR, GetDate(), 101) + ' ' +
CONVERT(VARCHAR, DATEPART(hh, GetDate())) + ':' +
RIGHT('0' + CONVERT(VARCHAR, DATEPART(mi, GetDate())), 2) AS Date
SELECT CONVERT(CHAR(11),GETDATE(),101)
+ CONVERT(CHAR( 5),GETDATE(),114)
--- Date Format MM/DD/YYYY HH:MMAM/PM
SELECT CONVERT(VARCHAR(10), GETDATE(), 101) + ' ' + RIGHT(CONVERT(VARCHAR, GETDATE(), 100), 7)
Tuesday, May 25, 2010
Search and Replace in text column
You can not use T-SQL Replace function directly on a text field.
There are more complex ways to do this but if your filed size is < 8000 ( or <4000 for nvarchar), simple sql below may serve the purpose
UPDATE myTableSET set myField = REPLACE(SUBSTRING(myField, 1, DATALENGTH(myField)), 'searchText', 'replacementText') where DATALENGTH(myField) < 8000
There are more complex ways to do this but if your filed size is < 8000 ( or <4000 for nvarchar), simple sql below may serve the purpose
UPDATE myTableSET set myField = REPLACE(SUBSTRING(myField, 1, DATALENGTH(myField)), 'searchText', 'replacementText') where DATALENGTH(myField) < 8000
Friday, April 30, 2010
Restoring SQL Server databases from .mdf files
USE master;
GO
-- first detach the exisitng databse if already exists
EXEC sp_detach_db @dbname = 'AdventureWorks';
-- attach .mdf file to the database
EXEC sp_attach_single_file_db @dbname = 'AdventureWorks',
@physname = N'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Data\AdventureWorks_Data.mdf';
GO
-- first detach the exisitng databse if already exists
EXEC sp_detach_db @dbname = 'AdventureWorks';
-- attach .mdf file to the database
EXEC sp_attach_single_file_db @dbname = 'AdventureWorks',
@physname = N'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Data\AdventureWorks_Data.mdf';
Subscribe to:
Posts (Atom)