Ir para conteúdo
Fórum Script Brasil

Cezar Rocha

Membros
  • Total de itens

    2
  • Registro em

  • Última visita

Sobre Cezar Rocha

Perfil

  • Gender
    Male

Cezar Rocha's Achievements

0

Reputação

  1. Olá pessoal. Procuro alguém para fazer a conexão de um script ASP de classificados, que roda hj em Access para MySQL. Bom meu conhecimento é bem limitado! Na verdade até não sei se será possível... O script tem a opção de access e SQL. Vem inclusive com dois arquivos: sqlserver2K e sqlserver7 O autor do script comenta o seguinte em relação a instalação do sql: If you are using SQL Server, be sure to edit the conn string with your perimeters (Data Source, Catalog, User ID, Password). Save and re-upload the file. With SQL Server, you will need to run "sqlserver2K.sql" OR "sqlserver7.sql", depending on your DB version. Here is further instructions for SQL Server: 1.) Start up the Microsoft SQL Server Enterprise Manager. Connect to your database server and navigate to the 'Databases' folder. 2.) Point to 'Action' then to 'New Database' 3.) Type in a name for your new database and click 'OK' 4.) Navigate to the 'Security' folder. Point to 'Action' then to 'New Login' 5.) Choose a name and password for the new database account you have just made. (Pick "SQL Server Authentication"). Change the default database to be your new classified database. 6.) Click on the tab that says 'Database Access'. Find the database you just created and checkmark it. At the bottom, pick 'db_dataowner', 'db_datareader', 'db_datawriter', to give this logon READ/WRITE access to this database. 7.) Close the Enterprise Manager and start up the Query Analyzer. Log in to your database with administrator privileges (sa account?). Make certain that the database is set to the new database you created in the previous steps. Paste in the SQL script (sqlserver2K.sql OR sqlserver7.sql) and hit the 'Play' button. All your database tables should be created. Now open classifieds/login.asp with your web browser. Login with [E-mail: admin@yourwebsite.com] and [Password: password], then click "Admin Manage" at the top right corner. Click "Admin Config" link and edit the fields appropriately. ALGUÉM PODERIA ME AJUDAR? Obrigado. Cezar
  2. Olá pessoal! Sou novo aqui no fórum e gostaria de uma ajuda, se possível, sobre um script de classificados em ASP. Meu conhecimento de ASP é BEM limitado... Na verdade sou somente um curioso. Mas tb, infelizmente não tenho muito tempo pra me dedicar, bem que eu gostaria... Eui baixei um script de classificados em ASP e aos pouquinhos estou fazendo algumas modificações, bem simples... Já traduzi quase todo o script, que estava em inglês... Mudei uns campos que eram cidade, estado, para outros de meu interesse etc... Meu código deve estar uma beleza né. Por razões óbvias, não vou nem postar... Bom pessoal, na verdade tenho 4 dúvidas... :blush: 1. Gostaria de poder mostrar os últimos anúncios, e os mais acessados. 2. Mostrar todos os anúncios de um usuário... 3. Mostrar "NOVO" noas anúncios postados recentemente. 4. O mais importante! Atualmente o script esta rodando com BD Access. Esta funcionando 100% Aliás, que beleza que é este tal de acces né! Facinho de instalar, até eu instalei! hehehe Mas já vi que existe bastante diferença entre um BD e outro... Principalmente em relação à segurança. E como este script dá a opção para conectar à um banco SQL Sendo assim, acho interessante fazer esta mudança. Bom, no arquivo explicativo SETUP, o autor diz que a conexão é para SQL SERVER Minha hospedagem é do UOL HOST(Windows), a mais paia... hehehe R$ 14,00 mas eu acho boa! No meu painel de controle, vejo que eu posso criar um banco, só que MySQL. Existe diferença entre ser SQL Server e MySQL? No script também vem dois arquivos para conexão SQL: "sqlserver2K.sql" OR "sqlserver7.sql" Rapaziada do ASP, agora a pergunta que não quer calar... Como é que instala esta bagaça? Abaixo as instruções do arquivo SETUP: (Inclusive ele até comenta sobre baixar o MS SQL Server Interprise, mas... baixar aonde? não encontrei... será que realmente precisa?) If you are using SQL Server, be sure to edit the conn string with your perimeters (Data Source, Catalog, User ID, Password). Save and re-upload the file. With SQL Server, you will need to run "sqlserver2K.sql" OR "sqlserver7.sql", depending on your DB version. Here is further instructions for SQL Server: 1.) Start up the Microsoft SQL Server Enterprise Manager. Connect to your database server and navigate to the 'Databases' folder. 2.) Point to 'Action' then to 'New Database' 3.) Type in a name for your new database and click 'OK' 4.) Navigate to the 'Security' folder. Point to 'Action' then to 'New Login' 5.) Choose a name and password for the new database account you have just made. (Pick "SQL Server Authentication"). Change the default database to be your new classified database. 6.) Click on the tab that says 'Database Access'. Find the database you just created and checkmark it. At the bottom, pick 'db_dataowner', 'db_datareader', 'db_datawriter', to give this logon READ/WRITE access to this database. 7.) Close the Enterprise Manager and start up the Query Analyzer. Log in to your database with administrator privileges (sa account?). Make certain that the database is set to the new database you created in the previous steps. Paste in the SQL script (sqlserver2K.sql OR sqlserver7.sql) and hit the 'Play' button. All your database tables should be created. Now open classifieds/login.asp with your web browser. Login with [E-mail: admin@yourwebsite.com] and [Password: password], then click "Admin Manage" at the top right corner. Click "Admin Config" link and edit the fields appropriately. Olha, eu até cheguei a criar um banco, td certinho, editei o arquivo config.asp que faz a conexão com BD, mas nada aconteceu... Alias aí é que veio a dúvida.. ABAIXO, CONFIG.ASP <% 'This is the connect string to the database. It is advisable to rename your data.mdb file to something else. 'If you leave it named tdatabase.mdb in the default data subdirectory, it is very easy for a malicious person to 'download the database and find out your admin password. Rename the data.mdb file and then change the filename 'in the connect string below. Dim datasourcename, MM_conn_STRING 'MS Access Connection String 'datasourcename="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("../database/classi.mdb") 'MS SQL Server datasourcename = "Provider=sqloledb;Network Library=DBMSSOCN;Data Source=xxx,xxx,xxx,xxx,1433;Initial Catalog=classi;User ID=classi;Password=25a14B" Catalog= seria o nome do banco? User ID = nome de usuário Password= a minha senha de acesso ao BD E este data source= ? Pelo que pesquisei um pouco, seria o endereço de IP? Bom, coloquei um numero que eles me passaram, asim como um endereço... mas nada aconteceu. Os dois arquivos: "sqlserver2K.sql" OR "sqlserver7.sql" que vieram com o script estao na raiz do servidor.... Bom, resumindo meu livro, digo, meu Post... eu preciso de uma ajuda para fazer esta mudança de access para SQL. Alguém poderia me ajudar? Ou mesmo algum dos amigos cobraria quanto para fazer esta instalação? Aguardo a ajuda de alguém do fórum! Um abraço a todos pessoal. Cezar/Curitiba
×
×
  • Criar Novo...