to_char(campo_fecha,'DD/MM/YYYY HH24:MI:SS')
Para probarlo:
select to_char(sysdate,'DD/MM/YYYY HH24:MI:SS') from dual;
Más información en:
http://www.oradev.com/oracle_date_format.jsp
to_char(campo_fecha,'DD/MM/YYYY HH24:MI:SS')
select to_char(sysdate,'DD/MM/YYYY HH24:MI:SS') from dual;
using System;
using System.Collections;
using System.Security.Principal;
using System.Reflection;
using System.IO;
public
class Prueba
{
public static void Main()
{
StreamWriter sw = File.CreateText("roles.txt");
foreach (IdentityReference Role in WindowsIdentity.GetCurrent().Groups.Translate(typeof(NTAccount)))
{
Console.WriteLine(Role.Value);
sw.WriteLine(Role.Value);
}
Console.ReadLine();
sw.Close();
}
}
public class AdapterModificado : DSTableAdapters.EnteTableAdapter
{
public void FillByNif(DS.EnteDataTable t,string nif)
{
SqlCeCommand aux = this.CommandCollection[0];
this.CommandCollection[0] = new SqlCeCommand("select * from ente where nif = @nif");
this.CommandCollection[0].Connection = this.Connection;
this.CommandCollection[0].Parameters.Add("@nif", nif);
this.Fill(t);
this.CommandCollection[0] = aux;
}
}
wsdl.exe
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin
wsdl [URL servicio]
wsdl http://localhost/Service1.asmx
serv = new Service1();
serv.Url = @"http://localhost/Service1.asmx";
serv.CookieContainer = new System.Net.CookieContainer();
serv.MetodoWeb("Dato para método",5); // El fichero generado tiene los métodos web como métodos normales del objeto
sqlcmd
C:\Program Files\Microsoft SQL Server\100\Tools\Binn
sqlcmd -S [nombre instancia servidor] -d [nombre bd] -i [fichero a ejecutar]
sqlcmd -S localhost\SQLExpress -d PruebaBD1 -i creacion_tablas.sql
SELECT name FROM SYSOBJECTS WHERE XTYPE='U';
SELECT * FROM SYSOBJECTS WHERE XTYPE='F';
SELECT * FROM SYSOBJECTS WHERE XTYPE='PK';
Select name from syscolumns where id=object_id('tabla');
csc /t:library /out:tiendalib.dll TiendaLib\TiendaLibBD.cs Tiendalib\
directorions\directorio.cs /lib:Utils\bin\Debug /reference:utils.dll