473,770 Members | 6,506 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

connection problem for vb with mssql 2005

137 New Member
hello all,

i'm getting problem while connecting another mssql server.
but i can connect with localhost.

my connection string that runs is

con.Open "Provider=SQLOL EDB.1;Integrate d Security=SSPI;P assword=admin12 3;Persist Security Info=True;" & _
"User ID=sa;Initial Catalog=dtbs;Da ta Source=MYCOMPUT ER\SQLEXPRESS"

where MYCOMPUTER is local host

but when i tried to connect another server "COMP1" with the following connection string, it throws the error

[DBNETLIB][ConnectionOpen (ParseConnectPa rams()).]invalid Connection


the connection string is

con.Open "Provider=SQLOL EDB.1;Integrate d Security=SSPI;P assword=comp1;P ersist Security Info=True;" & _
"User ID=sa;Initial Catalog=dtbs;Da ta Source=COMP1:14 33\SQLEXPRESS"

and the default port for mssql is 1433.

how could i connect to remote server, please help

TIA
Jun 7 '10 #1
1 1507
debasisdas
8,127 Recognized Expert Expert
please find the connection string details .
Jun 7 '10 #2

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

Similar topics

1
2548
by: theintrepidfox | last post by:
Dear Group. Wondered if any of you has any suggestion for the following? Trying to install SQL Server 2005 Eval on a 'clean' machine. Well, my mistake was probably that I had installed Visual Studio 2005 Professional Eval before which installed an MSSQL Express instance. Since then I didn't get 'Enterprise Manager' (excuse my ignorance, I know it's called differently in2005 but it's late and I'm tired) for MSSQL 2005 installed.Don't...
0
1630
by: doron.almog | last post by:
anybody know which driver to use to make a linked server connection between MSSQL 2005 and Access 2007
0
1447
by: Derftics | last post by:
Hi Guys, Is there anyone who have tried installing MSSQL 2000 and MSSQL 2005 servers in one desktop computer? I have tried using MSDE and successfully install the MSSQL 2000 server but when I tried installing MSSQL 2005, it allows only the client tools. I have revert the process and successfully install MSSQL 2005 server but now the MSDE was prompting me an error. Is possible to install both versions of MSSQL servers in one desktop...
1
1609
by: PeerGrid | last post by:
We have a membership web site that is heavily database driven using MSSQL 2000. We are looking at converting to MSSQL 2005. What is the level of pain in doing this? Will all database calls have to be rewritten, or does Microsoft provide any kind of automatic conversion routine. Thanks in advance.
3
1596
by: Robert Johnson | last post by:
Hi all. My datasource is a MSSQL 2005 database with several tables all visable in my datasources tab. I can preview data in the Designer OK so my connection is fine. Now, I add a form, drag from my datasouce the table and let VS2005 create a nav bar and grid. Build and run. I can see the data fine but when I try to add data and press the save Icon I get the folowing Exception and no data is saved. What am I doing wrong? I must have...
0
1123
by: Derftics | last post by:
Hi Guys, Anyone knows how to script all the users with permission and access level to an object in MSSQL 2005? In MSSQL 2000 you can use the scripting in EM just go to the option "script secuirity option" when you script the object that you want but in MSSQL 2005 I cant find it. Thanks in advance.
0
1228
by: 123bargains | last post by:
Hello, I have a question on importing a database from MSSQL 2000 to MSSQL 2005. I hope someone on here can help me answer it. I am trying to import a database from MSSQL 2000 to 2005. But, when I tried to import it, the data and tables came in just fine, but the properties such as Identity Values, Column Defaults, Indexes did not import. Also the stored procedures did not import. This causes a problem as I have a lot of tables and I have...
3
1644
by: mazdotnet | last post by:
Hi guys, I'm thinking of buying a laptop time this time and I was wondering if anyone has any experience with running VisualStudio 2008 and MSSQL 2005 on a laptop? Please include your processor, and memory as well. I'm looking at this one which has 2 Gigs RAM. http://www.futureshop.ca/catalog/proddetail.asp?sku_id=0665000FS10100176&catid=25315&logon=&langid=EN
1
1868
by: mmf.stavelot | last post by:
How to find out what type of the data procedure in MSSQL 2005 returns? Using inquiry about sample. Example: SELECT paramtypes FROM sysprocedures; Result:
0
1160
by: Mugs321 | last post by:
Hi there, I'm trying to use an asp-based database GUI (a-la PHPMyAdmin) and I'm having problems connecting to my production MSSQL 2005 database. I connected successfully to my SQLExpress server using the very same connection string. This is the error: Error: Invalid connection. Error: Provider=SQLOLEDB;Data Source=;User Id=;Password=;Initial Catalog=HRC_Mentoring_Dev; The Server, User Id and Password have been removed for the...
0
9591
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10228
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9869
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8883
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7415
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6676
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5312
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3575
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.