Re: Visual Basic 6.0 problem!

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You did not tell us what kind of error you're getting.

You're using SSPI authentication. This assumes that the SQL Server has an account setup for the Windows user or the group in which they are a member.

I would also double-check the version of the COM libraries to make sure they are correct as this is the most common reason for this type of failure.

I would also transition your skills to VB.NET.

--
__________________________________________________________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205 (Pacific time)
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
____________________________________________________________________________________________
<kevinpublic@xxxxxxxxxx> wrote in message news:30fe1dce-84d1-443f-95ca-1aef3d881078@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a fairly simple program I'm writing in VB6 to do basic project
scheduling. It runs just fine on my computer. I've created an
install set using the package & deployment wizard. Here's the
problem... it only works on SOME of the computers I install it on. I
have the following code:

Public CnxnCQ As ADODB.Connection
Public CnxnGP as ADODB.Connection
Public CnxnCV As ADODB.Connection
Public rsListOrders As ADODB.Recordset
Public UserInfo as clsUser
Public OrderInfo as clsOrder
Public strSQL as String


Sub Main()

ConnectToTables

End Sub


Sub ConnectToTables()

Set CnxnCQ = New ADODB.Connection
CnxnCQ.ConnectionString = "Provider=SQLOLEDB;Data
Source=CORSICABINETS02;" & _
"Initial Catalog=CorsiTables;" & _
"Integrated Security=SSPI;"
CnxnCQ.CursorLocation = adUseClient
CnxnCQ.Open

frmLogon.Show


For some computers, this code works just fine and the program runs
without incident. For other computers, it gets as far as
'CnxnCQ.Open', then it gives me an "Object Required" error.

Please help! I can't figure out why it's not working. I've already
made sure the msado15.dll is correct for all the PCs I'm trying to
install it on. Does anyone have any ideas why this would error out?

Thank you!

.



Relevant Pages

  • RE: please help
    ... The sample SQL Server databases are not installed with MSDE. ... the install scripts for Pubs and Northwind. ... > Sub Page_Load ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Installing Sql Server Express on Vista Home Premium
    ... According to your story, I assume you have three computers with Windows Vista installed and every computer has its own SQL Server 2008 Express Edition installed on it and every application instance tries to connect to its locally installed SQL Server instance, right? ... Can you tell us what connection string you use for your application to make connection to SQL Server? ... I have install Express on three Vista HP computers, ...
    (microsoft.public.sqlserver.setup)
  • Creating a database on a local Sql Server Express
    ... Our software installs Sql Server Express 2005 using ... the MSBuild bootstrapper to install it. ... few computers, when we go to create our database we get: ... An error has occured while establishing a connection to the server. ...
    (microsoft.public.sqlserver.setup)
  • Re: SQL for Dummies
    ... Your thought that the CAD program installed SQL Server is probably ... It probably installed a version of SQL Server called "MSDE". ... > install a new beta CAD program on the two computers in question. ...
    (microsoft.public.sqlserver)
  • Re: Install on many computers at once or an alternative
    ... Now we have over a 100 computers in our lab and its nearly impossible ... you could install the VB app to a server. ... There is also SQL Server Express which is essentially the same thing as MSDE but based on SQL Server 2005 rather than SQL Server 2000. ... As far as other installation options, you could use some kind of push technology to automatically install the app on each workstation. ...
    (microsoft.public.vb.general.discussion)