Welcome to Clarion Community Sign in | Join | Faq

Databases and Drivers

Started by zoomprint at 04-03-2008 3:09 PM. Topic has 0 replies.

Print Search
Sort Posts:    
   04-03-2008, 3:09 PM
zoomprint is not online. Last active: 4/4/2008 2:57:02 AM zoomprint

Top 500 Posts
Joined on 04-04-2008
Posts 1
Connection problems with ASP.Net (Vb) and ODBC .tps
Reply Quote
Hi,
I currently connect to my tps via ASP, IIS and the .Tps Odbc driver but I would like to convert my website to ASP.net but I cannot get the connection string to work. This is the connetion via asp.


dim xpath
dim strConnect
'-------------------------------------------------------------------------\

xpath = "filepath" 'trailing \ is required for TPS files

strConnect = "DRIVER=SoftVelocity Topspeed Driver (*.tps);DBQ=" & xpath & ";"
'note: after any error, you may have to restart MSIE and/or IIS
'-------------------------------------------------------------------------/
dim QPConn

Set QPConn = Server.CreateObject ("ADODB.Connection")
QPConn.CursorLocation = 3
QPConn.Mode = 3 'adModeRead/Write
QPConn.Open strConnect

%>

but this is not supported in asp.net

I am currently using this

<script language="vb" runat="server">
sub Page_Load(sender as Object, e as EventArgs)

Dim connString as String
connString = "PROVIDER=SoftVelocity Topspeed Driver (*.tps);DBQ=filepath"

'Open a connection
Dim objConnection as OdbcConnection
objConnection = New OdbcConnection(connString)
objConnection.Open()


but I get errors. Can anyone help me as I you may see I am quite new to all this.
   Report 
Clarion Communi... » Clarion » Databases and D... » Connection problems with ASP.Net (Vb) and ODBC .tps

Powered by Community Server, by Telligent Systems