Ask a Question related to ASP Database, Design and Development.
-
Vincent Jones #1
'Connection String not work'..
I have this code looking at a registered dll, but i keep getting..
Object doesn't support this property or method: 'ConnectionString'
line 9
<%
Dim obj
Dim rs
'Create an instance of the class
set obj = Server.CreateObject("DataAccess.clsDataAccess")
'Set the connection string
obj.ConnectionString = "Provider=SQLOLEDB.1;Data Source=;Initial
Catalog=PUBS;User id=;Password=;"
'Set execute and create our recordset
set rs = obj.fnSQL_RS("SELECT * FROM AUTHORS")
set obj = nothing
'Display something
While not rs.EOF
Response.Write(Trim(rs("AU_LNAME")) + ", " + rs("AU_FNAME") + "<br>")
rs.MoveNext
Wend
set rs = nothing
%>
Vincent Jones Guest
-
need help with connection string
i keep reading that it is not secure to hard code the connection string to the server into my swf. so how can i get the string into my swf without... -
connection string
Hi there, I have recently changed the connection string on a site that was working perfectly. I used an OLE DB connection with this code: var... -
Webservice Connection String
Hi I have a dataset from a web service. I want to use a dataadapter with the dataset. What connection string should I use so the da knows that it... -
DB Connection String
Hi, I need to store the database connection string inside web.config file. What would be the best way to encrypt and decrypt it? Thanks, Ali -
Is it necessary to have timeout value set for the connection string?
Hello, I am new to ASP application. I have a asp-based web application that uses SQL Server as the backend. I open connections to the database... -
Aaron Bertrand [MVP] #2
Re: 'Connection String not work'..
We can't help you unless we know what DataAccess.cldDataAccess is. My first
guess is that, surprise, it doesn't have a property called
"ConnectionString."
Why do you think you should use a DLL to make a connection to a database?
It's actually much more efficient (and easier to debug) if you just make the
connection from ASP.
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
"Vincent Jones" <vncntj@hotmail.com> wrote in message
news:ba2a2d30.0401241332.7b87d30b@posting.google.c om...> I have this code looking at a registered dll, but i keep getting..
> Object doesn't support this property or method: 'ConnectionString'
> line 9
>
> <%
> Dim obj
> Dim rs
>
> 'Create an instance of the class
> set obj = Server.CreateObject("DataAccess.clsDataAccess")
>
> 'Set the connection string
> obj.ConnectionString = "Provider=SQLOLEDB.1;Data Source=;Initial
> Catalog=PUBS;User id=;Password=;"
>
> 'Set execute and create our recordset
> set rs = obj.fnSQL_RS("SELECT * FROM AUTHORS")
>
> set obj = nothing
>
> 'Display something
> While not rs.EOF
> Response.Write(Trim(rs("AU_LNAME")) + ", " + rs("AU_FNAME") + "<br>")
> rs.MoveNext
> Wend
>
> set rs = nothing
> %>
Aaron Bertrand [MVP] Guest



Reply With Quote

