Koppla sql-databas

Visa första olästa
Ämnesverktyg
Visa huvudforum
Visningsalternativ
Oläst 2005-10-18, 19:01 #1
SpinnSpinn är inte uppkopplad
Medlem
Spinns avatar
Reg.datum: Okt 2005
Inlägg: 199
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.
Spinn är inte uppkopplad
Oläst 2005-10-18, 19:18 #2
Jan ErikssonJan Eriksson är inte uppkopplad
Har WN som tidsfördriv
Reg.datum: Maj 2004
Inlägg: 1 352
'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
Jan Eriksson är inte uppkopplad
Oläst 2005-10-22, 01:23 #3
RoosRoos är inte uppkopplad
Nykomling
Rooss avatar
Reg.datum: Jul 2004
Inlägg: 45
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...
Roos är inte uppkopplad
Oläst 2005-11-02, 00:22 #4
SpinnSpinn är inte uppkopplad
Medlem
Spinns avatar
Reg.datum: Okt 2005
Inlägg: 199
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...
Spinn är inte uppkopplad
Oläst 2005-11-02, 02:28 #5
JonasJonas är inte uppkopplad
Klarade millennium-buggen
Jonass avatar
Reg.datum: Feb 2004
Inlägg: 3 364
Är "KpXY614a" också påhittat? Wink
Jonas är inte uppkopplad
Oläst 2005-11-02, 02:49 #6
ThomasThomas är inte uppkopplad
Administratör
Thomass avatar
Reg.datum: Maj 2003
Inlägg: 3 901
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.
Thomas är inte uppkopplad
Aktiva användare som för närvarande tittar på det här ämnet: 0 (0 medlemmar och 0 gäster)