473,804 Members | 3,182 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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=SERVERNA ME;Initial Catalog=databas ename;Persist Security
Info=True;User ID=username;Pas sword=userpassw ord"

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 1904
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=SERVERNA ME;Initial Catalog=databas ename;Persist Security
Info=True;User ID=username;Pas sword=userpassw ord"

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=SERVERNA ME;Initial Catalog=databas ename;Persist Security
Info=True;User ID=username;Pas sword=userpassw ord"

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.microsof t.com/msdn/showforum.aspx? forumid=45&site id=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=SERVERNA ME;Initial Catalog=databas ename;Persist Security
Info=True;User ID=username;Pas sword=userpassw ord"
>
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.microsof t.com/msdn/showforum.aspx? forumid=45&site id=1>

B.
Aug 4 '06 #4

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

Similar topics

12
2394
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 field... This grid displayes results based on users search.. public static int numberDiv; private void Page_Load(object sender, System.EventArgs e) {
2
4277
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 underline. It was working fine before. ConnectionString in Web.config: ----------------------------------------- <?xml version="1.0" encoding="utf-8" ?> <configuration>
4
2477
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, or something I am doing in the rest of the program. This is the data structure. struct node { char type;
3
6750
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 I've created by add new item, and I've used the add command and used an actual SQL statement, and I've used the OLEDB ADO and connected to my database (Access) tables directly. I have code that will create a query, use that query with an Adapter...
5
2888
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. I open a new project based on a windows form 2. I click on "data" and then "Add New Data Source" then I click on next within the wizard 3. I have 3 choices Database, Local Database, Web service and Object. 4. I choose Database, click next and get...
0
3010
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 not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted. Where Peter is the value entered in the textbox for firstname (fnameTBox) I'm sure the problem is something obvious but I...
10
6238
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 cross-tab query I am using a simple query with no grouping where I am filtering some data out in the criteria line. I have been out of access for a couple years but I remember in the past I had a solution for this but I can't remember. Any help...
2
9009
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. -------------------------------------------------------------------------------- Data type mismatch in criteria expression.
4
4157
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" error, there are other sites on this server that access the same database. IIS is the same, permissions to the database are correct. Any suggestions? Error:
0
9708
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
9587
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10588
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...
1
10324
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
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...
1
7623
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
6857
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
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.