Friday, December 7, 2012
SQL Server backup results
b.backup_start_date ,
b.backup_finish_date
FROM master..sysdatabases a
LEFT OUTER JOIN msdb..backupset b ON a.name = b.database_name
WHERE DATEPART(DW,b.backup_start_date) IN (6, 7)
AND b.type NOT IN ( 'L', 'I')
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
Subscribe to:
Posts (Atom)