This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.dofactory.com/Patterns/PatternAdapter.aspx#_self1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE FUNCTION [dbo].[ADV_FS_NUM_LETRAS]( | |
@Numero NUMERIC(20,2) ) | |
RETURNS VARCHAR(MAX) | |
AS | |
BEGIN | |
DECLARE @ImpLetra Varchar(180) | |
DECLARE @lnEntero INT, | |
@lcRetorno VARCHAR(512), | |
@lnTerna INT, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE I INT | |
SET I = 0 | |
DBCC CHECKIDENT('TABLA', RESEED, I) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) | |
http://vishaljoshi.blogspot.com/2009/08/web-application-project-vs-web-site.html | |
2) De donde se sacó la información y relativo al primer link. | |
http://stackoverflow.com/questions/7233521/reference-folder-in-solution-explorer-not-showing-vs2010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ACTIVA EL MOSTRAR OPCIONES AVANZADAS EN SP_CONFIGURE | |
sp_configure 'show advanced', 1; | |
GO | |
-- COMO UN COMMIT PARA EL SCRIPT ANTERIOR | |
RECONFIGURE; | |
GO | |
-- MUESTRA LAS OPCIONES DE SP_CONFIGURE | |
sp_configure; | |
GO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE msdb | |
GO | |
sysmail_help_queue_sp @queue_type = 'Mail' ; | |
SELECT * FROM sysmail_allitems ORDER BY send_request_date DESC | |
SELECT * FROM sysmail_sentitems ORDER BY send_request_date DESC | |
SELECT * FROM sysmail_unsentitems | |
SELECT * FROM sysmail_faileditems | |
SELECT * FROM sysmail_event_log ORDER BY log_date DESC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://sqlperformance.com/2013/02/t-sql-queries/halloween-problem-part-1 | |
http://es.stackoverflow.com/questions/3283/orden-de-ejecuci%C3%B3n-de-varios-update-con-sql-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE PROC BuscaValorEnBBDD | |
( | |
@StrValorBusqueda nvarchar(100) | |
) | |
AS | |
BEGIN | |
CREATE TABLE #Resultado (NombreColumna nvarchar(370), ValorColumna nvarchar(3630)) | |
SET NOCOUNT ON |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
dm_mid.database_id AS DatabaseID, | |
dm_migs.avg_user_impact*(dm_migs.user_seeks+dm_migs.user_scans) Avg_Estimated_Impact, | |
dm_migs.last_user_seek AS Last_User_Seek, | |
OBJECT_NAME(dm_mid.OBJECT_ID,dm_mid.database_id) AS [TableName], | |
'CREATE INDEX [IX_' + OBJECT_NAME(dm_mid.OBJECT_ID,dm_mid.database_id) + '_' | |
+ REPLACE(REPLACE(REPLACE(ISNULL(dm_mid.equality_columns,''),', ','_'),'[',''),']','') + | |
CASE | |
WHEN dm_mid.equality_columns IS NOT NULL AND dm_mid.inequality_columns IS NOT NULL THEN '_' | |
ELSE '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//e.Row.Attributes.Add("style", "cursor:help;"); | |
//if (e.Row.RowType == DataControlRowType.DataRow && e.Row.RowState == DataControlRowState.Alternate) | |
//{ | |
// if (e.Row.RowType == DataControlRowType.DataRow) | |
// { | |
// e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='orange'"); | |
// e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#E56E94'"); | |
// e.Row.BackColor = Color.FromName("#E56E94"); |