Is Sybase, VB6, Crystal Reports and Windows 8 a feasable scenario?
You should get rid of VB6 and Crystal Reports as soon as possible, but yes, all together they work.
With a lot of problems but they work.
Remember SAP owns Sybase and Crystal. They will tell you that if the scenario above is your scenario, then you are in deep s*t (like me).
Does Crystal Reports 8 works with Windows 8? Yes, with a lot of limitations. Again, get rid of this version as soon as possible. Migrate to XI.
What is the minimum version of Sybase Client suitable for Windows 8? Version 15. That's it.
But there's a catch. There's no more a ODBC driver. Don't try to force an ODBC driver, ok? Instead, you'll have to figure out how to work with the driver Adaptive Server.
What if I decide to migrate all my reports to Reporting Services (rdl format)?
That's the one million dollars question.
1 - RPT Crystal Reports can't be converted to RDL. There's no magical machine that will do that to you. You'll have to rebuild the reports from scratch (Oh, that was cruel, I know).
2 - Sybase Store Procedures and Reporting Services don't work well together. It seems that there's something in the DNA of Sybase Database that hates Microsoft technology. So, if you are using Sybase and you want to try Reporting Services, you will probably have a lot of weird problems (at least, that's my experience).
3 - There are complicated issues related to ODBC and OLEDB when it comes to Reporting Services. Sometimes the server application don't recognize the drivers installed in the server macine. In my case, the server application couldn't recognize the adaptive driver of Sybase.
OK, and what is the solution!!!! That's what you are screeming right now. Well, I don't know. I didn't mirate. I'm struggle with my scenario and doing the best I can.
All I can do is share my experience with you so you save time (and money).
And that's it folks!
If you have questions, write them down on the comments section.
Bye!
Mostrando postagens com marcador Sybase. Mostrar todas as postagens
Mostrando postagens com marcador Sybase. Mostrar todas as postagens
quarta-feira, 6 de agosto de 2014
segunda-feira, 22 de julho de 2013
Integration Serivces x Sybase
Well, I didn't want to say that, but the interaction between integration services and Sybase is not good at all.
The version of my Sybase Database
Adaptive Server Enterprise/12.5.4/EBF 15444 ESD#8/P/ia64/HP-UX B.11.23/ase1254/2105/64-bit/OPT/Mon Mar 24 04:38:00 2008
Example:
When you try to preview a OLEDB Source configured with a Sybase Data Source, the following message appears.
If you try to click OK anyway, you're gonna receive another message
Is there a solution to this problem? No.
Sybase, at least the version I am working with, and when it comes to Data Flow Task, is completely incompatible with SQL Integration Server.
There are other tasks, those who don't need column mapping, that can work with Sybase. But the the great breakthrough of using Integration Services is exactly that, the column mapping to perform transformations without the need of code programming.
Conclusion: the use of Integration Services with Sybase is very limited.
Há!
: (
The version of my Sybase Database
Adaptive Server Enterprise/12.5.4/EBF 15444 ESD#8/P/ia64/HP-UX B.11.23/ase1254/2105/64-bit/OPT/Mon Mar 24 04:38:00 2008
Example:
When you try to preview a OLEDB Source configured with a Sybase Data Source, the following message appears.
If you try to click OK anyway, you're gonna receive another message
Is there a solution to this problem? No.
Sybase, at least the version I am working with, and when it comes to Data Flow Task, is completely incompatible with SQL Integration Server.
There are other tasks, those who don't need column mapping, that can work with Sybase. But the the great breakthrough of using Integration Services is exactly that, the column mapping to perform transformations without the need of code programming.
Conclusion: the use of Integration Services with Sybase is very limited.
Há!
: (
segunda-feira, 15 de julho de 2013
Add identity column to table already created - Sybase
Today somebody asked me if we could add identity column to a table already created.
Well, it works.
To test it just copy and past the code bellow.
CREATE TABLE tablex
(
columny VARCHAR(01)
)
go
INSERT INTO tablex (columny) SELECT "a"
INSERT INTO tablex (columny) SELECT "b"
INSERT INTO tablex (columny) SELECT "c"
INSERT INTO tablex (columny) SELECT "d"
INSERT INTO tablex (columny) SELECT "e"
INSERT INTO tablex (columny) SELECT "f"
INSERT INTO tablex (columny) SELECT "g"
INSERT INTO tablex (columny) SELECT "h"
go
ALTER TABLE tablex ADD columnz NUMERIC (5,0) IDENTITY
go
SELECT * FROM tablex
go
DROP TABLE tablex
go
Result
----------------------------------
| columny | columnz |
| a | 1 |
| b | 2 |
| c | 3 |
| d | 4 |
| e | 5 |
| f | 6 |
| g | 7 |
| h | 8 |
segunda-feira, 8 de abril de 2013
NOLOCK - Como é que é mesmo?
Vez por outra tenho essa dúvida
Sybase
SELECT * FROM [TABELA] NOLOCK
SQLServer
SELECT * FROM [TABELA_NOME] WITH (NOLOCK)
MySQL
SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED ;
SELECT * FROM [TABELA_NOME];
SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ ;
Oracle
No oracle quem lê não bloqueia quem escreve e vice versa. Este bloqueio é que obriga no SQLServer, MySQL e Sybase a utilizar o artifício do NOLOCK ou READ UNCOMMITTED.
Obs: Talvez já existam versões de Sybase, SQLServer e MySQL que não precisam mais de artifício para fazer o que o Oracle faz. Mas no momento desconheço tais versões. OK?
E HÁ!
Sybase
SELECT * FROM [TABELA] NOLOCK
SQLServer
SELECT * FROM [TABELA_NOME] WITH (NOLOCK)
MySQL
SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED ;
SELECT * FROM [TABELA_NOME];
SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ ;
Oracle
No oracle quem lê não bloqueia quem escreve e vice versa. Este bloqueio é que obriga no SQLServer, MySQL e Sybase a utilizar o artifício do NOLOCK ou READ UNCOMMITTED.
Obs: Talvez já existam versões de Sybase, SQLServer e MySQL que não precisam mais de artifício para fazer o que o Oracle faz. Mas no momento desconheço tais versões. OK?
E HÁ!
sexta-feira, 15 de março de 2013
Migração de Sybase para MSSQL Server (Cutting through the bull****)
Antes de mais nada, vamos estabelecer algumas premissas. Premissa no. 1 - Estamos falando de um lugar em que a tecnologia Microsoft é a predominante. Premissa no. 2 - Existe na empresa um desejo generalizado de realizar a migração dos bancos de dados para MSSQL Server. Dito isto, podemos continuar.
Ao longo dos meus mais de dez anos de carreira de tempos em tempos sou questionado sobre a migração do banco Sybase para MSSQL Server. "É seguro?", "Quais são os riscos?", "Isso irá afetar a paz mundial?", "Causará mutação em fetos humanos?". Até que me provem o contrário, a migração não afetará a paz mundial (não diretamente), e definitivamente não causará mutação em fetos humanos. Então, quais são os reais problemas?
Primeiro aspecto a ser observado
Factibilidade da migração - Para quem trabalha com qualidade de desenvolvimento de software, sabe que padrão é uma coisa difícil de estabelecer e manter nas organizações brasileiras. Assim, a incidência de código não padronizado, ou seja, ANSI SQL, é quase sempre muito alta, quando começamos a analisar as procedures, triggers e views (os três objetos que repreentam o principal problema na migração).
Mas então se os objetos que mencionamos acima não estiverem escritos em imaculado ANSI SQL devemos abortar o projeto de migração? Nada disso. O SQL produzido no Sybase, mesmo não sendo ANSI SQL, não é algo completamente alienígena para o MSSQL Server. Isso porque, acho que todo mundo sabe disso, este último, teve o seu core originário do Sybase.
Se ainda está em dúvida, leia este paper
Segundo aspecto a ser observado
Estratégia - E quanto a estratégia de migração? São necessários cientistas da NASA para fazer a migração? Não, não são necessários cientistas da NASA. Isso porque este tipo de migração é uma técnica de domínio conhecido há pelo menos cinco anos.
Antigamente era necessário ler um paper , um pouco chato eu admito, de algumas centenas de páginas. Esse paper da microsoft era um manual com um passo-a-passo de todo o processo de migração.
Mas desde o ano passado o caminho foi encurtado devido ao aparecimento do SSMA, SQL Server Migration Assistant.
Para detalhes desse migrador, acesse:
Para baixar, acesse:
O SSMA resolverá pelo menos 80% do problema. Mas e depois?
Terceiro aspectoa ser observado.
Risco - "Ai mas como eu garanto que o código migrado para MSSQL Server não tem nenhum erro?!!!!!! Aaaahhhhh!!!!!" , você provavelmente ouvirá isso do seu gerente, superintendente ou diretor. Não se intimide. Responda, com muita calma e serenidade, o óbvio. Testando! Ou, responda de uma forma mais elaborada, PDCA, Plan, Do, Check, Act.
"Mas e quanto ao risco de dar errado?". OK, vamos lá. Existem duas formas de responder essa pergunta. A primeira é a ironia, "Se você não quer correr riscos seja dono de uma funerária. O risco é próximo do zero. É um setor que nunca está em crise". Vamos agora a forma mais polida, eu diria.
Escolha o processo mais crítico relacinado a sua migração. Faça um snapshot do seu banco (uma foto) antes de executar esse processo. Execute o tal processo. Faça outro snpashot. Guarde os dois.
Depois que fizer a migração das procedures, views e triggers. Migre os dados do primeiro snapshot(Sybase) para o banco já migrado(SQLServer). Execute o processo mais crítico. Compare os resultados do SQLServer com o segundo snapshot(Sybase).
O que eu descrevi acima foi apenas uma sugestão. Mas certamente o DBA da sua empresa terá uma ideia melhor.
Conclusão.
A verdadeira questão não é, "SE é possível migrar", e sim, "QUANDO migrar". Hoje em dia, a migração do Sybase para SQLServer é muito mais um desafio de planejamento do que um desafio tecnológico propriamente dito.
PS: HÁ!
Marcadores:
Artigo,
Migração,
MSSQL Server,
Sybase
Assinar:
Postagens (Atom)