473,396 Members | 1,989 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.

SQL Data Adapter

I am relatively new to VB.Net so bear with me. I can add an OleDBDataAdapter
using the Jet 4.0 with no problem (although I'm having problems getting Date
and Time formats to carry over to the database). However, I can't seem to
get the SQLDataAdapter to work. When I click on the provider tab it defaults
to “Microsoft OLE DB Provider for SQL Server”. On the connection tab I have
to enter the name of an SQL server name (the drop down doesn’t show
anything). By typing in “(local)”, I can see the database on my PC. I can
select the database and test the connection and it tells me “Test connection
succeeded”. I click “OK” to that and “OK” on the “Data Link Properties” box
and I get the message “Unable to connect to database. It is only possible to
connect to SQL Server Desktop Engine databases and Microsoft Access databases
with this version of Visual Studio.” Can anyone help me with this?

Thanks,

MikeS
Dec 14 '05 #1
13 2067
Mike,

The versions VB 2002, VB2003 and VB2005 are working with the provider
wizards different. Than there is that inside those versions some of the
versions work different, therefore can you tell us what you are using?

Cor

"MikeS" <Mi***@discussions.microsoft.com>
I am relatively new to VB.Net so bear with me. I can add an
OleDBDataAdapter
using the Jet 4.0 with no problem (although I'm having problems getting
Date
and Time formats to carry over to the database). However, I can't seem to
get the SQLDataAdapter to work. When I click on the provider tab it
defaults
to "Microsoft OLE DB Provider for SQL Server". On the connection tab I
have
to enter the name of an SQL server name (the drop down doesn't show
anything). By typing in "(local)", I can see the database on my PC. I
can
select the database and test the connection and it tells me "Test
connection
succeeded". I click "OK" to that and "OK" on the "Data Link Properties"
box
and I get the message "Unable to connect to database. It is only possible
to
connect to SQL Server Desktop Engine databases and Microsoft Access
databases
with this version of Visual Studio." Can anyone help me with this?

Thanks,

MikeS

Dec 15 '05 #2
this must be because the code is not getting the Db server by the name
"(local)". u must have give the name of the server explicitly. check
out the server name. it may be possible that u missed something in the
name. i had this problem. in my case the server name is too long and
differnt then i was giving so it was not able to find and of course
there are some settings because of them i was not able to get the
server by "(local)". this might help u

Dec 15 '05 #3
I too am new to VB.NET(2 days), and am experiencing the exact problem you
are. After two days I have no light to shed on our problem.
--
Thanks
Dennis
"MikeS" wrote:
I am relatively new to VB.Net so bear with me. I can add an OleDBDataAdapter
using the Jet 4.0 with no problem (although I'm having problems getting Date
and Time formats to carry over to the database). However, I can't seem to
get the SQLDataAdapter to work. When I click on the provider tab it defaults
to “Microsoft OLE DB Provider for SQL Server”. On the connection tab I have
to enter the name of an SQL server name (the drop down doesn’t show
anything). By typing in “(local)”, I can see the database on my PC. I can
select the database and test the connection and it tells me “Test connection
succeeded”. I click “OK” to that and “OK” on the “Data Link Properties” box
and I get the message “Unable to connect to database. It is only possible to
connect to SQL Server Desktop Engine databases and Microsoft Access databases
with this version of Visual Studio.” Can anyone help me with this?

Thanks,

MikeS

Dec 16 '05 #4
The version I am using is:

Microsoft Development Environment 2003 Version 7.1.3088

This version came with a text book I purchased through the local community
college. I was thinking it might be a limited version because of being
distributed through the school system. My instructor tells me that it is not
a limited version.

I tried adding the adapter using OleDBDataAdapter, SqlDataAdapter, and
OdbcDataAdapter and none of these will work. Normally when I add an ODBC
adapter for SQL using the Administrative Tools, I can click on the Server
drop-down box and see a list of all the servers available to me. However,
when I click on the server drop-down box using the wizzard in VB.NET, I don't
see any servers. I figure I must be doing something wrong.

Thanks in advance for your help,

MikeS

"Cor Ligthert [MVP]" wrote:
Mike,

The versions VB 2002, VB2003 and VB2005 are working with the provider
wizards different. Than there is that inside those versions some of the
versions work different, therefore can you tell us what you are using?

Cor

"MikeS" <Mi***@discussions.microsoft.com>
I am relatively new to VB.Net so bear with me. I can add an
OleDBDataAdapter
using the Jet 4.0 with no problem (although I'm having problems getting
Date
and Time formats to carry over to the database). However, I can't seem to
get the SQLDataAdapter to work. When I click on the provider tab it
defaults
to "Microsoft OLE DB Provider for SQL Server". On the connection tab I
have
to enter the name of an SQL server name (the drop down doesn't show
anything). By typing in "(local)", I can see the database on my PC. I
can
select the database and test the connection and it tells me "Test
connection
succeeded". I click "OK" to that and "OK" on the "Data Link Properties"
box
and I get the message "Unable to connect to database. It is only possible
to
connect to SQL Server Desktop Engine databases and Microsoft Access
databases
with this version of Visual Studio." Can anyone help me with this?

Thanks,

MikeS


Dec 16 '05 #5
if you are able to see all the servers in "server explorer" of .net
ide, than select the server you want to use and goto the table you want
to use. now drag the table on your windows form and IDE will create
neccesory objects. this might solve your problem. if it dosent work
than at least you will get idea where is the problem. than we can
discuss it further

Dec 16 '05 #6
Mike,

In addition to Luke, are you sure that you have rights to access that
Server?

Cor

"MikeS" <Mi***@discussions.microsoft.com> schreef in bericht
news:AD**********************************@microsof t.com...
The version I am using is:

Microsoft Development Environment 2003 Version 7.1.3088

This version came with a text book I purchased through the local community
college. I was thinking it might be a limited version because of being
distributed through the school system. My instructor tells me that it is
not
a limited version.

I tried adding the adapter using OleDBDataAdapter, SqlDataAdapter, and
OdbcDataAdapter and none of these will work. Normally when I add an ODBC
adapter for SQL using the Administrative Tools, I can click on the Server
drop-down box and see a list of all the servers available to me. However,
when I click on the server drop-down box using the wizzard in VB.NET, I
don't
see any servers. I figure I must be doing something wrong.

Thanks in advance for your help,

MikeS

"Cor Ligthert [MVP]" wrote:
Mike,

The versions VB 2002, VB2003 and VB2005 are working with the provider
wizards different. Than there is that inside those versions some of the
versions work different, therefore can you tell us what you are using?

Cor

"MikeS" <Mi***@discussions.microsoft.com>
>I am relatively new to VB.Net so bear with me. I can add an
>OleDBDataAdapter
> using the Jet 4.0 with no problem (although I'm having problems getting
> Date
> and Time formats to carry over to the database). However, I can't seem
> to
> get the SQLDataAdapter to work. When I click on the provider tab it
> defaults
> to "Microsoft OLE DB Provider for SQL Server". On the connection tab I
> have
> to enter the name of an SQL server name (the drop down doesn't show
> anything). By typing in "(local)", I can see the database on my PC. I
> can
> select the database and test the connection and it tells me "Test
> connection
> succeeded". I click "OK" to that and "OK" on the "Data Link
> Properties"
> box
> and I get the message "Unable to connect to database. It is only
> possible
> to
> connect to SQL Server Desktop Engine databases and Microsoft Access
> databases
> with this version of Visual Studio." Can anyone help me with this?
>
> Thanks,
>
> MikeS


Dec 16 '05 #7
Cor and Luke,

I have admin rights...I can see everything on our LAN. Read my original
question. If I set up and ODBC using Control Panel | Admin Tools | Data
Sources(ODBC), I can click on the Server drop down list and see all SQL
servers that are available.
In VB.NET, when I try to set up the SqlDataAdapter, the list box does NOT
show anything. However, If I type in "(local)", then I can see the databases
listed the drop down list. (local) is one of the options when I set up an
ODBC because I have and instance of SQL server installed on my PC for
development. After entering "(local)" and selecting the appropriate
database, I can click on the Test button and it tells me the test was
successful. After I click OK I get the error message (see my original
question). Let me know if you need more information.

Thanks,

MikeS

"Cor Ligthert [MVP]" wrote:
Mike,

In addition to Luke, are you sure that you have rights to access that
Server?

Cor

"MikeS" <Mi***@discussions.microsoft.com> schreef in bericht
news:AD**********************************@microsof t.com...
The version I am using is:

Microsoft Development Environment 2003 Version 7.1.3088

This version came with a text book I purchased through the local community
college. I was thinking it might be a limited version because of being
distributed through the school system. My instructor tells me that it is
not
a limited version.

I tried adding the adapter using OleDBDataAdapter, SqlDataAdapter, and
OdbcDataAdapter and none of these will work. Normally when I add an ODBC
adapter for SQL using the Administrative Tools, I can click on the Server
drop-down box and see a list of all the servers available to me. However,
when I click on the server drop-down box using the wizzard in VB.NET, I
don't
see any servers. I figure I must be doing something wrong.

Thanks in advance for your help,

MikeS

"Cor Ligthert [MVP]" wrote:
Mike,

The versions VB 2002, VB2003 and VB2005 are working with the provider
wizards different. Than there is that inside those versions some of the
versions work different, therefore can you tell us what you are using?

Cor

"MikeS" <Mi***@discussions.microsoft.com>

>I am relatively new to VB.Net so bear with me. I can add an
>OleDBDataAdapter
> using the Jet 4.0 with no problem (although I'm having problems getting
> Date
> and Time formats to carry over to the database). However, I can't seem
> to
> get the SQLDataAdapter to work. When I click on the provider tab it
> defaults
> to "Microsoft OLE DB Provider for SQL Server". On the connection tab I
> have
> to enter the name of an SQL server name (the drop down doesn't show
> anything). By typing in "(local)", I can see the database on my PC. I
> can
> select the database and test the connection and it tells me "Test
> connection
> succeeded". I click "OK" to that and "OK" on the "Data Link
> Properties"
> box
> and I get the message "Unable to connect to database. It is only
> possible
> to
> connect to SQL Server Desktop Engine databases and Microsoft Access
> databases
> with this version of Visual Studio." Can anyone help me with this?
>
> Thanks,
>
> MikeS


Dec 16 '05 #8
Mike,

I may assume because of the given information by you that your Server is
not the SQLExpress?

Because that does not show up in version 2003, you can fill than the
"MachineName/SQLEXPRESS" in the box or make a connection string by hand for
that (containing as well that information).

I am curious if it was that.

Cor
Dec 16 '05 #9
Hi,

I hope that this will help, it solved my problem by taking Microsoft SQL
Server 2000 Developer edition off and installing the Microsoft SQL Server
2000 Desptop Engine packaged with the Developer edition or available at
http://www.asp.net/msde/Default.aspx?tabindex=0&tabid=1

Because of my lack of technical knowledge I am not sure why it is so or
whether it may help with your problem too.

Good Luck
--
Thanks
Dennis
"MikeS" wrote:
I am relatively new to VB.Net so bear with me. I can add an OleDBDataAdapter
using the Jet 4.0 with no problem (although I'm having problems getting Date
and Time formats to carry over to the database). However, I can't seem to
get the SQLDataAdapter to work. When I click on the provider tab it defaults
to “Microsoft OLE DB Provider for SQL Server”. On the connection tab I have
to enter the name of an SQL server name (the drop down doesn’t show
anything). By typing in “(local)”, I can see the database on my PC. I can
select the database and test the connection and it tells me “Test connection
succeeded”. I click “OK” to that and “OK” on the “Data Link Properties” box
and I get the message “Unable to connect to database. It is only possible to
connect to SQL Server Desktop Engine databases and Microsoft Access databases
with this version of Visual Studio.” Can anyone help me with this?

Thanks,

MikeS

Dec 19 '05 #10
Sorry it took so long for me to respond. The service hasn't been available
for a few days. But I think you have it. I can enter the server manually
and then I can see all the databases on my local server. And the test is
successful. But when I click ok to accept it gives me the message that says
"Unable to connect to database. It is only possible to connect to SQL
Desktop Engine databases and Microsoft Access databases with this version of
Visual Studio." Maybe I'm using the wrong provider or the wrong adapter
type? Are there any patches or updates to the version I'm using that might
help?

Thanks, Mike
"Cor Ligthert [MVP]" wrote:
Mike,

I may assume because of the given information by you that your Server is
not the SQLExpress?

Because that does not show up in version 2003, you can fill than the
"MachineName/SQLEXPRESS" in the box or make a connection string by hand for
that (containing as well that information).

I am curious if it was that.

Cor

Dec 20 '05 #11
Mike,

My question was if you are using the SQLExpress version. That does as well
not show up in my VS2003 wizards. The other servers including SQL server
2005 do.

Cor
Dec 20 '05 #12
Sorry. Guess I didn't understand your question. The only SQL adapters
availble are:

1. Microsoft OLE DB Provider ro SQL Server and
2. SQL Server Replication OLE DB Provider for DTS

Is this what you're asking me?

MikeS

"Cor Ligthert [MVP]" wrote:
Mike,

My question was if you are using the SQLExpress version. That does as well
not show up in my VS2003 wizards. The other servers including SQL server
2005 do.

Cor

Dec 21 '05 #13


I am in the same boat Even though it coonects and tests OK VB.net
Standard Edition will only connect to MS SQL Desktop Edition or Access
Data. We have to upgrade to Professional version.
*** Sent via Developersdex http://www.developersdex.com ***
Jan 5 '06 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: pmud | last post by:
Hi, I need to display columns in a data grid based on 7 different queries. Now I have 32 questions: 1. Is it possble to have 1 single data adapter with 7 queries & 1 data set or do I need to...
5
by: Rick | last post by:
The data adapter wizard allows you to add more than one table, but that doesn't seem to work right when setting up a dataset. Some of the documentation I have read states that only one table...
4
by: William | last post by:
After much frustration I was able to update my data store via code only. Using the data adapter was the only way I was able to set up all the objects written in my code. Basically, I cheated by...
9
by: Brad | last post by:
I have written some code to manipulate data/records in a MASTER (order header) and DETAIL (order details) tables. What I have written is too extensive to post but essentially trying to: 1....
2
by: simon | last post by:
I use my functions to create adapter and fill dataSet: funkcije.createAdapter("c_CPOSkupaj", False, myParams).Fill(ds, "brezReklam") If I use this function another time to fill dataSet with...
7
by: GatorBait | last post by:
Hi all, I am having a problem with my data adapter update command. I have generated the data adapter in the IDE and then I built a dataset. The dataset can get changed in the program and I...
12
by: Randy | last post by:
Hi, Trying to pass along a table row delete to the datasource, but I'm crashing. Here is the code: Private Sub btnDeleteIngr_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles...
6
by: Suresh | last post by:
Hi All, I am fetching a dataset from the database under some condition. After this I create a data table. Traverse in the original dataset & add each row to created data table as it is through...
9
by: SAL | last post by:
Hello, I have a Dataset that I have table adapters in I designed using the designer (DataLayer). I have a business logic layer that immulates the DataLayer which may/may not have additional logic...
6
by: insirawali | last post by:
Hi all, I have this problem, i need to know is there a way i cn use the data adapter's update method in this scenario. i have 3 tables as below create table table1{ id1 int identity(1,1)...
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...
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:
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
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 projectplanning, 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.