FAQ |
Kalender |
![]() |
#1 | |||
|
||||
Medlem
|
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. |
|||
![]() |
![]() |
![]() |
#2 | ||
|
|||
Har WN som tidsfördriv
|
'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 |
||
![]() |
![]() |
![]() |
#3 | |||
|
||||
Nykomling
|
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...
|
|||
![]() |
![]() |
![]() |
#4 | |||
|
||||
Medlem
|
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...
|
|||
![]() |
![]() |
![]() |
#5 | ||
|
|||
Klarade millennium-buggen
|
Är "KpXY614a" också påhittat?
![]() |
||
![]() |
![]() |
![]() |
#6 | |||
|
||||
Administratör
|
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.
__________________
Snickare - Copenhagen - Stockholm - Shoppasmart - Bilverkstad - flig.ht/s - Stockholm - Nöje - Direct Flights - PopularHotels.com - TOBUY Sverige - Pengar.se. |
|||
![]() |
![]() |
Svara |
|
|