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

connection to sql server

samycbe
83
dear friends,
i want to connect vb with sql server database. i am not having the rights to create dsn. how can i? please help me.

i connected with access by the following method

Set cn = New ADODB.Connection
cn.Provider = "Microsoft.JET.OLEDB.4.0"
cn.ConnectionString = "d:\vb projects\a.mdb"
cn.Open

please help me.......

samy
Mar 22 '07 #1
4 1117
ansumansahu
149 100+
dear friends,
i want to connect vb with sql server database. i am not having the rights to create dsn. how can i? please help me.

i connected with access by the following method

Set cn = New ADODB.Connection
cn.Provider = "Microsoft.JET.OLEDB.4.0"
cn.ConnectionString = "d:\vb projects\a.mdb"
cn.Open

please help me.......

samy
Do you need to create a connection through DSN. You can use a DSN less connection.

Check this link out

http://www.freevbcode.com/ShowCode.Asp?ID=1257

thanks
ansuman
Mar 22 '07 #2
Dököll
2,364 Expert 2GB
dear friends,
i want to connect vb with sql server database. i am not having the rights to create dsn. how can i? please help me.

i connected with access by the following method

Set cn = New ADODB.Connection
cn.Provider = "Microsoft.JET.OLEDB.4.0"
cn.ConnectionString = "d:\vb projects\a.mdb"
cn.Open

please help me.......

samy
Take ansumansahu's advice. Also, take comfort in the fact that you can add DSN connection/access through your Data Source Admin (Control Panel + Admin Tools)...See if this works well :-)
Mar 27 '07 #3
samycbe
83
I can't use DSN. Because i dont have access of DSN craetion. Please help me the code for connecting the sql server database

please help me

samy
Mar 27 '07 #4
vijaydiwakar
579 512MB
dear friends,
i want to connect vb with sql server database. i am not having the rights to create dsn. how can i? please help me.

i connected with access by the following method

Set cn = New ADODB.Connection
cn.Provider = "Microsoft.JET.OLEDB.4.0"
cn.ConnectionString = "d:\vb projects\a.mdb"
cn.Open

please help me.......

samy
try to make ur all programms DSN less as these are very comfertable
use ADODC ctrl drop it on ur form right click on it click on properties and set the connection to use sqlserver then after finishing u'll get a connection string there copy and paste it as
Conn.open <ur coppied connection string here >
try it
good luck
Mar 27 '07 #5

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

Similar topics

6
by: Sharon | last post by:
Hi all. I'm trying first time async socket connection. In all the examples i've seen, the server connection is closed when the message is complete. Is it common to close the connection after...
3
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database...
5
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
16
by: crbd98 | last post by:
Hello All, Some time ago, I implemented a data access layer that included a simple connectin pool. At the time, I did it all by myself: I created N connections, each connection associated with...
20
by: fniles | last post by:
I am using VS2003 and connecting to MS Access database. When using a connection pooling (every time I open the OLEDBCONNECTION I use the exact matching connection string), 1. how can I know how...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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
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...

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.