DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 09 Aug 2007 13:18:50 -0700,    posted on: microsoft.public.dotnet.framework.adonet        back       

Thread Index
  1    slinky
          2    Manish Bafna


.aspx.vb code syntax problem   
I'm making a OLE DB connection in code and was wondering if anyone
could identify what the syntax errors would be in this just as it is
pasted (I tried putting   & _  at the end of the first line and that
only brought up other errors):

        New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" & Server.MapPath(~/App_Data/Lowes.mdb) & ";" & _
          "Initial Catalog=Assets;Integrated Security=SSPI")


Thanks!!
Date:Thu, 09 Aug 2007 13:18:50 -0700   Author:  

RE: .aspx.vb code syntax problem   
Hi,
Below code is working perfectly well in my machine:
 Dim conn As OleDbConnection = New 
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data " & _
        "Source=" & Server.MapPath("~/App_Data/Lowes.mdb") & ";" & _
        "Initial Catalog=Assets;Integrated Security=SSPI")
-- 
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



"slinky" wrote:


> I'm making a OLE DB connection in code and was wondering if anyone
> could identify what the syntax errors would be in this just as it is
> pasted (I tried putting   & _  at the end of the first line and that
> only brought up other errors):
> 
>         New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
> Source=" & Server.MapPath(~/App_Data/Lowes.mdb) & ";" & _
>           "Initial Catalog=Assets;Integrated Security=SSPI")
> 
> 
> Thanks!!
> 
> 
Date:Thu, 9 Aug 2007 21:06:03 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us