WN

WN (https://www.wn.se/forum/index.php)
-   Serversidans teknologier (https://www.wn.se/forum/forumdisplay.php?f=4)
-   -   Koppla sql-databas (https://www.wn.se/forum/showthread.php?t=10396)

Spinn 2005-10-18 18:01

Hur kopplar jag sql-databasen till "scriptet"?


Uppgifter från webbhotellet (OBS! Påhittade uppgifter):

SQL 2000 Inställningar

System DSN: spinn
Login: spinn
Password: JAG1234
Database Name: lattjo

SQL-Server: 000.000.000.00:0000



Scriptet ser ut så här (en del av det):
Dim strSQLServerName 'Holds the name of the SQL Server
Dim strSQLDBUserName 'Holds the user name (for SQL Server Authentication)
Dim strSQLDBPassword 'Holds the password (for SQL Server Authentication)
Dim strSQLDBName 'Holds name of a database on the server


'------------- The Driver Below is if you are using SQL Server (Do Not Use Unless you know and have an SQL Server) ---------------------------

'Enter the details of your SQL server below
strSQLServerName = "tassen" 'Holds the name of the SQL Server
strSQLDBUserName = "tassen" 'Holds the user name (for SQL Server Authentication)
strSQLDBPassword = "PWD" 'Holds the password (for SQL Server Authentication)
strSQLDBName = "mjau" 'Holds name of a database on the server


'Please note the forum has been optimised for the SQL OLE DB Driver using another driver
'or system DSN to connect to the SQL Server database will course errors in the forum and
'drastically reduce the performance of the forum!



Vad ska jag göra? Vilka uppgifter ska in i scriptet? Behöver jag något
speciellt program?
Som jag har uppfattat det så fixar scriptet så att tabeller bildas när
man kör setup.asp.

Jan Eriksson 2005-10-18 18:18

'Enter the details of your SQL server below
strSQLServerName = "tassen" 'Holds the name of the SQL Server
strSQLDBUserName = "spinn" 'Holds the user name (for SQL Server Authentication)
strSQLDBPassword = "JAG1234" ' Holds the password (for SQL Server Authentication)
strSQLDBName = "lattjo" 'Holds name of a database on the server

strSQLServerName kan vara localhost, ett ipnummer eller DNS namn till servern

Roos 2005-10-22 00:23

Om strSQLServerName="localhost" inte funkar så pröva med strSQLServerName="127.0.0.1" eller möjligen strSQLServerName=127.0.0.1 (dvs om mysql är på samma maskin). Råkade själv ut för att localhost inte funkade för några är sedan och det tog flera dagar innan jag hittade orsaken...

Spinn 2005-11-01 23:22

Jag har försökt med olika alternativ för strSQLServerName och det fungerar ändå inte. Förstår inte vad jag gör fel...

Jonas 2005-11-02 01:28

Är "KpXY614a" också påhittat? ;)

Thomas 2005-11-02 01:49

Humn "spinn" eller "lattjo" är väl det vi har att jobba med?

strSQLServerName = "000.000.000.00:0000" 'Holds the name of the SQL Server
strSQLDBUserName = "spinn" 'Holds the user name (for SQL Server Authentication)
strSQLDBPassword = "JAG1234" ' Holds the password (for SQL Server Authentication)
strSQLDBName = "lattjo" 'Holds name of a database on the server'


Funkar inte det så maila över ovanstående till din host så löser dom det säkert.

Även här finns läsvärd info innan du ringer dom.


Alla tider är GMT +2. Klockan är nu 15:23.

Programvara från: vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Svensk översättning av: Anders Pettersson