Enable Console Lock Display Off Timeout in Windows 8
Posted on 05/01/13 by adminhttp://www.c-sharpcorner.com/UploadFile/93126e/enable-console-lock-display-off-timeout-in-windows-8/
Free Online recorded screen casts/video/demos
Posted on 01/26/13 by dina No Comments »Making a Bootable USB with Windows 7
Posted on 12/31/12 by dinahttp://www.johnpapa.net/bootfromusb/
- Grab a 4GB USB stick
- Format the USB stick with NTFS using the “quick format”. (You can do this via Windows Explorer)
- Open a CMD prompt (run it as administrator)
- Run DISKPART
- Select the volume for the USB stick. First enter LIST VOL to show the list.
- Then enter SELECT VOL x where x is the volume number from the list
- Mark the volume as active by entering ACTIVE
- Enter EXIT to quit the DISKPART command line (but do not close the CMD prompt window)
- In the CMD prompt window, go to the location where you extracted the Windows 7 files on your computer
- Go into the BOOT folder
- Type BOOTSECT /NT60 <drive letter>: where the drive letter is the USB drive.
- Example BOOTSECT /NT60 G:
Windows 8 Admin tools
Posted on 12/30/12 by dinaIf you can’t find Event Viewer, press the Windows key to go to the Start page and then invoke the Settings charm. Select Tiles, and turn on Show Administrative Tools. You’ll then see a tile for Event Viewer on your Start page.
Stop Debugging the Win 8 app
Posted on 12/23/12 by dinaThere is no button or command to close the app. To close the app, slide from the top edge toward the bottom edge of the screen or press Alt-F4. Go to the Start screen; notice that deploying the app adds its tile to the last group on the Start screen. To run the app again, tap or click its tile on the start screen or press F5 in Visual Studio to run the app in the debugger.
It doesn’t do much—yet—but congratulations, you’ve built your first Windows Store app!
To stop debugging the app, press Alt+Tab to return to Microsoft Visual Studio. In Visual Studio, click Debug > Stop debugging to close the app. You can’t edit in Visual Studio while you’re debugging.
Win 8 app dev
Posted on 12/22/12 by dina No Comments »ODBC App Name–to show up in Ignite or SQL profiler
Posted on 12/21/12 by dina
Data Source=(local);Initial Catalog=AdventureWorks; Integrated Security=True;Application Name="My Application"
T-SQL Paging
Posted on 12/06/12 by dinahttp://joelabrahamsson.com/entry/my-favorite-way-to-do-paging-with-t-sql
1: DECLARE @intPage int
2: DECLARE @intPageSize int
3:
4: Set @intPage = 2;
5: Set @intPageSize = 10;
6:
7: DECLARE @intStartRow int;
8: DECLARE @intEndRow int;
9:
10: SET @intStartRow = (@intPage -1) * @intPageSize + 1;
11: SET @intEndRow = @intPage * @intPageSize;
12: WITH subset AS (
13:
14: SELECT
15: ROW_NUMBER() OVER(ORDER BY creation_time DESC ) as intRow, --order by this column only
16: COUNT(1) OVER() AS intTotalHits, --count without loading entire data
17: creation_time
18: ,last_execution_time
19: ,total_physical_reads
20: ,total_logical_reads
21: ,total_logical_writes
22: , execution_count
23: , total_worker_time
24: , total_elapsed_time
25: , total_elapsed_time / execution_count avg_elapsed_time
26: ,SUBSTRING(st.text, (qs.statement_start_offset/2) + 1,
27: ((CASE statement_end_offset
28: WHEN -1 THEN DATALENGTH(st.text)
29: ELSE qs.statement_end_offset END
30: - qs.statement_start_offset)/2) + 1) AS statement_text
31: FROM sys.dm_exec_query_stats AS qs
32: CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) st
33: --ORDER BY total_elapsed_time / execution_count DESC
34: )
35:
36: SELECT creation_time, intRow, intTotalHits FROM subset
37: WHERE intRow BETWEEN @intStartRow AND @intEndRow
