I have just installed SQL Server on my home machine and cannot connect to a database?!?!
I have not had to install sql server before (always installed at work). Do I have to use any settings to get it to install to work with localhost?
Here's is a sample string that works at work but not at home
"If a man is a fool, you don't train him out of being a fool by sending him to university. You merely turn him into a trained fool, ten times more dangerous."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I have not had to install sql server before (always installed at work). Do I have to use any settings to get it to install to work with localhost?
Here's is a sample string that works at work but not at home
Code:
<%
Set objConn=Server.CreateObject("ADODB.Connection")
cs = "Provider=MSDASQL.1;Extended Properties='DRIVER={SQL Server};SERVER=localhost; DATABASE=davidtest; REGIONAL=NO'"
objConn.open cs
SQL = "SELECT * FROM test where id = 1"
set rs = server.CreateObject("ADODB.RECORDSET")
rs.open SQL,objConn
response.write RS("name")
%>
"If a man is a fool, you don't train him out of being a fool by sending him to university. You merely turn him into a trained fool, ten times more dangerous."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~