Category: All


    public static int GetNonWorkdays(DateTime from, DateTime to)
    {
        DateTime dtBegin = from;
        DateTime dtEnd = to;

        int dayCount = 0;

        //while the End date is not reached
        while (dtEnd.CompareTo(dtBegin) > 0)
        {

            //check if the day is not a weekend day
            if ((dtBegin.DayOfWeek == DayOfWeek.Saturday) || (dtBegin.DayOfWeek == DayOfWeek.Sunday))
                dayCount++;
            //go to next day
            dtBegin = dtBegin.AddDays(1);
        }
        return dayCount;
}

List of all Columns of one Table

SELECT
    COLUNAS.NAME AS COLUNA,
    TIPOS.NAME AS TIPO,
    COLUNAS.LENGTH AS TAMANHO,
    COLUNAS.ISNULLABLE AS EH_NULO

FROM
    SYSOBJECTS AS TABELAS,
    SYSCOLUMNS AS COLUNAS,
    SYSTYPES   AS TIPOS
WHERE
    TABELAS.ID = COLUNAS.ID
    AND COLUNAS.USERTYPE = TIPOS.USERTYPE
    AND TABELAS.NAME = 'TBL_TESTE'

Um cenário conectado é aquele no qual os utilizadores estão permanentemente ligados àbases de dados

Vantagens:

  • É mais fácil exercer segurança ao nível do ambiente;
  • A concorrência é mais fácil de controlar;
  • Os dados estão mais actualizados que nos outros cenários;

Desvantagens:

  • É necessário haver uma ligação constante ao servidor;
  • Escalabilidade;

Num ambiente desconectado, um sub-conjunto de dados pode ser copiado e modificado independentemente e mais tarde as alterações podem ser introduzidas de novo na base dedados

Vantagens:

  • Pode-se trabalhar a qualquer altura e pode-se efectuar uma ligação à basede dados apenas quando necessário;
  • Outros utilizadores podem usar os recursos;
  • Este tipo de ambientes aumenta a escalabilidade e desempenho dasaplicações;

Desvantagens:

  • Os dados nem sempre estão actualizados;
  • Podem ocorrer conflitos de dados que têm que ser resolvidos;

www.developerfusion.com

converter.telerik.com

A really useful way to use an insert into is to create the destination table on the fly. Using this syntax, we can create a whole new table from a single insert statement, without creating the table first:

SELECT fname, lname
INTO users
FROM authors
GO

You can insert the content of one PHP file into another PHP file before the server executes it, with the include() or require() function.

The two functions are identical in every way, except how they handle errors:

include() generates a warning, but the script will continue execution
require() generates a fatal error, and the script will stop

insert into clients(`id`, `cod`, `name`, `Phone`)
select `id`, `cod`, insert(name,1,2,’José’) , `Phone` from clients where `name` =’Zé Carlos’

How will content be laid out on your new template?

Add the following to your url in order to view the different module positions available on your new Joomla Template:

index.php?tp=1

In other words

http://yourdomain.com/index.php?tp=1

The information in the splash is completely useless to me and i dont want to waste that much time watching that splash screen come and go.
In my pc it takes half a minute. It’s too much time to start working.
My work pc is a Pentium4 3Ghz with 2Gigs of Ram.

Hence, i was going through net and found a important flag to pass as parameter when running the visual studio i.e. “devenv.exe”.

In the Visual Studio Shortcut do the following:

“C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe” /nosplash

Hope to Helped you… :)

Acessar o VBA no Excel 2007

Para acessar o VBA no Excel 2007 basta carregar em Alt+F11 e o editor aparece.

Follow

Get every new post delivered to your Inbox.