473,414 Members | 1,686 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

vb 6 connection problem with sql 2005

137 100+
dear all,
i used to connect vb6 with sql server 2000, it worked great.now i just connected vb6 with sqlserver 2005, but it generates the error.

object variable or With block variable not set.

i use the connection string

conn.Open "Provider=SQLNCLI.1;Integrated Security=SSPI;Password=pwd ;Persist Security Info=True;User ID=administrator;Initial Catalog=dtbs;Data Source=192.168.1.99


what might be the problem?? please can any one figure it out?

thanx in advance
Jan 20 '10 #1
2 2157
debasisdas
8,127 Expert 4TB
Please find the Connection strings for SQL Server 2005 here.

The error seems to be more related to the code than connection string.
Jan 20 '10 #2
coolminded
137 100+
thanx for ur quick response.
i just went through the site.

but now i got next problem.
now i connect the database in a network.
the ip of the server is 192.168.1.100
the name of the computer is comp1
the database is dtbs

i use the connection string :
conn.Open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Password=pwd ;Persist Security Info=True;User ID=administrator;Initial Catalog=dtbs;Data Source=192.168.1.100:\comp1\sqlexpress

but now it shows the error:
[DBNETLIB][ConnectionOpen (ParseConnectParams()).]Invalid connection

how should i define the data source here.
TIA
Jan 20 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: YERVANT | last post by:
I have a problem with my connection. My computer is a customer Windows 2000 Professional, I installed IIS into my computer. I want use a connection with a database into the server. ( The server...
1
by: Kathryn Bean | last post by:
I am designing application where each node initiates connection with nodes and accepts connection with other nodes. This application will be running on Sun Unix platform. I think each node...
0
by: hoenes1 | last post by:
Hi all, I'm trying to send files to a client following the instructions of http://support.microsoft.com/?id=812406 Everything works fine, but if files are large and/or if the bandwidth is...
0
by: John Smith | last post by:
Hi ! With VB .net 2005 Beta1 I was using these 2 commands to load my main form: Dim settings As Configuration.SettingsProviderCollection =...
2
by: Rafi B. | last post by:
Sorry for the English. I mean, when building my applications, I often need to do several database actions, and I'm thinking, what's better? 1) Open connection with DB, for instance mySQL, at...
0
by: Adrian | last post by:
I am unable to load previous developments to VS 2003 without getting following message: The webserver reported following error when attempting to create or open the Web project located at the...
0
by: Axel | last post by:
Hello all, i've a problem with connection to a VPN Network through WinInet API. Scenario: 1 got 2 RAS-connections on my System: one for dialing into the internet via modem and the second for...
0
by: Godzilla | last post by:
Hi all, My problem is when I open a ASP.NET Project in VS.NET 2003, it shows up "A connection with server could not be established". Both new projects and existing project are not working! I...
4
by: Mike P2 | last post by:
Hi. I'm writing controls that have to query the database, and it bothers me that I might have several of these controls on a page that each create, open, and close their own connection with the...
5
by: WT | last post by:
Hello, IIS6 on W2K3, .net 3.5, Sql 2005. All sp applied. My site is using windows authentication only and the web application connects to sql server residing on another server in the same...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.