Wrox Programmer Forums
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 18th, 2003, 05:59 AM
Registered User
 
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to apoorv_gupta
Default DAO & SQL Server

Set GetCurrentDatabase = Workspaces(0).OpenDatabase("", dbDriverNoPrompt, ro, lcstrConnectionString & ";DSN=FactoryPulse")

Even If I Close down the SQL Server, the above statement does not gives an error. I get Error when i try to execute the OpenRecordset method on this database.
It seems ODBC is going some kind of caching or something. Pls tell me how can i write code that returns error on OpenDatabase statement.







Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Report & VB6 & SQL Server wlho VB How-To 2 June 5th, 2013 01:58 AM
DAO & ADO knowledge76 Access VBA 1 January 24th, 2005 10:12 AM
DAo & ADO & connectionstring dr_morose Access VBA 5 November 17th, 2004 05:24 PM
SQL Server 6.5 & Devices MarioG SQL Server 2000 3 October 6th, 2004 12:47 PM
SQL Server & MSDE reyboy SQL Server 2000 0 September 6th, 2004 10:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.