473,395 Members | 1,969 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,395 software developers and data experts.

connectivity error using sql server

35
hello

I have written:

conn.connectionstring= "data source=VTECHS;database=abc;uid=hkjhkj;password=*** ;"
conn.open
But this line creating error .
Error is "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
".

Please tell me how to remove the error.
Jan 10 '07 #1
2 1397
jai80
30
hello

I have written:

conn.connectionstring= "data source=VTECHS;database=abc;uid=hkjhkj;password=*** ;"
conn.open
But this line creating error .
Error is "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
".

Please tell me how to remove the error.
hi muskan,

conn.connectionstring= "data source=VTECHS;PROVIDER=SQLOLEDB;database=abc;uid=hkjhkj;password=***;"
conn.open

you wil have to specify the appropriate provider name. the above line uses sqloledb provider, and it says that sql server is the backend that will be used for the application. Use specific provider name according to the rdbms/dbms you will be using for your application (sql server,ms-access...)

gud luck!

cheers,
jai
Jan 10 '07 #2
muskan
35
hello,

Thanks for reply.

But still connection is not established
It giving the same error
I have written as:
conn.connectionstring="PROVIDER=SQLOLEDB;Data Source=VTECHS;database=abc;User ID=fggh;Password=*****;"


tell how to remove.
Thanks.

hi muskan,

conn.connectionstring= "data source=VTECHS;PROVIDER=SQLOLEDB;database=abc;uid=hkjhkj;password=***;"
conn.open

you wil have to specify the appropriate provider name. the above line uses sqloledb provider, and it says that sql server is the backend that will be used for the application. Use specific provider name according to the rdbms/dbms you will be using for your application (sql server,ms-access...)

gud luck!

cheers,
jai
Jan 11 '07 #3

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

Similar topics

1
by: harish | last post by:
I am using java applications to connect to my MS SQL Server database. I am using ODBC for database connectivity. If i am running my java applications in a remote PC and try to connect to database...
3
by: Niks | last post by:
Hi, I need to connect to SQL server Database using a System DSN. Can anyone tell me how to connect to SQL Server using DSN in ASP.NET (VB.Net). Using a Try Catch block. Does anyone know how to...
1
by: Darren McDowell via .NET 247 | last post by:
I have a situation, I was wondering if someone could help me. Wehave a .net web service, it runs several transactions in sqlserver 2000. We have several clients which connect to this webservice in...
1
by: lovkeshanand | last post by:
Dear All, I am using the oracle transparent gateway connectivity with sql server using tg4msql,as far as settings are concerned those were set and Connectivity is working Fine, and getting the...
0
by: Gr8Ongole | last post by:
Hi, I have a SQL Server 2005 running on my machine with a named intance. Recently I have got a DSL connection. After that the Microsoft SQL Server Management Studio started giving connectivity...
2
by: David Costello | last post by:
Hi all, I keep getting a bizarre login error, when trying to connect to a SQL Server 2005 database on a local domain to my machine using C#. The Exception returns: SQLException: Login failed for...
5
by: Scav | last post by:
Helpful folks, I am having a problem getting Oracle's Transparent Gateway for DRDA product to interface with DB2 UDB for LUW 8.1.14. The Gateway product is running on Linux and using DRDA...
0
by: nunnasujatha | last post by:
Hi i am new to DB2 and i am working on a java application on windows ,backend for this is DB2, i am trying to access the db2 server which is on Mainframes from the java application on...
2
navneetkaur
by: navneetkaur | last post by:
I am doing connectivity to PostgreSql from asp.net 2.0 using odbc but i am not able to connect i got error Data source name not found and no default driver specified. code is written for...
0
by: okonita | last post by:
Hi all, I am having a DB2 connectivity problem that I hope someone can help me resolve. I need this to test Replication and such other things. What am I doing wrong here? Any help that I can get...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
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
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,...

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.