Ted k’ É assim que tem que ser! Programando em ASP, ASP.NET, PHP, CSS, dentre outras…


28
Feb/08
0


Conexões com os banco mais usados em ASP

  1. <%'ACCESS - ODBC
  2. Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\pasta\banco.mdb;Uid=Admin;Pwd=;
  3.  
  4. '-----------------------------------------------------------------------
  5. '-----------------------------------------------------------------------
  6.  
  7. 'Access 2007 - ACE OLEDB 12.0
  8. Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\pasta\banco.accdb;Persist Security Info=False;
  9.  
  10. '-----------------------------------------------------------------------
  11. '-----------------------------------------------------------------------
  12.  
  13. 'MySQL - ODBC
  14. Driver={mySQL};Server=localhost;Option=16834;Database=Nome_Base;
  15.  
  16. 'ou
  17. Driver=MySQL ODBC 3.51 Driver;DataBase=Nome_Base;Server=localhost;Uid=;PassWord=;
  18.  
  19. '-----------------------------------------------------------------------
  20. '-----------------------------------------------------------------------
  21.  
  22. 'Oracle
  23. Driver={Microsoft ODBC for Oracle};Server=localhost;Uid=;Pwd=;
  24.  
  25. 'ou versão old
  26. Driver={Microsoft ODBC Driver for Oracle};ConnectString=OracleServer.world;Uid=myUsername;Pwd=myPassword;
  27.  
  28. '-----------------------------------------------------------------------
  29. '-----------------------------------------------------------------------
  30.  
  31. 'SQL Server - ODBC
  32. Driver={SQL Server};Server=localhost;Database=Nome_Base;Uid=;Pwd=;
  33.  
  34. '-----------------------------------------------------------------------
  35. '-----------------------------------------------------------------------
  36.  
  37. 'Postgre SQL
  38.  
  39. 'Standard
  40. Driver={PostgreSQL};Server=localhost;Port=5432;Database=Nome_Base;Uid=;Pwd=;
  41.  
  42. 'ANSI
  43. Driver={PostgreSQL ANSI};Server=localhost;Port=5432;Database=Nome_Base;Uid=;Pwd=;
  44.  
  45. '-----------------------------------------------------------------------
  46. '-----------------------------------------------------------------------
  47.  
  48. 'Firebird - ODBC - IBPhoenix Open Source
  49. Driver=Firebird/InterBase(r) driver;Uid=;Pwd=;DbName=D:\FIREBIRD\banco\banco.fdb;%>

Dica: Acesse também: Webly

22
Feb/08
1


Registros Aleatórios no Access, SQL Server e MySQL

Registro aleatório no Access:

SELECT * FROM tabela order by Rnd(Int(Now()*[ID])-Now()*[ID]);

ID é o campo de indentificação de sua tabela.

Registro aleatório no MySQL:

SELECT * FROM tabela order by RAND();

Registro aleatório no SQL Server:

SELECT * FROM tabela order by NEWID();

Página 1 de 11



Portfólio Ted k'

Atualize seu Navegador