Ir al contenido principal

Estructura de una tabla SQL Server

select * from sysobjects where name Like '%tabla/vista%'

select syscolumns.name, systypes.name, syscolumns.length from syscolumns
inner join systypes
on syscolumns.xtype = systypes.xtype
where id = 94675435
order by syscolumns.colid

Comentarios

Entradas populares de este blog

Word campos combinados formato numero

cuando combinamos correspondencia con un Excel el importe puede darnos con muchos decimal, formato campo combiando: { MERGEFIELD total \# "0.000,00" } Porcentaje { ={ MERGEFIELD importe } * 100 \# "0%"} fuente: http://www.gmayor.com/formatting_word_fields.htm

validar dni

bool validarDNI( string dni) { if ( new Regex(" [0-9]{8}[A-Za-z] ").Match(dni).Success) { return (" TRWAGMYFPDXBNJZSQVHLCKE "[( int ) long .Parse(dni.Substring(0, 8)) % 23].ToString() == dni .ToString().ToUpper()); } else { return false ; } } fuente: http://weblogs.asp.net/aspnet-es-blogs/archive/tags/Trucos/ASP.NET/default.aspx