Friday 7 July 2017

Ssas Movimentação Média Calculada Membro


A maioria das pessoas está familiarizada com a frase, isso vai matar dois pássaros com uma pedra. Se você não estiver, a fase se refere a uma abordagem que aborda dois objetivos em uma ação. (Infelizmente, a expressão em si é bastante desagradável, como a maioria de nós não queremos atirar pedras em animais inocentes) Hoje I39m vai cobrir algumas noções básicas sobre dois grandes recursos no SQL Server: o índice Columnstore (disponível somente no SQL Server Enterprise) e O SQL Query Store. A Microsoft implementou o índice Columnstore no SQL 2012 Enterprise, embora o tenha aprimorado nas últimas duas versões do SQL Server. A Microsoft lançou o Query Store no SQL Server 2016. Então, quais são esses recursos e por que eles são importantes? Bem, eu tenho uma demo que apresentará os dois recursos e mostrar como eles podem nos ajudar. Antes de eu ir mais longe, eu também cobrir este (e outros recursos SQL 2016) no meu artigo CODE Magazine sobre novos recursos SQL 2016. Como uma introdução básica, o índice Columnstore pode ajudar a acelerar as consultas que scanaggregate sobre grandes quantidades de dados e O Query Store controla as execuções de consultas, os planos de execução e as estatísticas de tempo de execução que você normalmente precisa coletar manualmente. Confie em mim quando eu digo, estas são grandes características. Para esta demonstração, usarei o banco de dados de demonstração do Microsoft Contoso Retail Data Warehouse. Falando francamente, Contoso DW é como quota realmente grande AdventureWorksquot, com tabelas contendo milhões de linhas. (A maior tabela AdventureWorks contém aproximadamente 100.000 linhas no máximo). Você pode baixar o banco de dados Contoso DW aqui: microsoften-usdownloaddetails. aspxid18279. Contoso DW funciona muito bem quando você quer testar o desempenho em consultas contra tabelas maiores. O Contoso DW contém uma tabela de fatos de data warehouse padrão chamada FactOnLineSales, com 12,6 milhões de linhas. Isso certamente não é a maior tabela de data warehouse do mundo, mas também não é uma criança. Suponha que eu quero resumir o montante das vendas de produtos para 2009 e classificar os produtos. Eu poderia consultar a tabela de fatos e juntar-se à tabela de dimensão do produto e usar uma função RANK, assim: Aqui há um conjunto de resultados parciais das 10 linhas superiores, por Vendas totais. No meu laptop (i7, 16 GB de RAM), a consulta leva em qualquer lugar 3-4 segundos para ser executado. Isso pode não parecer o fim do mundo, mas alguns usuários podem esperar resultados quase instantâneos (da maneira que você pode ver resultados quase instantâneos ao usar o Excel contra um cubo OLAP). O único índice que eu tenho atualmente nesta tabela é um índice agrupado em uma chave de vendas. Se eu olhar para o plano de execução, o SQL Server faz uma sugestão para adicionar um índice de cobertura para a tabela: Agora, apenas porque o SQL Server sugere um índice, doesn39t significa que você deve cegamente criar índices em cada quotmissing indexquot mensagem. No entanto, nesta instância, o SQL Server detecta que estamos a filtrar com base no ano e utilizando a chave de produto eo montante de vendas. Assim, o SQL Server sugere um índice de cobertura, com o DateKey como o campo de chave de índice. A razão pela qual chamamos isso de índice de quotcoveringquot é porque o SQL Server irá quotbring ao longo dos campos não-chave que usamos na consulta, quotfor o ridequot. Dessa forma, o SQL Server não precisa usar a tabela ou o índice em cluster em todo o mecanismo de banco de dados pode simplesmente usar o índice de cobertura para a consulta. Os índices de cobertura são populares em determinados cenários de armazenamento de dados e de banco de dados de relatórios, embora tenham um custo de manutenção do mecanismo de banco de dados. Nota: Os índices de cobertura têm sido em torno de um longo tempo, por isso eu haven39t ainda cobriu o índice Columnstore eo Query Store. Então, vou adicionar o índice de cobertura: Se eu re-execute a mesma consulta que eu corri há um momento (aquela que agregou o valor de vendas para cada produto), a consulta às vezes parece correr cerca de um segundo mais rápido, e eu recebo um Plano de execução diferente, que usa um Index Seek em vez de um Index Scan (usando a chave de data no índice de cobertura para recuperar as vendas para 2009). Assim, antes do índice Columnstore, esta poderia ser uma forma de optimizar esta consulta em versões mais antigas do SQL Server. Ele é executado um pouco mais rápido do que o primeiro, e eu recebo um plano de execução com um Index Seek em vez de um Index Scan. No entanto, existem alguns problemas: Os dois operadores de execução quotIndex Seekquot e quotHash Match (Aggregate) quot ambos essencialmente operam quotrow por rowquot. Imagine isso em uma tabela com centenas de milhões de linhas. Relacionado, pense sobre o conteúdo de uma tabela de fatos: neste caso, um único valor de chave de data e um único valor de chave de produto podem ser repetidos em centenas de milhares de linhas (lembre-se, a tabela de fatos também tem chaves para geografia, promoção, vendedor , Etc.) Assim, quando o quotIndex Seekquot e o quotHash Matchquot trabalham linha por linha, eles estão fazendo isso sobre valores que podem ser repetidos em muitas outras linhas. Isso é normalmente onde I39d segue para o SQL Server Columnstore índice, que oferece um cenário para melhorar o desempenho desta consulta de maneiras surpreendentes. Mas antes de eu fazer isso, vamos voltar no tempo. Vamos voltar ao ano de 2010, quando a Microsoft introduziu um add-in para o Excel conhecido como PowerPivot. Muitas pessoas provavelmente se lembram de ver demonstrações do PowerPivot para Excel, onde um usuário poderia ler milhões de linhas de uma fonte de dados externa para o Excel. O PowerPivot comprimiria os dados e forneceria um mecanismo para criar tabelas dinâmicas e gráficos dinâmicos que funcionassem a velocidades incríveis em relação aos dados compactados. O PowerPivot usou uma tecnologia em memória que a Microsoft denominou quotVertiPaqquot. Essa tecnologia em memória do PowerPivot basicamente levaria valores de chave de negócios duplicados e os comprimia para um único vetor. A tecnologia em memória também digitalizaria esses valores em paralelo, em blocos de várias centenas de cada vez. A linha de fundo é que a Microsoft assou uma grande quantidade de aprimoramentos de desempenho no recurso VertiPaq em memória para usarmos, logo depois da caixa proverbial. Porque estou fazendo exame deste passeio pequeno para baixo da pista da memória Porque no SQL Server 2012, Microsoft executou um dos recursos os mais importantes no history de seu motor do banco de dados: o índice do Columnstore. O índice é realmente um índice somente no nome: é uma maneira de tomar uma tabela do SQL Server e criar um columnstore compactado na memória que comprime valores de chave estrangeira duplicados para valores de vetor simples. A Microsoft também criou um novo pool de buffer para ler esses valores vetoriais compactados em paralelo, criando o potencial para ganhos de desempenho enormes. Assim, I39m vai criar um índice columnstore na tabela, e I39ll ver quanto melhor (e mais eficientemente) a consulta é executada, versus a consulta que é executado contra o índice de cobertura. Então, eu criarei uma cópia duplicada de FactOnlineSales (I39ll chamá-lo de FactOnlineSalesDetailNCCS), e I39ll criará um índice columnstore na tabela duplicada dessa maneira eu won39t interferir com a tabela original eo índice de cobertura de qualquer maneira. Em seguida, I39ll criar um índice columnstore na nova tabela: Observe várias coisas: I39ve especificado várias colunas de chave estrangeira, bem como o montante de vendas. Lembre-se de que um índice columnstore não é como um índice tradicional de armazenamento em fila. Não há quotkeyquot. Estamos simplesmente indicando quais colunas SQL Server deve compactar e colocar em um columnstore in-memory. Para usar a analogia do PowerPivot para Excel quando criamos um índice columnstore, estamos dizendo ao SQL Server que faça essencialmente a mesma coisa que o PowerPivot fez quando importamos 20 milhões de linhas para o Excel usando o PowerPivot. Então, I39ll re-executa a consulta, desta vez usando A tabela duplicada FactOnlineSalesDetailNCCS que contém o índice columnstore. Esta consulta é executada instantaneamente em menos de um segundo. E eu também posso dizer que mesmo que a mesa tivesse centenas de milhões de linhas, ela ainda funcionaria com o proverbial quotbat de um cílio. Podemos olhar para o plano de execução (e em alguns momentos, vamos), mas agora é hora de cobrir o recurso Query Store. Imagine por um momento que executamos ambas as consultas durante a noite: a consulta que usou a tabela regular de FactOnlineSales (com o índice de cobertura) e, em seguida, a consulta que usou a tabela duplicada com o índice Columnstore. Quando iniciamos a sessão na manhã seguinte, gostaríamos de ver o plano de execução para ambas as consultas à medida que elas ocorreram, assim como as estatísticas de execução. Em outras palavras, gostaríamos de ver as mesmas estatísticas que seríamos capazes de ver se executamos ambas as consultas interativamente no SQL Management Studio, transformadas em TIME e IO Statistics e visualizamos o plano de execução logo após a execução da consulta. Bem, isso é o que o Query Store nos permite fazer, podemos ativar (habilitar) o Query Store para um banco de dados, que acionará o SQL Server para armazenar a execução da consulta e planejar as estatísticas para que possamos visualizá-las mais tarde. Então, I39m vai habilitar o Query Store no banco de dados Contoso com o seguinte comando (e I39ll também limpar qualquer cache): Então I39ll executar as duas consultas (e quotpretendquot que eu os corri há horas): Agora vamos fingir que correram horas atrás. De acordo com o que eu disse, o Query Store irá capturar as estatísticas de execução. Então, como posso vê-los Felizmente, isso é muito fácil. Se eu expandir o banco de dados Contoso DW, ver uma pasta Query Store. O Query Store tem uma enorme funcionalidade e I39ll tentar cobrir grande parte dela em postagens de blog subseqüentes. Mas para agora, eu quero ver as estatísticas de execução sobre as duas consultas, e examinar especificamente os operadores de execução para o índice columnstore. Então, clique com o botão direito do mouse no Top Resource Consuming Queries e execute essa opção. Isso me dá um gráfico como o abaixo, onde eu posso ver o tempo de duração da execução (em milissegundos) para todas as consultas que foram executadas. Nesse caso, a Consulta 1 era a consulta contra a tabela original com o índice de cobertura e a Consulta 2 estava contra a tabela com o índice columnstore. Os números não são o índice columnstore superou o índice tablecovering original por um fator de quase 7 para 1. Eu posso mudar a métrica para olhar para o consumo de memória em vez disso. Nesse caso, observe que a consulta 2 (a consulta de índice columnstore) usou muito mais memória. Isso demonstra claramente por que o índice columnstore representa a tecnologia quotin-memoryquot O SQL Server carrega todo o índice columnstore na memória e usa um pool de buffer completamente diferente com operadores de execução aprimorados para processar o índice. OK, então temos alguns gráficos para ver as estatísticas de execução podemos ver o plano de execução (e operadores de execução) associados a cada execução Sim, nós podemos Se você clicar na barra vertical para a consulta que usou o índice columnstore, você verá a execução Abaixo. A primeira coisa que vemos é que o SQL Server executou uma varredura de índice columnstore, e que representou quase 100 do custo da consulta. Você pôde dizer, quotWait um minuto, a primeira consulta usou um índice de coberta e executou um índice procura assim que como pode uma varredura do índice do columnstore ser mais rápida que uma pergunta legitimate, e felizmente there39s uma resposta. Mesmo quando a primeira consulta executou um index seek, ela ainda executou quotrow por rowquot. Se eu colocar o mouse sobre o operador de varredura de índice columnstore, eu vejo uma dica de ferramenta (como a abaixo), com uma configuração importante: o Modo de Execução é BATCH (em oposição a ROW.), Que é o que tínhamos com a primeira consulta usando o Índice de cobertura). Esse modo BATCH informa-nos que o SQL Server está processando os vetores compactados (para quaisquer valores de chave estrangeira que são duplicados, como a chave do produto e da data) em lotes de quase 1.000, em paralelo. Assim, o SQL Server ainda é capaz de processar o índice columnstore muito mais eficientemente. Além disso, se eu colocar o mouse sobre a tarefa Hash Match (Aggregate), também vejo que o SQL Server está agregando o índice columnstore usando o modo Batch (embora o próprio operador represente uma pequena porcentagem do custo da consulta) SQL Server comprime os valores nos dados, trata os valores como vetores, e lê-los em blocos de quase mil valores em paralelo, mas a minha consulta só queria dados para 2009. Assim é o SQL Server digitalização sobre o Conjunto de dados Uma vez mais, uma boa pergunta. A resposta é, quotNot reallyquot. Felizmente para nós, o novo pool de buffer de índice columnstore executa outra função chamada quotsegment eliminationquot. Basicamente, o SQL Server examinará os valores de vetor para a coluna de chave de data no índice columnstore e eliminará os segmentos que estão fora do escopo do ano 2009. I39ll parar aqui. Em postagens subseqüentes, o I39ll cobre o índice columnstore eo Query Store com mais detalhes. Essencialmente, o que vimos aqui hoje é que o índice Columnstore pode acelerar significativamente as consultas que scanaggregate sobre grandes quantidades de dados eo Query Store irá capturar execuções de consulta e nos permitir examinar as estatísticas de execução e desempenho mais tarde. No final, gostaríamos de produzir um conjunto de resultados que mostre o seguinte. Observe três coisas: As colunas essencialmente pivô todas as Razões de retorno possíveis, depois de mostrar o valor de vendas O conjunto de resultados contém um total de subtotais pela semana (domingo) data em todos os clientes (onde o cliente é NULL) Linha (onde o cliente ea data são ambos NULL) Primeiro, antes de eu entrar no final do SQL, poderíamos usar a capacidade dinâmica de pivotmatrix no SSRS. Simplesmente precisaríamos combinar os dois conjuntos de resultados por uma coluna e então poderíamos alimentar os resultados para o controle de matriz SSRS, que irá espalhar as razões de retorno através do eixo colunas do relatório. No entanto, nem todos usam SSRS (embora a maioria das pessoas deve). Mas mesmo assim, às vezes os desenvolvedores precisam consumir conjuntos de resultados em algo que não seja uma ferramenta de geração de relatórios. Assim, para este exemplo, vamos assumir que queremos gerar o conjunto de resultados para uma página de grade da web e, possivelmente, o desenvolvedor quer quotstrip outquot as linhas subtotal (onde eu tenho um ResultSetNum valor de 2 e 3) e colocá-los em uma grade de resumo. Então, linha de fundo, precisamos gerar a saída acima diretamente de um procedimento armazenado. E como uma torção adicionada na próxima semana poderia haver Return Reason X e Y e Z. Então nós don39t saber quantas razões de retorno poderia haver. Nós simples queremos que a consulta pivote sobre os possíveis valores distintos para a razão de retorno. Aqui é onde o T-SQL PIVOT tem uma restrição que precisamos para fornecer-lhe os valores possíveis. Como não sabemos que até o tempo de execução, precisamos gerar a seqüência de consulta dinamicamente usando o padrão SQL dinâmico. O padrão SQL dinâmico envolve gerar a sintaxe, peça por peça, armazená-lo em uma seqüência de caracteres e, em seguida, executar a seqüência de caracteres no final. SQL dinâmico pode ser complicado, pois temos de incorporar sintaxe dentro de uma seqüência de caracteres. Mas, neste caso, é nossa única opção verdadeira se quisermos lidar com um número variável de razões de retorno. Sempre achei que a melhor maneira de criar uma solução SQL dinâmica é descobrir o quotidealquot gerado-consulta seria no final (neste caso, dadas as razões de retorno que sabemos sobre) e, em seguida, engenharia reversa-lo por piecing Juntos uma parte de cada vez. E assim, aqui está o SQL que precisamos se soubéssemos que as razões de retorno (de A a D) eram estáticas e não mudariam. A consulta faz o seguinte: Combina os dados de SalesData com os dados de ReturnData, onde nós quothard-wirequot a palavra Sales como um tipo de ação forma a tabela de vendas e, em seguida, use a razão de retorno dos dados de retorno na mesma coluna ActionType. Isso nos dará uma coluna de ActionType limpa na qual girar. Estamos combinando as duas instruções SELECT em uma expressão de tabela comum (CTE), que é basicamente uma subconsulta de tabela derivada que usamos posteriormente na próxima instrução (para PIVOT) Uma declaração PIVOT contra o CTE, que somar os dólares para o Action Type Estar em um dos possíveis valores do Tipo de Ação. Observe que este não é o conjunto de resultados final. Estamos colocando isso em um CTE que lê a partir do primeiro CTE. A razão para isso é porque nós queremos fazer vários agrupamentos no final. A instrução SELECT final, que lê a partir do PIVOTCTE e combina com uma consulta subseqüente contra o mesmo PIVOTCTE, mas onde também implementar dois agrupamentos no recurso GROUPING SETS em SQL 2008: GRUPO pela data de fim de semana (dbo. WeekEndingDate) GRUPO para todas as linhas () Então, se soubéssemos com certeza que nunca teríamos mais códigos de razão de retorno, então essa seria a solução. No entanto, precisamos considerar outros códigos de razão. Portanto, precisamos gerar essa consulta inteira acima como uma grande seqüência onde construímos as possíveis razões de retorno como uma lista separada por vírgulas. I39m vai mostrar todo o código T-SQL para gerar (e executar) a consulta desejada. E então eu dividi-lo em partes e explicar cada passo. Então primeiro, aqui está o código inteiro para gerar dinamicamente o que eu tenho acima. Existem basicamente cinco passos que precisamos cobrir. Passo 1 . Nós sabemos que em algum lugar na mistura, precisamos gerar uma seqüência de caracteres para isso na consulta: SalesAmount, razão A, razão B, razão C, razão D0160016001600160 O que podemos fazer é construído uma expressão de tabela comum temporária que combina o hard wired quotSales Coluna de quantidade com a lista exclusiva de possíveis códigos de razão. Uma vez que temos que em um CTE, podemos usar o pequeno truque de FOR XML PATH (3939) para recolher essas linhas em uma única seqüência de caracteres, coloque uma vírgula em frente de cada linha que a consulta lê e, em seguida, use STUFF para substituir A primeira instância de uma vírgula com um espaço vazio. Este é um truque que você pode encontrar em centenas de blogs SQL. Então, esta primeira parte constrói uma string chamada ActionString que podemos usar mais abaixo. Passo 2 . Também sabemos que we39ll quer somar as colunas de razão geradas geradas, juntamente com a coluna de vendas padrão. Portanto, precisamos de uma string separada para isso, que eu chamo SUMSTRING. I39ll simplesmente usar o ActionString original e, em seguida, substituir os colchetes externos com sintaxe SUM, mais os suportes originais. Passo 3: Agora começa o verdadeiro trabalho. Usando essa consulta original como um modelo, queremos gerar a consulta original (começando com o UNION das duas tabelas), mas substituindo quaisquer referências a colunas articuladas com as strings geradas dinamicamente acima. Além disso, embora não seja absolutamente necessário, também criei uma variável para simplesmente qualquer combinação de feed de retorno de carro que desejamos incorporar na consulta gerada (para legibilidade). Então we39ll construir toda a consulta em uma variável chamada SQLPivotQuery. Passo 4. Continuamos construindo a consulta novamente, concatenando a sintaxe que podemos quothard-wire com o ActionSelectString (que geramos dinamicamente para manter todos os possíveis valores de razão de retorno) Passo 5. Finalmente, we39ll gera a parte final da Pivot Query, que lê a partir da 2ª expressão de tabela comum (PIVOTCTE, a partir do modelo acima) e gera o SELECT final para ler a partir do PIVOTCTE e combiná-lo com uma 2ª leitura contra PIVOTCTE para Implementar os conjuntos de agrupamento. Finalmente, nós podemos quotexecutequot a seqüência usando o sistema SQL armazenado proc spexecuteSQL Então espero que você pode ver que o processo para seguir para este tipo de esforço é Determine qual seria a consulta final, com base em seu conjunto atual de dados e valores Um modelo de consulta) Escreva o código T-SQL necessário para gerar esse modelo de consulta como uma string. Posivelmente, a parte mais importante é determinar o conjunto único de valores em que você PIVOT e, em seguida, colapso-los em uma Cadeia de caracteres usando a função STUFF eo truque FOR XML PATH (3939) Então, o que está na minha mente hoje Bem, pelo menos 13 itens Dois Eu escrevi um projecto de BDR que se concentrou (em parte) sobre o papel da educação e do valor de um bom fundo de artes liberais não apenas para a indústria de software, mas mesmo para outras indústrias também. Um dos temas deste particular BDR enfatizou um ponto de vista fundamental e esclarecido do renomado arquiteto de software Allen Holub sobre as artes liberais. Parafraseando fielmente a sua mensagem: destacou os paralelos entre a programação e o estudo da história, lembrando a todos que a história é leitura e escrita (e acrescentam, identificando padrões), eo desenvolvimento de software também é leitura e escrita (e, novamente, identificação de padrões ). E assim eu escrevi um pedaço de opinião que focalizou isto e outros tópicos relacionados. Mas até hoje, eu nunca cheguei perto de publicá-lo. De vez em quando eu penso em revisá-lo, e eu até me sento por alguns minutos e faço alguns ajustes. Mas então a vida em geral iria ficar no caminho e Id nunca terminá-lo. Então, o que mudou Algumas semanas atrás, o colunista CoDe Magazine e o líder da indústria, Ted Neward, escreveram um artigo em sua coluna regular, Managed Coder, que chamou minha atenção. O título do artigo é On Liberal Arts. E eu recomendo que todos lê-lo. Ted discute o valor de um fundo de artes liberais, a falsa dicotomia entre um fundo de artes liberais e sucesso no desenvolvimento de software, ea necessidade de escrever bem. Ele fala sobre alguns de seus próprios encontros anteriores com o gerenciamento de pessoal de RH em relação a sua formação educacional. Ele também enfatiza a necessidade de aceitar e se adaptar às mudanças em nosso setor, bem como as características de um profissional de software bem-sucedido (ser confiável, planejar com antecedência e aprender a superar o conflito inicial com outros membros da equipe). Portanto, é uma ótima leitura, como são Teds outros CoDe artigos e entradas de blog. Também me fez voltar a pensar sobre minhas opiniões sobre este (e outros tópicos) também, e finalmente me motivou a terminar meu próprio editorial. Então, melhor tarde do que nunca, aqui estão os meus atuais Bakers Dúzia de Reflexões: Eu tenho um ditado: A água congela em 32 graus. Se você está em um papel de formação, você pode pensar que você está fazendo tudo no mundo para ajudar alguém, quando na verdade, theyre apenas sentindo uma temperatura de 34 graus e, portanto, as coisas arent solidificação para eles. Às vezes leva apenas um pouco mais de esforço ou outro catalizador ideachemical ou uma nova perspectiva que significa que aqueles com educação prévia pode recorrer a diferentes fontes. A água congela a 32 graus. Algumas pessoas podem manter altos níveis de concentração, mesmo com um quarto cheio de pessoas barulhentas. Eu não sou um deles ocasionalmente eu preciso de alguma privacidade para pensar através de uma questão crítica. Algumas pessoas descrevem isso como você tem que aprender a andar longe dele. Dito de outra forma, é uma busca pelo ar rarefeito. Na semana passada eu passei horas em um quarto semi-iluminado e quieto com um quadro branco, até que compreendi um problema completamente. Foi só então que eu poderia ir falar com outros desenvolvedores sobre uma solução. A mensagem aqui não é para pregar como você deve ir sobre o seu negócio de resolver problemas, mas sim para todos saberem os seus pontos fortes eo que funciona, e usá-los para sua vantagem, tanto quanto possível. Algumas frases são como unhas no quadro-negro para mim. Use-o como um momento de ensino é um. (Por que é como as unhas em um quadro-negro Porque se você estiver em um papel de mentor, você deve normalmente estar no modo de momento de ensino de qualquer maneira, no entanto sutilmente). Heres outro eu não posso realmente explicar isto nas palavras, mas eu compreendo-o. Isso pode soar um pouco frio, mas se uma pessoa realmente não pode explicar alguma coisa em palavras, talvez eles não entendem. Claro, uma pessoa pode ter uma sensação fuzzy de como funciona algo Eu posso blefar meu caminho através de descrever como funciona uma câmera digital, mas a verdade é que eu realmente não entendo isso tudo bem. Existe um campo de estudo conhecido como epistemologia (o estudo do conhecimento). Uma das bases fundamentais para entender se é uma câmera ou um padrão de design - é a capacidade de estabelecer contexto, identificar a cadeia de eventos relacionados, os atributos de quaisquer componentes ao longo do caminho, etc Sim, a compreensão é por vezes muito trabalho árduo , Mas mergulhar em um tópico e quebrá-lo aparte vale a pena o esforço. Mesmo aqueles que evitam a certificação reconhecerá que o processo de estudar para os testes de certificação ajudará a preencher lacunas no conhecimento. Um gerente de banco de dados é mais provável contratar um desenvolvedor de banco de dados que pode falar extemporaneamente (e sem esforço) sobre níveis de isolamento de transação e acionadores, em oposição a alguém que tipo de sabe sobre ele, mas luta para descrever o seu uso. Há outro corolário aqui. Ted Neward recomenda que os desenvolvedores ocupam falar em público, blogs, etc Concordo 100. O processo de falar em público e blogs vai praticamente obrigá-lo a começar a pensar sobre os temas e quebrar as definições que você pode ter tomado por certo. Alguns anos atrás, eu pensei que eu entendia a declaração T-SQL MERGE muito bem. Mas só depois de escrever sobre isso, falando, colocando questões de outros que tinham perspectivas que nunca me ocorreu que o meu nível de compreensão aumentou exponencialmente. Eu conheço uma história de um gerente de contratação que uma vez entrevistou um autor de desenvolvedor para uma posição contratual. O gerente de contratação foi desdenhoso das publicações em geral, e latiu ao candidato, Então, se você está indo para o trabalho aqui, você prefere escrever livros ou escrever código Sim, doente conceder que em qualquer indústria haverá alguns acadêmicos pura. Mas o que o gerente de contratação perdeu foi as oportunidades para reforçar e afiar conjuntos de habilidades. Enquanto limpava uma velha caixa de livros, me deparei com um tesouro dos anos 80: Programmers at Work. Que contém entrevistas com um muito jovem Bill Gates, Ray Ozzie, e outros nomes bem conhecidos. Cada entrevista e cada insight vale o preço do livro. Na minha opinião, a entrevista mais interessante foi com Butler Lampson. Que deu alguns conselhos poderosos. Para o inferno com a informática. É absolutamente ridículo. Estudar matematica. Aprenda a pensar. Ler. Escreva. Essas coisas são de valor mais duradouro. Aprenda a provar teoremas: Muitas provas se acumulam ao longo dos séculos, o que sugere que essa habilidade é transferível para muitas outras coisas. Butler fala a verdade. Ill acrescentar a esse ponto aprender a jogar diabos advogado contra si mesmo. Quanto mais você pode verificar a realidade de seus próprios processos e de trabalho, melhor será youll ser. O grande scientistauthor de computador Allen Holub fez a conexão entre o desenvolvimento de software e as artes liberais especificamente, o assunto da história. Aqui estava o seu ponto: o que é história Leitura e escrita. O que é desenvolvimento de software Entre outras coisas, ler e escrever. Eu costumava dar a meus alunos T-SQL ensaio perguntas como testes de prática. Um aluno brincou dizendo que eu agia mais como um professor de direito. Bem, assim como o treinador Donny Haskins disse no filme Glory Road, meu caminho é difícil. Acredito firmemente em uma base intelectual forte para qualquer profissão. Assim como as aplicações podem se beneficiar de estruturas, indivíduos e seus processos de pensamento podem se beneficiar de estruturas humanas também. Essa é a base fundamental da erudição. Há uma história que nos anos 70, a IBM expandiu seus esforços de recrutamento nas grandes universidades, focalizando os melhores e mais brilhantes graduados em artes liberais. Mesmo assim, eles reconheceram que os melhores leitores e escritores poderiam algum dia se tornar analistas de programadores de sistemas fortes. (Sinta-se livre para usar essa história para qualquer tipo de RH que insiste que um candidato deve ter um grau de ciência da computação) E falando de história: se por nenhuma outra razão, é importante lembrar o histórico de lançamentos de produtos se estou fazendo o trabalho em um Site do cliente thats ainda usando o SQL Server 2008 ou mesmo (gasp) SQL Server 2005, tenho que lembrar quais recursos foram implementados nas versões ao longo do tempo. Sempre tem um médico favorito que você gostou porque heshe explicou as coisas em Inglês simples, deu-lhe a verdade reta, e ganhou sua confiança para operar em você Essas são habilidades loucas. E são o resultado da experiência e do TRABALHO DURO que fazem exame de anos e mesmo de décadas para cultivar. Não há garantias de foco no sucesso do trabalho sobre os fatos, tomar alguns riscos calculados quando você tem certeza de que você pode ver o seu caminho para a linha de chegada, deixe as fichas cair onde eles podem, e nunca perder de vista ser exatamente como aquele médico que ganhou sua confiança. Mesmo que alguns dias eu ficar aquém, eu tento tratar o meu cliente e seus dados como um médico iria tratar os pacientes. Mesmo que um médico faz mais dinheiro Existem muitos clichês que eu detesto, mas heres um eu não odeio: Não existe tal coisa como uma pergunta ruim. Como ex-instrutor, uma coisa que atraiu a minha ira foi ouvir alguém criticar outra pessoa por fazer uma pergunta supostamente estúpida. Uma pergunta indica que uma pessoa reconhece que tem alguma lacuna no conhecimento que eles estão procurando preencher. Sim, algumas perguntas são formuladas melhor do que outras, e algumas perguntas exigem a moldação adicional antes que possam ser respondidas. Mas a viagem de formar uma pergunta a uma resposta é provável gerar um processo mental ativo em outros. Há todas as boas coisas. Muitas discussões boas e frutíferas se originam com uma pergunta estúpida. Eu trabalho em toda a linha no SSIS, SSAS, SSRS, MDX, PPS, SharePoint, Power BI, DAX todas as ferramentas na pilha Microsoft BI. Eu ainda escrevo algum código de vez em quando. Mas acho que eu ainda gastar tanto tempo fazendo escrever código T-SQL para dados de perfil como parte do processo de descoberta. Todos os desenvolvedores de aplicativos devem ter boas cotas T-SQL. Ted Neward escreve (corretamente) sobre a necessidade de se adaptar às mudanças tecnológicas. Ill acrescentar que a necessidade de se adaptar às mudanças clientemployer. As empresas mudam as regras de negócios. As empresas adquirem outras empresas (ou se tornam o alvo de uma aquisição). Empresas cometem erros na comunicação de requisitos de negócios e especificações. Sim, às vezes podemos desempenhar um papel em ajudar a gerenciar essas mudanças e às vezes foram a mosca, não o pára-brisa. Estes, por vezes, causar grande dor para todos, especialmente o I. T. pessoas. É por isso que o termo fato da vida existe, temos de lidar com ele. Assim como nenhum desenvolvedor escreve bug código livre de cada vez, não I. T. Pessoa lida bem com a mudança cada vez. Uma das maiores lutas que eu tive em meus 28 anos nesta indústria está mostrando paciência e contenção quando as mudanças estão voando de muitas direções diferentes. Aqui é onde a minha sugestão anterior sobre a busca do ar rarificado pode ajudar. Se você consegue assimilar mudanças em seu processo de pensamento, e sem se sentir oprimido, as probabilidades são youll ser um ativo significativo. Nos últimos 15 meses Ive teve que lidar com uma enorme quantidade de mudança profissional. Tem sido muito difícil às vezes, mas eu resolvi que a mudança será a norma e Ive tentou ajustar meus próprios hábitos da melhor maneira possível para lidar com a mudança freqüente (e incerto). É difícil, muito difícil. Mas como o treinador Jimmy Duggan disse no filme A League of Their Own: Claro que é difícil. Se não fosse difícil, todo mundo faria isso. O duro, é o que o torna ótimo. Uma mensagem poderosa. Theres sido falar na indústria ao longo dos últimos anos sobre a conduta em conferências profissionais (e conduta no setor como um todo). Muitos escritores respeitados escreveram editoriais muito bons sobre o tema. Heres minha entrada, para que seu valor. Its a message to those individuals who have chosen to behave badly: Dude, it shouldnt be that hard to behave like an adult. A few years ago, CoDe Magazine Chief Editor Rod Paddock made some great points in an editorial about Codes of Conduct at conferences. Its definitely unfortunate to have to remind people of what they should expect out of themselves. But the problems go deeper. A few years ago I sat on a five-person panel (3 women, 2 men) at a community event on Women in Technology. The other male stated that men succeed in this industry because the Y chromosome gives men an advantage in areas of performance. The individual who made these remarks is a highly respected technology expert, and not some bozo making dongle remarks at a conference or sponsoring a programming contest where first prize is a date with a bikini model. Our world is becoming increasingly polarized (just watch the news for five minutes), sadly with emotion often winning over reason. Even in our industry, recently I heard someone in a position of responsibility bash software tool XYZ based on a ridiculous premise and then give false praise to a competing tool. So many opinions, so many arguments, but heres the key: before taking a stand, do your homework and get the facts . Sometimes both sides are partly rightor wrong. Theres only one way to determine: get the facts. As Robert Heinlein wrote, Facts are your single clue get the facts Of course, once you get the facts, the next step is to express them in a meaningful and even compelling way. Theres nothing wrong with using some emotion in an intellectual debate but it IS wrong to replace an intellectual debate with emotion and false agenda. A while back I faced resistance to SQL Server Analysis Services from someone who claimed the tool couldnt do feature XYZ. The specifics of XYZ dont matter here. I spent about two hours that evening working up a demo to cogently demonstrate the original claim was false. In that example, it worked. I cant swear it will always work, but to me thats the only way. Im old enough to remember life at a teen in the 1970s. Back then, when a person lost hisher job, (often) it was because the person just wasnt cutting the mustard. Fast-forward to today: a sad fact of life is that even talented people are now losing their jobs because of the changing economic conditions. Theres never a full-proof method for immunity, but now more than ever its critical to provide a high level of what I call the Three Vs (value, versatility, and velocity) for your employerclients. I might not always like working weekends or very late at night to do the proverbial work of two people but then I remember there are folks out there who would give anything to be working at 1 AM at night to feed their families and pay their bills. Always be yourselfyour BEST self. Some people need inspiration from time to time. Heres mine: the great sports movie, Glory Road. If youve never watched it, and even if youre not a sports fan I can almost guarantee youll be moved like never before. And Ill close with this. If you need some major motivation, Ill refer to a story from 2006. Jason McElwain, a high school student with autism, came off the bench to score twenty points in a high school basketball game in Rochester New York. Heres a great YouTube video. His mother said it all . This is the first moment Jason has ever succeeded and is proud of himself. I look at autism as the Berlin Wall. He cracked it. To anyone who wanted to attend my session at todays SQL Saturday event in DC I apologize that the session had to be cancelled. I hate to make excuses, but a combination of getting back late from Detroit (client trip), a car thats dead (blown head gasket), and some sudden health issues with my wife have made it impossible for me to attend. Back in August, I did the same session (ColumnStore Index) for PASS as a webinar. You can go to this link to access the video (itll be streamed, as all PASS videos are streamed) The link does require that you fill out your name and email address, but thats it. And then you can watch the video. Feel free to contact me if you have questions, at kgoffkevinsgoff November 15, 2013 Getting started with Windows Azure and creating SQL Databases in the cloud can be a bit daunting, especially if youve never tried out any of Microsofts cloud offerings. Fortunately, Ive created a webcast to help people get started. This is an absolute beginners guide to creating SQL Databases under Windows Azure. It assumes zero prior knowledge of Azure. You can go to the BDBI Webcasts of this website and check out my webcast (dated 11102013). Or you can just download the webcast videos right here: here is part 1 and here is part 2. You can also download the slide deck here. November 03, 2013 Topic this week: SQL Server Snapshot Isolation Levels, added in SQL Server 2005. To this day, there are still many SQL developers, many good SQL developers who either arent aware of this feature, or havent had time to look at it. Hopefully this information will help. Companion webcast will be uploaded in the next day look for it in the BDBI Webcasts section of this blog. October 26, 2013 Im going to start a weekly post of T-SQL tips, covering many different versions of SQL Server over the years Heres a challenge many developers face. Ill whittle it down to a very simple example, but one where the pattern applies to many situations. Suppose you have a stored procedure that receives a single vendor ID and updates the freight for all orders with that vendor id. create procedure dbo. UpdateVendorOrders update Purchasing. PurchaseOrderHeader set Freight Freight 1 where VendorID VendorID Now, suppose we need to run this for a set of vendor IDs. Today we might run it for three vendors, tomorrow for five vendors, the next day for 100 vendors. We want to pass in the vendor IDs. If youve worked with SQL Server, you can probably guess where Im going with this. The big question is how do we pass a variable number of Vendor IDs Or, stated more generally, how do we pass an array, or a table of keys, to a procedure Something along the lines of exec dbo. UpdateVendorOrders SomeListOfVendors Over the years, developers have come up with different methods: Going all the way back to SQL Server 2000, developers might create a comma-separated list of vendor keys, and pass the CSV list as a varchar to the procedure. The procedure would shred the CSV varchar variable into a table variable and then join the PurchaseOrderHeader table to that table variable (to update the Freight for just those vendors in the table). I wrote about this in CoDe Magazine back in early 2005 (code-magazinearticleprint. aspxquickid0503071ampprintmodetrue. Tip 3) In SQL Server 2005, you could actually create an XML string of the vendor IDs, pass the XML string to the procedure, and then use XQUERY to shred the XML as a table variable. I also wrote about this in CoDe Magazine back in 2007 (code-magazinearticleprint. aspxquickid0703041ampprintmodetrue. Tip 12)Also, some developers will populate a temp table ahead of time, and then reference the temp table inside the procedure. All of these certainly work, and developers have had to use these techniques before because for years there was NO WAY to directly pass a table to a SQL Server stored procedure. Until SQL Server 2008 when Microsoft implemented the table type. This FINALLY allowed developers to pass an actual table of rows to a stored procedure. Now, it does require a few steps. We cant just pass any old table to a procedure. It has to be a pre-defined type (a template). So lets suppose we always want to pass a set of integer keys to different procedures. One day it might be a list of vendor keys. Next day it might be a list of customer keys. So we can create a generic table type of keys, one that can be instantiated for customer keys, vendor keys, etc. CREATE TYPE IntKeysTT AS TABLE ( IntKey int NOT NULL ) So Ive created a Table Typecalled IntKeysTT . Its defined to have one column an IntKey. Nowsuppose I want to load it with Vendors who have a Credit Rating of 1..and then take that list of Vendor keys and pass it to a procedure: DECLARE VendorList IntKeysTT INSERT INTO VendorList SELECT BusinessEntityID from Purchasing. Vendor WHERE CreditRating 1 So, I now have a table type variable not just any table variable, but a table type variable (that I populated the same way I would populate a normal table variable). Its in server memory (unless it needs to spill to tempDB) and is therefore private to the connectionprocess. OK, can I pass it to the stored procedure now Well, not yet we need to modify the procedure to receive a table type. Heres the code: create procedure dbo. UpdateVendorOrdersFromTT IntKeysTT IntKeysTT READONLY update Purchasing. PurchaseOrderHeader set Freight Freight 1 FROM Purchasing. PurchaseOrderHeader JOIN IntKeysTT TempVendorList ON PurchaseOrderHeader. VendorID Te mpVendorList. IntKey Notice how the procedure receives the IntKeysTT table type as a Table Type (again, not just a regular table, but a table type). It also receives it as a READONLY parameter. You CANNOT modify the contents of this table type inside the procedure. Usually you wont want to you simply want to read from it. Well, now you can reference the table type as a parameter and then utilize it in the JOIN statement, as you would any other table variable. So there you have it. A bit of work to set up the table type, but in my view, definitely worth it. Additionally, if you pass values from , youre in luck. You can pass an ADO data table (with the same tablename property as the name of the Table Type) to the procedure. For developers who have had to pass CSV lists, XML strings, etc. to a procedure in the past, this is a huge benefit. Finally I want to talk about another approach people have used over the years. SQL Server Cursors. At the risk of sounding dogmatic, I strongly advise against Cursors, unless there is just no other way. Cursors are expensive operations in the server, For instance, someone might use a cursor approach and implement the solution this way: DECLARE VendorID int DECLARE dbcursor CURSOR FASTFORWARD FOR SELECT BusinessEntityID from Purchasing. Vendor where CreditRating 1 FETCH NEXT FROM dbcursor INTO VendorID WHILE FETCHSTATUS 0 EXEC dbo. UpdateVendorOrders VendorID FETCH NEXT FROM dbcursor INTO VendorID The best thing Ill say about this is that it works. And yes, getting something to work is a milestone. But getting something to work and getting something to work acceptably are two different things. Even if this process only takes 5-10 seconds to run, in those 5-10 seconds the cursor utilizes SQL Server resources quite heavily. Thats not a good idea in a large production environment. Additionally, the more the of rows in the cursor to fetch and the more the number of executions of the procedure, the slower it will be. When I ran both processes (the cursor approach and then the table type approach) against a small sampling of vendors (5 vendors), the processing times where 260 ms and 60 ms, respectively. So the table type approach was roughly 4 times faster. But then when I ran the 2 scenarios against a much larger of vendors (84 vendors), the different was staggering 6701 ms versus 207 ms, respectively. So the table type approach was roughly 32 times faster. Again, the CURSOR approach is definitely the least attractive approach. Even in SQL Server 2005, it would have been better to create a CSV list or an XML string (providing the number of keys could be stored in a scalar variable). But now that there is a Table Type feature in SQL Server 2008, you can achieve the objective with a feature thats more closely modeled to the way developers are thinking specifically, how do we pass a table to a procedure Now we have an answer Hope you find this feature help. Feel free to post a comment. Earn the CST Diploma Part-time The Computer Systems Technology (CST) Diploma has provided thousands of career-ready graduates to all IT sectors across Canada. BCIT Computing offers two separate pathways to the CST Diploma, full-time or part-time course-by-course. Intensive full time delivery is two years, or part-time is typically completed by taking two courses per term over a period of six years. Some students may be able to complete three courses per term, however they will need to have a plan approved by the program head. The CSTPTS Diploma starts with a solid foundation of programming and systems development via a series of smaller modular credentials. 1) The first step is to complete Applied Software Development (ASD). It is extremely important that students demonstrate their ability to write code in multiple programming languages at the beginning of this series. 2) The second step is Applied Computer Information Systems (ACIS). Some students may attempt the ASD and ACIS simultaneously. After learning to write code, students then cover operating systems, database, web and English communication. 3) ASD and ACIS are subsets of the Computer Systems Certificate (CSC). which must be completed prior to starting the CSTPTS Diploma. The CSC is equivalent to the first year of the full-time CST Diploma in programming, web, database, math, architecture and technical writing. 4) Built on top of the CSC, the CSTPTS Diploma students cover data communications, advanced operating systems, network design, administration and security. There are nine core courses and seven to ten elective courses needed to complete the 60 unique credits on top of the 60 credits in the CSC. Core requirements include advanced object oriented analysis, algorithm design plus Internet law. Elective courses include advanced software application development, web and mobile, advanced database, analytics and business intelligence. Students who complete the CST Diploma either full-time or part-time may then apply for the Computer Systems Bachelors Degree. CST BTech. CST Diploma graduates from BCIT Computing are highly regarded by industry and have a major competitive advantage. Program Entry Costs amp Supplies Internet and IT Law This hands on course is aimed at BCIT Computing and Business students who want to learn not only about the laws and regulations that apply to the Internet and information technology, but also how to engage intellectual property rights, law and regulation to protect intellectual effort. Topics include privacy, private data collection, property (IPDRM), security, gambling, ethics, the internet of thingseverything (IoT), data, patents, trademarks, domain names, copyright, linking, meta-tags, online contracts, online advertising and marketing. Students receive an overview of law in the modern marketplace, which we practice applying online in a series of non-cumulative exercises, a role play exercise and in discussions. IT Project Management This hands-on course is aimed at BCIT Computing students who want to learn how to develop and implement an IT project plan. Project Management best practices and decisions apply across various IT sectors including: Web and Software Development, Databases and Networking. Topics include: identifying project stakeholders and defining roles and responsibilities of the team, defining scope, devising risks and quality plans, mapping-out a schedule, determining a budget and defining a communication strategy. Participants are introduced to the Microsoft Project software application. Students receive an overview of common project management concepts which they can apply to real world IT projects on time and on budget. Prerequisite: COMP 1002 or equivalent knowledge of a Windows PC, and file management. XML for Web Development XML is a standard for structuring, and storing web information. This course is focused on XML for Web Development for those with an HTML and CSS background. Following on from COMP 1850 this hands-on course will introduce students to Extensible Markup Language (XML). Participants will learn how XML is used within the web and how to integrate XML formats into web page development. Topics include XML syntax, DTD validation, namespaces, XML data modeling, and performing transformations with XSLT and XPath. Upon successful completion of this course, students will have an understanding of the basics of XML for web development and be prepared to move on to more advanced XML courses. Prerequisite: COMP 1850 or equivalent knowledge of HTML5, and CSS3. C Application Development 2 This hands-on intermediate level course assumes students have completed COMP 2617 C Application Development Part 1 with a minimum of 60. Students immediately move into more advanced C11 features. Topics include: operator overloading template classes exception handling the string class and stream processing the Standard Template Library file processing and namespaces. Additional miscellaneous advanced C topics will also be covered. Delivery is face-to face for 3 hours each week plus an online and homework component. Typical students will require about 10 hours per week to study the material and work on assignments outside of class. Upon successful completion, participants will be able to write, test and debug C programs to industry standards and be able to develop significant software applications. Prerequisite: COMP 2617 completion with 60 or better. Applied IT Security Fundamentals IT security is growing area with several domains including both information security and network security. This course replaces COMP 3705 which covered both information security and network security. COMP 3704 will provide a more in depth overview of key topics in information security only and is one of the prerequisites for COMP 4704 Applied Network Security. IT professionals across multiple sectors from software development, database, web, mobile and networks will benefit from the material covered. This hands-on course is led by local industry experts who will share their knowledge and best practices for securing computer systems. Students will complete labs and exercises to experience applied IT security and gain a practical knowledge. Topics will include: security awareness, risk mitigation and control administration, data and application security, cryptography, attack techniques, penetration testing, vulnerability assessment, incident response, disaster recovery, and forensic analysis. In addition, information handling best practices, privacy and regulatory issues are discussed. Upon completion of this course, successful participants will be aware of best practices in IT security and how to implement secure information systems. Network related aspects of IT security are covered in the follow-on course, COMP 4704 ldquoApplied Network Securityquot. Prerequisite: COMP 1002 or equivalent knowledge. Data Communications for CST Following on from COMP 2825 Computer Architecture, students are introduced to the basic concepts and terminology related to data communications, networking and network topologies. COMP 3725 replaces COMP 3721 in the CSTPTS Diploma and is equivalent to the full-time CST Diploma course. Students will learn about the TCPIP protocol suite and the principles of protocols at the physical, data link, network and transport layers, the characteristics of transmission media, analogdigital transmission, multiplexingswitching techniques, basic error detection and correction, elementary data link protocols, flow control and an introduction to routing and congestion control issues. Multiple access protocols, the UDP and TCP protocols, networking and internetworking devices, LANs and WANs will also be discussed. The course has a strong emphasis on data communications at the physical layer and the assignments will reinforce the fundamental concepts and analysis techniques. Upon successful completion, students will be familiar with network protocol implementation using a layered approach and apply basic data communication theory to the design and analysis of networks. Prerequisites: COMP 2825 or COMP 2721 Algorithm Analysis and Design In this hands-on course, Java programming students who have also taken Discrete Math will develop their ability to analyze and design computer algorithms. In particular, learners will analyze the time and space complexity of programs, solve nontrivial programming problems using algorithmic techniques, and prove that their solution is correct. The emphasis will be on developing the practical skills of analysis and design. Topics include: evaluating time and space complexity and designing solutions by using appropriate data structures or applying techniques such as recursion, parsing and graph algorithms. Prerequisites: COMP 2121 and (COMP 2611 or COMP 2613) Object Oriented Analysis and Design This advanced OOAD course follows on from COMP 2831 and is aimed at software analysts, designers and developers who already understand the Software development Life Cycle (SDLC). Through exercises and group work, students first perform Object Oriented Analysis (OOA) to produce a conceptual model of existing information using case studies to identify actors and primary use cases for documentation. Using Object Oriented Design (OOD) students learn how to identify classes and build the domain model. Round trip engineering, reverse engineering and code generation are practised in labs, where the design is converted to functional code. Topics include: design patterns, anti-patterns and General Responsibility Assignment Software Patterns (GRASP). The concepts of phases, iterations, activities and artifacts are emphasized throughout the course. Labs include the use of the Unified Process (UP) which is an extensible framework for iterative and incremental software development process, and the basis of all the modern ldquoAgile methodologiesrdquo. Participants also gain hands-on experience using a case tool, Rational Rose Modeler, to draw most of the Unified Modeling Language (UML) diagrams necessary to support the OOAD activities. Students are introduced to manual and automated software testing. They will learn how to create and execute test scripts using a testing tool. Successful participants will be able to demonstrate the ability to analyse, design and construct sophisticated software applications to industry standards. Prerequisites: COMP 2831 and ability to write executable code in an object oriented programming language. Operating Systems for CST This course replaces COMP 3730 and COMP 4730 and covers the concepts of operating systems. The course is designed for CST Diploma students who understand both C and Java programming. The main focus is on the structure and services of operating systems and how these services are used and implemented. Topics include: processor management, processes and threads, inter-process communication, synchronization, memory management, inputoutput and file management. Labs will include hands-on system programming in UnixLinux. Prerequisites: (COMP 2510 or COMP 2511 or COMP 2717) and (COMP 2721 or COMP 2825) Program Details Graduating amp Jobs Faculty, Advisors amp Staff Contact UsThe denominated currency of the share. Currency Peg A countrys or governments exchange-rate policy of pegging the central banks rate of exchange to another countrys currency. Currency has sometimes also been pegged to the price of gold. Currency pegs allow importers and exporters to know exactly what kind of exchange rate they can expect for their transactions, simplifying trade. Current Liabilities Company declared liabilities which are due to be settled within the current financial year. Current Ratio This is used to calculate the ability of a company to meet its short term debt obligations. It is calculated by dividing its current assets by its current liabilities. The higher the current ratio, the more likely a company will be able to meet its obligations. D Back to top Repayment of bonds or other debt securities on or before their maturity date. RedenominationRenominalisation The process whereby a countrys currency is recalibrated due to significant inflation and currency devaluation. Certain currencies have been redenominated a number of times over the last century for various reasons. A recent example of redenomination was when the euro was introduced and the denomination of many European securities had to be changed to the euro. Registered Security The name given to securities whereby ownership is registered with the issuing company or their agent. Transfer of ownership can only take place with the owners consent. Regulatory News Service (RNS) The London Stock Exchanges service which ensures that price sensitive information from listed companies, and certain other bodies, is distributed to all RNS subscribers at the same time. Relative Strength Index The Relative Strength Index (RSI) measures a share price relative to itself and its recent history. It is calculated as the average of the prices for days where the price rose divided by the average of the prices for days where the price fell. The RSI ranges between 0 and 100. Relevant UK Earnings For most people, this is their salary before tax or, if they are self-employed, their taxable profit. It does not include, for example, interest on savings, dividends on shares or pensions. Relevant UK Individual Includes someone who is resident in the UK at some point in the current tax year or has Relevant UK Earnings. Rematerialisation The process of transferring a security held in electronic form to a certificated form. Retention of Income Accumulation units in a fund do not pay physical dividends. Instead, on the ex-dividend date, the unit price is adjusted upward to reflect the dividend distribution. These adjustments will increase your tax cost for the holding and will appear on your Stock Movements page and your Securities Report as Retention of Income. Retirement Annuity Contract (RAC) Prior to 30th June 1988, people not in pensionable employment (employment where no pension scheme exists) or people who were self employed were able to qualify for tax relief for contributions made to a pension scheme known as a retirement annuity under sections 226 of the Income and Corporation Taxes Act 1970. Although RACs were replaced by personal pension plans from 1st July 1988 those already in force may continue to operate. Return of Capital A return from an investment that is not considered income. The return of capital is when some or all of the money an investor has in an investment is paid back to him or her, thus decreasing the value of the investment. Return on Capital A ratio used in the assessment of the performance of a company and quantifies how well a company generates cash flow relative to the capital it has invested in its business. Return on Capital Employed (ROCE) A measure of the returns that a company is realising from its capital. Calculated as profit before interest and tax divided by the difference between total assets and current liabilities. The resulting ratio represents the efficiency with which capital is being utilised to generate revenue. Rights Issue An offer made by a quoted company to its shareholders to enable them to buy new shares in the company at a discount to the market price. Existing shareholders are usually offered shares in proportion to their existing holding. For example in a one for five rights issue, a shareholder would be invited to buy one new share for every five shares already owned. The new shares are offered at a discount to the current market price. Risk and Reward A ratio used to compare the expected returns of an investment with the amount of risk undertaken to capture these returns. This ratio is calculated mathematically by dividing the amount of profit the investor expects to have made when the position is closed (i. e. the reward) by the amount they could lose if the price moves in an unexpected direction (i. e. the risk). S Back to top The sale date refers to the date on which the holdings were liquidated, or alternatively the target date on which it is planned that the holdings be liquidated. Scrip Dividend The issue of additional shares by a company to shareholders in lieu of a dividend. The shares have an equivalent cash value to the dividend. No dealing charges or stamp duty is payable on the issue of the new shares. Scrip Issue An issue of shares made by a company free of charge to existing shareholders. Also called a bonus issue. The Stock Exchange Automated Quotation system (or SEAQ) is a system for trading mid-cap London Stock Exchange (LSE) stocks. Stocks need to have at least two market-makers to be eligible for trading via SEAQ. Only stocks that are not listed on the FTSE100 can be traded on SEAQ. SEATS Plus SEATS Plus is a trading system that handles the trading of all AIM and listed UK equities whose turnover is insufficient for the market making system or the Stock Exchange Electronic Trading Service (SETS). The sector in which the stock is listed on the London Stock Exchange, for example mining, software and computer services. A financial instrument which represents an ownership position in a publicly traded corporation (stock), a creditor relationship with a governmental body or corporation (bond) or rights to ownership as represented by an option. Self employed People who run their own business and take responsibility for its success or failure. They can decide how, when and where they do their work, but can hire other people to do some or all of the work at their own expense. Self Invested Personal Pension (SIPP) The name given to the type of UK-government-approved personal pension scheme, which allows individuals to make their own investment decisions from the full range of investments approved by HM Revenue Customs (HMRC). SIPPs, in common with personal pension schemes, are tax wrappers, allowing tax rebates on contributions in exchange for limits on accessibility. The HMRC rules allow for a greater range of investments to be held than Personal Pension Plans, notably equities and property. Rules for contributions, benefit withdrawal etc. are the same as for other personal pension schemes. The automated trading system introduced in 1997 for the largest companies quoted on the main list of the London Stock Exchange. Trades through SETS match buyers and sellers automatically, cutting out the need for a market maker, theoretically meaning a narrower bid-offer spread. Settlement Payment of cash for securities bought and delivery of securities against payment. Settlement Date The date by which the buyer of a security must pay the seller. The settlement date depends upon the type of security traded. For example, stocks usually have a settlement date three days after the trade date but government bonds must be settled on the next trading day. Share Certificate A certificate which confirms ownership of a shareholding. If shares are held in certificated form, the certificate must be delivered to the market upon sale. Share Incentive Scheme Introduced to the UK in 2000, they offer employees the opportunity to participate in the success of the company for which they work. Contributions are taken directly from salary before tax and national insurance are deducted with the scheme running for a period of 3 years. After 3 years, the saver has several options available. Firstly, they can buy shares in their company at a pre-determined price and then sell them immediately. Secondly, keep the shares purchased or thirdly have the savings returned in full. Share Option A right to buy or sell shares at an agreed price at a time in the future. Shareholders Funds The capital employed in a company, calculated by deducting the book value of the liabilities from the book value of the assets. Also called net assets, net worth and shareholders equity. A unit of ownership in a corporation or financial asset. While owning shares in a business does not mean that the shareholder has direct control over the businesss day-to-day operations, being a shareholder does entitles them to an equal distribution in any profits, if any are declared in the form of dividends. A share can be quoted or unquoted and ordinary or preference shares. Shell Company Non-trading firm formed (and often listed on a stock exchange) as a vehicle to (1) raise funds before starting operations, (2) attempt a takeover, (3) prepare for a public offering of shares, or (4) provide a front for an illegal business. The selling of a security that the seller does not own, or any sale that is completed by the delivery of a security borrowed by the seller. Short sellers assume that they will be able to buy the stock at a lower amount than the price at which they sold short. Small Cap Stock A small-cap stock has a low market capitalisation when compared to those listed on the FTSE100. Investors may perceive a small-cap stock as having greater growth potential than a large-cap stock. A small-cap stock may be more likely than a large company to adopt or create innovative new technologies or services. A small-cap stock often has a lower level of institutional interest, as many funds have limits on the percentage of a company they may own. This in turn increases the trading volatility of a small-cap stock, potentially allowing for more extreme (more profitable) entries and exits. Small Self Administered Scheme (SSAS) A SSAS is a company pension scheme where the members are usually all company directors or key staff. A SSAS is set up by a trust deed which allows membersemployers greater flexibility and control over the schemes assets. The difference between which the price of a stock is bought and sold. Some collective investments, such as Unit Trusts, also operate bidoffer spreads. Stakeholder Pension Plan Stakeholder pensions aim to provide a low-cost, transparent and flexible way for people on low incomes to make additional provisions for their retirement. Money invested in stakeholder pensions is invested in the stock market. On retirement a quarter of the accumulated capital can be taken as a tax-free cash sum, with the balance to be used to purchase an annuity. Stamp Duty Stamp duty is payable on purchases of shares using a stock transfer form, on some transfers of interest in partnerships and on land or property tansactions entered into before 1 Dec 2003. Stamp Duty Reserve Tax (SDRT) SDRT is a tax on shares and securities when you buy through the stock market or a stock broker. Standard Poors An international agency which provides credit ratings and research. State Earnings Related Pension Scheme (SERPS) Introduced in 1978, SERPS was a top up to the basic state pension with the amount received dependent upon the National Insurance Contributions paid. In 2002 it became the State Second Pension. Stepped Preference Shares Preference shares with dividends that increase annually by a specified amount and with a predetermined capital return. Stock Description The name and classification of the security held. The company name is detailed first followed by the abbreviated version of the type of share held (e. g. ORD means Ordinary Share) and then the currency that the share is held in (e. g GBP sterling) Stock Exchange Daily Official List (SEDOL) A unique identifier assigned to all securities trading on the London Stock Exchange and other smaller exchanges in the UK. The SEDOL is seven characters in length and comprises a combination of letters and numbers. Live streaming of share prices is available when logged in and when the portfolio is ordered by holding alphabetically, rather than by a numeric value (which would cause the order of rows to change constantly). The prices you see are those that the traders see on their trading screens. An arrangement of characters (usually letters) representing a particular security listed on an exchange or otherwise traded publicly. When a company issues shares for the first time, it selects an arrangement of characters (usually letters) representing a particular security listed on an exchange or otherwise traded publicly. When a company issues shares for the first time, it selects an available ticker symbol for its securities which is then used to place orders - each symbol is unique. For example, the shares for Microsoft are listed as MSFT. T Back to top A corporate action where one company makes a bid for another. If the target company is publicly traded, the acquiring company will make an offer for the outstanding shares. HMRC apply a number of rules when determining the cost for UK tax purposes. The Tax Cost represents the cost of the holding once such rules have been applied. A FTSE index launched in 1999 by the London Stock Exchange to reflect the growth at that time in internet and technology stocks. To be included, a company must be committed to technological innovation and listed on the exchange. It includes biotechnology companies as well as internet stocks and software companies. The TechMARK 100 is a subset of the TechMARK all-share and both have an upper market cap limit so as to exclude the largest companies. Tender offer An offer to purchase some or all of shareholders shares in a corporation. The price offered is usually at a premium to the market price. Terminal Illness An advanced or rapidly progressing incurable illness. In the opinion of an attending consultant andor Chief Medical Officer the life expectancy of the sufferer would be no more than 12 months. Tax Exempt Special Savings Account a former tax-free savings scheme(available 1991-99). Total Expense Ratio The Total Expense Ratio (TER) accounts for all the costs in running an investment fund. As well as the Annual Management Charge, the TER would include trading fees, legal fees, auditor fees and other operational expenses. The TER is expressed as a percentage and is calculated by dividing the monetary cost of running the fund by the funds total assets. Tracker Fund An index fund that tracks a broad market index or a segment of it. Such a fund invests in all, or a representative number, of the securities within the index. Also know as an index fund. Trade Cut-off The time by which you must place your trade on the website in order for it to execute within the next available valuation point. Trade Price The last known trading price. Trade Time The time at which the last deal for the security was completed. Trade Type The coding applied to the trade confirming the transaction that has been completed. A - An automatic trade generated by the system through automatic execution. U - Uncrossing Trade - this is used for the single uncrossing trade, detailing the total executed volume and uncrossing price as a result of a SETS auction. N - Negotiated Trade - LSE uses an Automated Trading Service (ATS) to execute our real-time online deals. Restrictions imposed by the ATS may mean that certain stocks or order sizes cannot be traded automatically. If this is the case then you will be given the option to place a Negotiated Trade order. The order will be forwarded electronically and securely to our dealing team. They will manually execute your order as soon as possible and at the best price available in the market at the time of dealing. O - Ordinary Trade - the transaction that was not covered by any of the other trade types listed. T - Over the Counter Trade - a security which is not traded on an exchange, usually due to an inability to meet listing requirements. S - Systematic Internalises - are obliged to publish prices for trading with their customers and are allowed to improve prices when dealing in retail size or with retail clients. CT - The trade reported for a transaction previously executed automatically through the order book. LC - Late Correction - the error trade reported that has been last corrected. OC - OTC Trade correction. SC - SI trade Correction. Trade Volume The quantity of the security traded at the last known price. Transfer Value The monetary amount available which can be moved to another financial product. For example, the proceeds of a Cash ISA can be transferred to a Stocks and Shares ISA. Refers to the direction of security prices. An uptrend is a succession of higher highs and higher lows. A downtrend is a succession of lower highs and lowers lows. Trends are classified as Major (one year or longer), Intermediate (one to six months) and Minor (one month or less). U Back to top Underlying Asset In a derivative or warrant, the security, property, or other asset that gives value to the derivative or warrant. For example, in an option giving the right to buy stock in a share, the underlying asset is the share. An underlying asset may mean many things, such as a physical commodity, a security, a piece of land, or part of a business. Unit Price Latest price of fund holdings. Unit Trust Unit trusts are collective funds that allow private investors to pool their money in a single fund, thus spreading their risk across a range of investments, getting the benefit of professional fund management, and reducing their dealing costs. Unit trusts are open-ended in contrast to investment trusts, which are closed funds. Different trusts have different investment objectives: for example investing for income or growth, in small companies or large, and in different geographical regions. Unquoted Shares Unquoted shares are shares which are not traded on stock exchanges or other regulated financial markets. The current value of the total number of shares listed for the security. Value Investing The strategy of selecting stocks that trade for less than their intrinsic values. Value investors actively seek stocks of companies that they believe the market has undervalued. They believe the market overreacts to good and bad news, resulting in stock price movements that do not correspond with the companys long-term fundamentals. The result is an opportunity for value investors to profit by buying when the price is deflated. View as Pop-Out A comprehensive view of the investments in your account. Volatility The extent to which the price of a security or commodity, or the level of a market, interest rate or currency, changes over time. High volatility implies rapid and large upward and downward movements over a relatively short period of time low volatility implies much smaller and less frequent changes in value. The amount of trading sustained in a security or in the entire market during a given period. Especially heavy volume may indicate that important news has just been announced or is expected. W Back to top The W-8BEN form is provided by the United States Internal Revenue Service (IRS), and its purpose is to allow non-US persons to receive a reduced rate of taxation on any US-sourced income. For the purposes of share-dealing, US-sourced income refers to income (dividends, interest etc) received from businesses registered or incorporated within the US. If you require a W-8BEN form or a replacement W-8BEN form, please contact us and we will issue you one, alternatively you can download the form here. For an example of how to complete the W-8BEN please see here. A certificate, usually issued along with a bond or preferred stock, entitling the holder to buy a specific amount of securities at a specific price at some point in the future. The set price is usually higher than the price of the security at the time the warrant is issued. In the case that the price of the security rises to above that of the warrants exercise price, then the investor can buy the security at the warrants exercise price and resell it for a profit. Otherwise, the warrant will simply expire or remain unused. Warrants are listed on options exchanges and trade independently of the security with which they are issued. The percentage of the investment applied to your basket of funds. X Back to top Charles Stanley Direct is a trading name of Charles Stanley amp Co. Limited. Registered in England No 1903304. Registered Office: 55 Bishopsgate, London EC2N 3AS. Authorised and regulated by the Financial Conduct Authority (No. 124412). Member of the London Stock Exchange. Prices, News and Fundamentals provided by Thomson Reuters. Investors should be aware that past performance is not a reliable indicator of future results and that the price of shares and other investments, and the income derived from them, may fall as well as rise and the amount realised may be less than the original sum invested. Capital at risk. Income derived may fall or rise and you may get back less than invested.

No comments:

Post a Comment