473,412 Members | 2,075 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,412 software developers and data experts.

Data Source error... help!?

Hi folks,

I'm a VB newbie - been using PowerBuilder for 12 years and thought I'd
see how Visual Basic has come along these days.

I'm using MS Visual Studio 2005 Professional, trying to connect to a
SQL Server 2000 Standard (SP4) database on another machine.

For weeks, whenever I've had time to try this, I have gone through the
"Add New Data Source..." wizard, filled in all of the information
appropriately, and at the end, when it should be showing me my tables
and it's at the last screen of the wizard where it says, "Which
database objects do you want in your dataset?", it's showing me the
following error:

--

An error occurred while retrieving the information from the database.

Failed to retrieve data for this request.
An exception occurred while executing a Transact-SQL statement or
batch.
Line 8: Incorrect syntax near "1".

--

This happens consistently. Here is the connection string it's
generating (I've changed the names to protect the guilty):

"Data Source=SERVERNAME;Initial Catalog=databasename;Persist Security
Info=True;User ID=username;Password=userpassword"

I have verified that everything is typed correctly.

Now, what's weird is that as I was playing around with this this
morning, I came across something interesting. It turns out that in the
"Server Explorer" pane, where it lists Database Connections, I can
expand this very same connection and it shows me the tables, views,
SP's, etc... in my database. It's the very same connection, and it
works in the server pane but not in the Data Sources pane.

What the heck!?? :)

Any help would be very much appreciated. I'd like to be sure my
database connections are on solid footing before I go trying to learn
VB in earnest.

Evan

Jul 22 '06 #1
3 1887
Hi guys,

Since there's been no replies on this, and I can find nothing on this
online at all, I'm wondering if I could ask a more basic question, as
I'm still having this issue and can't even begin to use VB until I can
get this fixed :)

Question: Is there *anything* I should be doing *before* I start the
"New Data Source..." wizard to try to connect to the database? I've
installed the SQL Server 2000 connectivity files from the SQL Server
2000 CD, etc... I can connect to my SQL Server from Enterprise Manager.
I just can't connect at all from the New Data Source wizard.

Any ideas? (see below for details)

Thanks :)

Evan

ebrastow wrote:
Hi folks,

I'm a VB newbie - been using PowerBuilder for 12 years and thought I'd
see how Visual Basic has come along these days.

I'm using MS Visual Studio 2005 Professional, trying to connect to a
SQL Server 2000 Standard (SP4) database on another machine.

For weeks, whenever I've had time to try this, I have gone through the
"Add New Data Source..." wizard, filled in all of the information
appropriately, and at the end, when it should be showing me my tables
and it's at the last screen of the wizard where it says, "Which
database objects do you want in your dataset?", it's showing me the
following error:

--

An error occurred while retrieving the information from the database.

Failed to retrieve data for this request.
An exception occurred while executing a Transact-SQL statement or
batch.
Line 8: Incorrect syntax near "1".

--

This happens consistently. Here is the connection string it's
generating (I've changed the names to protect the guilty):

"Data Source=SERVERNAME;Initial Catalog=databasename;Persist Security
Info=True;User ID=username;Password=userpassword"

I have verified that everything is typed correctly.

Now, what's weird is that as I was playing around with this this
morning, I came across something interesting. It turns out that in the
"Server Explorer" pane, where it lists Database Connections, I can
expand this very same connection and it shows me the tables, views,
SP's, etc... in my database. It's the very same connection, and it
works in the server pane but not in the Data Sources pane.

What the heck!?? :)

Any help would be very much appreciated. I'd like to be sure my
database connections are on solid footing before I go trying to learn
VB in earnest.

Evan
Jul 30 '06 #2

ebrastow wrote:
Hi guys,

Since there's been no replies on this, and I can find nothing on this
online at all, I'm wondering if I could ask a more basic question, as
I'm still having this issue and can't even begin to use VB until I can
get this fixed :)

Question: Is there *anything* I should be doing *before* I start the
"New Data Source..." wizard to try to connect to the database? I've
installed the SQL Server 2000 connectivity files from the SQL Server
2000 CD, etc... I can connect to my SQL Server from Enterprise Manager.
I just can't connect at all from the New Data Source wizard.

Any ideas? (see below for details)

Thanks :)

Evan

ebrastow wrote:
Hi folks,

I'm a VB newbie - been using PowerBuilder for 12 years and thought I'd
see how Visual Basic has come along these days.

I'm using MS Visual Studio 2005 Professional, trying to connect to a
SQL Server 2000 Standard (SP4) database on another machine.

For weeks, whenever I've had time to try this, I have gone through the
"Add New Data Source..." wizard, filled in all of the information
appropriately, and at the end, when it should be showing me my tables
and it's at the last screen of the wizard where it says, "Which
database objects do you want in your dataset?", it's showing me the
following error:

--

An error occurred while retrieving the information from the database.

Failed to retrieve data for this request.
An exception occurred while executing a Transact-SQL statement or
batch.
Line 8: Incorrect syntax near "1".

--

This happens consistently. Here is the connection string it's
generating (I've changed the names to protect the guilty):

"Data Source=SERVERNAME;Initial Catalog=databasename;Persist Security
Info=True;User ID=username;Password=userpassword"

I have verified that everything is typed correctly.

Now, what's weird is that as I was playing around with this this
morning, I came across something interesting. It turns out that in the
"Server Explorer" pane, where it lists Database Connections, I can
expand this very same connection and it shows me the tables, views,
SP's, etc... in my database. It's the very same connection, and it
works in the server pane but not in the Data Sources pane.

What the heck!?? :)

Any help would be very much appreciated. I'd like to be sure my
database connections are on solid footing before I go trying to learn
VB in earnest.

Evan
This is an odd error. Have you tried the MS forums?

..NET Framework Data Access and Storage
<URL:http://forums.microsoft.com/msdn/showforum.aspx?forumid=45&siteid=1>

B.

Jul 31 '06 #3
Thanks Brian... I done that yet, but will do so tonight.

Thanks!

Evan

Brian Tkatch wrote:
ebrastow wrote:
Hi guys,

Since there's been no replies on this, and I can find nothing on this
online at all, I'm wondering if I could ask a more basic question, as
I'm still having this issue and can't even begin to use VB until I can
get this fixed :)

Question: Is there *anything* I should be doing *before* I start the
"New Data Source..." wizard to try to connect to the database? I've
installed the SQL Server 2000 connectivity files from the SQL Server
2000 CD, etc... I can connect to my SQL Server from Enterprise Manager.
I just can't connect at all from the New Data Source wizard.

Any ideas? (see below for details)

Thanks :)

Evan

ebrastow wrote:
Hi folks,
>
I'm a VB newbie - been using PowerBuilder for 12 years and thought I'd
see how Visual Basic has come along these days.
>
I'm using MS Visual Studio 2005 Professional, trying to connect to a
SQL Server 2000 Standard (SP4) database on another machine.
>
For weeks, whenever I've had time to try this, I have gone through the
"Add New Data Source..." wizard, filled in all of the information
appropriately, and at the end, when it should be showing me my tables
and it's at the last screen of the wizard where it says, "Which
database objects do you want in your dataset?", it's showing me the
following error:
>
--
>
An error occurred while retrieving the information from the database.
>
Failed to retrieve data for this request.
An exception occurred while executing a Transact-SQL statement or
batch.
Line 8: Incorrect syntax near "1".
>
--
>
This happens consistently. Here is the connection string it's
generating (I've changed the names to protect the guilty):
>
"Data Source=SERVERNAME;Initial Catalog=databasename;Persist Security
Info=True;User ID=username;Password=userpassword"
>
I have verified that everything is typed correctly.
>
Now, what's weird is that as I was playing around with this this
morning, I came across something interesting. It turns out that in the
"Server Explorer" pane, where it lists Database Connections, I can
expand this very same connection and it shows me the tables, views,
SP's, etc... in my database. It's the very same connection, and it
works in the server pane but not in the Data Sources pane.
>
What the heck!?? :)
>
Any help would be very much appreciated. I'd like to be sure my
database connections are on solid footing before I go trying to learn
VB in earnest.
>
Evan

This is an odd error. Have you tried the MS forums?

.NET Framework Data Access and Storage
<URL:http://forums.microsoft.com/msdn/showforum.aspx?forumid=45&siteid=1>

B.
Aug 4 '06 #4

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

Similar topics

12
by: pmud | last post by:
Hi, I am using teh following code for sorting the data grid but it doesnt work. I have set the auto generate columns to false. & set the sort expression for each field as the anme of that...
2
by: hch | last post by:
dataAdapter.Update(data, "TableName") won’t work! I was about to deploy my first website on the Internet only to discover that the dataAdapter.Update() throws the Server Error in the third...
4
by: Dan | last post by:
I'm trying to creat a data structure, that can be either a integer, double, string, or linked list. So I created the following, but don't know if it is the data structure itself causing problems,...
3
by: Thad | last post by:
I'm new to C# and I was trying to create a Crystal Report. I've designed a simple report and I've used several methods for attaching fields to the report at design time. I've used a DataSet that...
5
by: rogsonl | last post by:
My computer was moved last week, and the company changed the network groups we work on. As a result, one of the main benefits from Whidbey (database connectivity) no longer works. Situation: 1....
0
by: pd123 | last post by:
I'm new to C# and .net and I'm trying to create a form that will register users in a sql server database. I have the following code but when I run the code I get an error " The name 'Peter' is...
10
by: aaronrm | last post by:
I have a real simple cross-tab query that I am trying to sum on as the action but I am getting the "data type mismatch criteria expression" error. About three queries up the food chain from this...
2
by: psychomad | last post by:
Please, can someone help me out to solve this error, i've been searching throughout my codes and yet i didnt succeed in finding the error!!!! The Error is: Server Error in '/' Application....
4
by: Rick | last post by:
I've moved code from a stage machine to the production machine, exact same code works fine on the stage machine, they are both windows 2003 servers, I'm getting a "Cannot generate SSPI context"...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
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,...
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.