Hi all..
i just started learning asp and i am not able to establish the connection to my db. db is in sql server..am writing the asp code like this
set conn = Server.CreateObject("ADODB.Connection")
conn.ConnectionString="Provider=MSDASQL.1;" "Data Source=dbname"
conn.Open
when previewed, the following error occured..
Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/asptest/sqltest.asp, line 9, column 44
conn.ConnectionString="Provider=MSDASQL.1;" "Data Source=dbname"
Please help me..
Thanx in advance..
shahina.
i just started learning asp and i am not able to establish the connection to my db. db is in sql server..am writing the asp code like this
set conn = Server.CreateObject("ADODB.Connection")
conn.ConnectionString="Provider=MSDASQL.1;" "Data Source=dbname"
conn.Open
when previewed, the following error occured..
Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/asptest/sqltest.asp, line 9, column 44
conn.ConnectionString="Provider=MSDASQL.1;" "Data Source=dbname"
Please help me..
Thanx in advance..
shahina.