Saturday, July 7, 2012
Friday, April 27, 2012
Managing Session Timeouts in .NET
Sunday, April 8, 2012
import/export BLOB
http://blog.rptea.com/post/Simple-scripts-to-insert-File-to-BLOB-field-and-export-BLOB-to-File-system.aspx
CREATE TABLE [dbo].[TmpBin](
[MyId] [int] IDENTITY(1,1) NOT NULL
, [MyDesc] [varchar](50) NULL
, [MyBin] [varbinary](max) NULL )
ON [PRIMARY]
INSERT INTO (MyDesc, MyBin)
Select 'MyDesc01'
, BulkColumn from Openrowset( Bulk 'C:\temp\image1.jpg', Single_Blob) as tt
Insert TmpBin(MyDesc, MyBin)
Select 'MyDesc02'
, BulkColumn from Openrowset( Bulk 'C:\temp\image2.jpg', Single_Blob) as tt
INSERT INTO TmpBin(MyDesc, MyBin)
SELECT 'MyDesc03'
, BulkColumn
FROM Openrowset( Bulk 'C:\temp\image3.jpg', Single_Blob) as tt
CREATE TABLE [dbo].[TmpBin](
[MyId] [int] IDENTITY(1,1) NOT NULL
, [MyDesc] [varchar](50) NULL
, [MyBin] [varbinary](max) NULL )
ON [PRIMARY]
INSERT INTO (MyDesc, MyBin)
Select 'MyDesc01'
, BulkColumn from Openrowset( Bulk 'C:\temp\image1.jpg', Single_Blob) as tt
Insert TmpBin(MyDesc, MyBin)
Select 'MyDesc02'
, BulkColumn from Openrowset( Bulk 'C:\temp\image2.jpg', Single_Blob) as tt
INSERT INTO TmpBin(MyDesc, MyBin)
SELECT 'MyDesc03'
, BulkColumn
FROM Openrowset( Bulk 'C:\temp\image3.jpg', Single_Blob) as tt
Tuesday, March 27, 2012
What language uses .do extension?
No, No, No!
The .do extension is strictly for JavaServer Pages using the struts framework. The .do extension tells the Application Server to find a config file which calls the proper action class to process the form.
Struts is the ultimate "separate content from display" implementation.
Go to www.sun.com or to apache.org to find out more about JSP and Struts.
Thursday, February 23, 2012
Ctrl+alt+end
Using CTRL + ALT + DEL on Remote Desktop (hint...its really ctrl+alt+end)
Monday, January 23, 2012
Visual Studio Command to Collapse/Expand all sections of code
CTRL + M + O will collapse all
CTRL + M + L will expand all
CTRL + M + P will expand and disable outlining
CTRL + M + M will collapse/expand the current section
CTRL + M, CTRL + L collapses/expands (toggles) all regions
CTRL + M + L will expand all
CTRL + M + P will expand and disable outlining
CTRL + M + M will collapse/expand the current section
CTRL + M, CTRL + L collapses/expands (toggles) all regions
Tuesday, December 13, 2011
Monday, November 28, 2011
MS-Word Easter Egg
Open MS-Word
type =Rand(3,8)
press Enter
type =Rand(3,8)
press Enter
On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look. You can easily change the formatting of selected text in the document text by choosing a look for the selected text from the Quick Styles gallery on the Home tab. You can also format text directly by using the other controls on the Home tab. Most controls offer a choice of using the look from the current theme or using a format that you specify directly. To change the overall look of your document, choose new Theme elements on the Page Layout tab. To change the looks available in the Quick Style gallery, use the Change Current Quick Style Set command.
Both the Themes gallery and the Quick Styles gallery provide reset commands so that you can always restore the look of your document to the original contained in your current template. On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look. You can easily change the formatting of selected text in the document text by choosing a look for the selected text from the Quick Styles gallery on the Home tab. You can also format text directly by using the other controls on the Home tab. Most controls offer a choice of using the look from the current theme or using a format that you specify directly. To change the overall look of your document, choose new Theme elements on the Page Layout tab.
To change the looks available in the Quick Style gallery, use the Change Current Quick Style Set command. Both the Themes gallery and the Quick Styles gallery provide reset commands so that you can always restore the look of your document to the original contained in your current template. On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look. You can easily change the formatting of selected text in the document text by choosing a look for the selected text from the Quick Styles gallery on the Home tab. You can also format text directly by using the other controls on the Home tab. Most controls offer a choice of using the look from the current theme or using a format that you specify directly.
Thursday, October 20, 2011
Excel: Searching inside a string
VBA = instr(string to be searched, string searching for, where to start)
formula: = search()
formula: = search()
Tuesday, October 18, 2011
Microsoft Home Use Program
If you have a valid SOCOM email address, you can take advantage of the Microsoft Home Use Program.
Program Code: 8FC2A88309
The cost for Microsoft Office is a staggering $9.95.
Subscribe to:
Posts (Atom)