Hi all,
Have been using SqlDataSources for a while now. Reinstalled machine last
week, now running Server 2003. Installed both SqlServer 2000 and 2005 with
instance-names "sql2000" and "sql2005". Also installed both Visual Studio
2003 and 2005. VS2005 is the Release Candidate, and SQL2005 is the September
CTP.
During SqlDataSource configuration wizard, i can test connection and all is
fine. I can see table names and views in the "query builder" thingie, but
once i do the "Test Query" things go bad. I get an "Invalid Object Name" on
the table from which the datasource should retrieve its data.
I have posted small video of me producing the error. Any input is welcomed.
I suspect the side-by-side 2000 and 2005 installation, but it _shouldn't_ be
a problem, should it?
The video is here: http://www.netkoder.dk/error.wmv
Again, thanks for any input.
J.Jespersen
Denmark 4 1516
Nice work on the video! It presented a lot of information, and was located
on your own server, thus preserving good Netiquette!
The "invalid object name" error indicates that the named object (in this
case "Contact" was not identifiable. And I noticed a glaring omission in the
video. You never looked at the Connection String.
A SQL Server Connection String may or may not reference an "InitialCatalog ."
The InitialCatalog is the database that the connection defines as the
default database for queries. In a sense, it is like an "Imports" ("using")
directive in your programming code. Having one makes it unnecessary to refer
to the database by name, and simply use the names of objects in the database
without the full namespace.
Your query was:
"Select * from [Contacts]"
Now, if "dbo.AdventureW orks" was the InitialCatalog, the table should have
been found. So, the first thing I would do is check the ConnectionStrin g for
the "InitialCatalog " in it.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
"J. Jespersen" <jd*@jdj.dk> wrote in message
news:eh******** ******@TK2MSFTN GP15.phx.gbl... Hi all,
Have been using SqlDataSources for a while now. Reinstalled machine last week, now running Server 2003. Installed both SqlServer 2000 and 2005 with instance-names "sql2000" and "sql2005". Also installed both Visual Studio 2003 and 2005. VS2005 is the Release Candidate, and SQL2005 is the September CTP.
During SqlDataSource configuration wizard, i can test connection and all is fine. I can see table names and views in the "query builder" thingie, but once i do the "Test Query" things go bad. I get an "Invalid Object Name" on the table from which the datasource should retrieve its data.
I have posted small video of me producing the error. Any input is welcomed. I suspect the side-by-side 2000 and 2005 installation, but it _shouldn't_ be a problem, should it? The video is here: http://www.netkoder.dk/error.wmv
Again, thanks for any input.
J.Jespersen Denmark
Nice work on the video! It presented a lot of information, and was located on your own server, thus preserving good Netiquette!
Thanks. I did cross-post, however, so ease up on the praise ;-)
And I noticed a glaring omission in the video. You never looked at the Connection String.
Having double-checked, I can confirm that the "initial catalog" property of
the connectionstrin g _was_ set to AdventureWorks, thus preserving totalt
empusslement. (is that a word?)
I've posted the site (as I created it as file-based, not http/ftp) in a .zip
file @ http://www.netkoder.dk/test.zip
Just in case anyone cares :-)
J.Jespersen
A SQL Server Connection String may or may not reference an "InitialCatalog ." The InitialCatalog is the database that the connection defines as the default database for queries. In a sense, it is like an "Imports" ("using") directive in your programming code. Having one makes it unnecessary to refer to the database by name, and simply use the names of objects in the database without the full namespace.
Your query was:
"Select * from [Contacts]"
Now, if "dbo.AdventureW orks" was the InitialCatalog, the table should have been found. So, the first thing I would do is check the ConnectionStrin g for the "InitialCatalog " in it.
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer Ambiguity has a certain quality to it.
"J. Jespersen" <jd*@jdj.dk> wrote in message news:eh******** ******@TK2MSFTN GP15.phx.gbl... Hi all,
Have been using SqlDataSources for a while now. Reinstalled machine last week, now running Server 2003. Installed both SqlServer 2000 and 2005 with instance-names "sql2000" and "sql2005". Also installed both Visual Studio 2003 and 2005. VS2005 is the Release Candidate, and SQL2005 is the September CTP.
During SqlDataSource configuration wizard, i can test connection and all is fine. I can see table names and views in the "query builder" thingie, but once i do the "Test Query" things go bad. I get an "Invalid Object Name" on the table from which the datasource should retrieve its data.
I have posted small video of me producing the error. Any input is welcomed. I suspect the side-by-side 2000 and 2005 installation, but it _shouldn't_ be a problem, should it? The video is here: http://www.netkoder.dk/error.wmv
Again, thanks for any input.
J.Jespersen Denmark
Btw, everything works out fine if I connect to the SQL2000 instance on the
same server.
But not the 2005 instance.
J.Jespersen
Well, J, I thought I'd point out a good way to make a lot of information
about a problem available without overloading the news server, so, as you
corrected the cross-posting issue, you are indeed a praiseworthy fellow!
Particularly as you did it again with the link to the Zip file. :)
At first blush, everything looked Kosher. Your Connection String:
"Data Source=.\SQL200 5;Initial Catalog=Adventu reWorks;Integra ted
Security=True" providerName="S ystem.Data.SqlC lient"
is correct, as far as the InitialCatalog is concerned. It does reference the
AdventureWorks InitialCatalog. After looking over the very simple code you
generated, I can only guess that the issue may have something to do with
permissions. I must confess that I haven't played much with ASP.Net 2.0, so
I'm not entirely sure what permissions are being used at what point in the
process of creating a GridView in an ASP.Net Page. I would think that
setting up the Connection in the Web.Config file was done under your user
account, and that setting up the GridView in the Page was done using the
user account under which your ASP.Net application is running. You're using a
Trusted Connection, so that means that the account is a Windows account, not
a SQL Server account (at least with SQL Server 2000 this is the case; I
haven't used SQL Server 2005 yet).
You might want to check the specific permissions granted to that account in
the AdventureWorks database.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
"J. Jespersen" <jd*@jdj.dk> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. .. Nice work on the video! It presented a lot of information, and was located on your own server, thus preserving good Netiquette!
Thanks. I did cross-post, however, so ease up on the praise ;-)
And I noticed a glaring omission in the video. You never looked at the Connection String.
Having double-checked, I can confirm that the "initial catalog" property of the connectionstrin g _was_ set to AdventureWorks, thus preserving totalt empusslement. (is that a word?) I've posted the site (as I created it as file-based, not http/ftp) in a .zip file @ http://www.netkoder.dk/test.zip
Just in case anyone cares :-)
J.Jespersen A SQL Server Connection String may or may not reference an "InitialCatalog ." The InitialCatalog is the database that the connection defines as the default database for queries. In a sense, it is like an "Imports" ("using") directive in your programming code. Having one makes it unnecessary to refer to the database by name, and simply use the names of objects in the database without the full namespace.
Your query was:
"Select * from [Contacts]"
Now, if "dbo.AdventureW orks" was the InitialCatalog, the table should have been found. So, the first thing I would do is check the ConnectionStrin g for the "InitialCatalog " in it.
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer Ambiguity has a certain quality to it.
"J. Jespersen" <jd*@jdj.dk> wrote in message news:eh******** ******@TK2MSFTN GP15.phx.gbl... Hi all,
Have been using SqlDataSources for a while now. Reinstalled machine last week, now running Server 2003. Installed both SqlServer 2000 and 2005 with instance-names "sql2000" and "sql2005". Also installed both Visual Studio 2003 and 2005. VS2005 is the Release Candidate, and SQL2005 is the September CTP.
During SqlDataSource configuration wizard, i can test connection and all is fine. I can see table names and views in the "query builder" thingie, but once i do the "Test Query" things go bad. I get an "Invalid Object Name" on the table from which the datasource should retrieve its data.
I have posted small video of me producing the error. Any input is welcomed. I suspect the side-by-side 2000 and 2005 installation, but it _shouldn't_ be a problem, should it? The video is here: http://www.netkoder.dk/error.wmv
Again, thanks for any input.
J.Jespersen Denmark
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: WindAndWaves |
last post by:
Hi Gurus
The page below has a strange error. It seems to be working very well, just
when you enter 8 or 9 for day, month or year then you get an error. I
really have no idea where that is coming from. Can you help?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
|
by: sofakingfree |
last post by:
This error is driving me nuts. The code below will run perfectly when
it has a breakpoint. But as soon as I remove the breakpoint and run it
normally outside of debug mode I get a strange error message that says:
"Microsoft Office PowerPoint has encountered a problem and needs to
close. We are sorry for the inconvience.
If you were in the middle of something, the information you were
working on might be lost."
|
by: Evangelista Sami |
last post by:
hello
i have this strange error message that i dont understand :
_search.c: In function `_depth_search':
_search.c:218: unable to find a register to spill in class `AREG'
_search.c:218: this is the insn:
(insn 83 82 84 (parallel )
(reg:SI 1 edx )))
(set (reg:SI 1 edx )
|
by: Piedro |
last post by:
Can someone reproduce the following error?
I'm using the module at the bottom of my post to owner draw a menu
items, I call the module from a form like this:
Private Sub mnuOpen_DrawItem(ByVal sender As Object, ByVal e As
System.Windows.Forms.DrawItemEventArgs) Handles mnuOpen.DrawItem
Dim Ic As New Icon(Application.StartupPath & "\101_72.ico")
DrawItems(e, mnuOpen, Ic)
End Sub
|
by: Richard Marsden |
last post by:
Here's another strange error I'm getting when using ODBC to access
MySQL. This time ODBC is being more informative, although all the
documentation I've looked at, claims that the function in question
(SQLSetPos) should not return the error!
I have a result set that has been opened for update.
I am trying to delete the current row with a call to SQLSetPos:
rc = SQLSetPos( hStmt, nRow, SQL_DELETE, SQL_LOCK_NO_CHANGE );
| |
by: Martin Joergensen |
last post by:
Hi,
I've encountered a really, *really*, REALLY strange error :-)
I have a for-loop and after 8 runs I get strange results...... I
mean: A really strange result....
I'm calculating temperatures. T = 20 degrees at all
times.... The 2D T-array looks like this:
|
by: Mike C# |
last post by:
Hi all,
I keep getting a strange error and can't pin it down. The message is:
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
However I'm not purposely requesting that the Runtime terminate in an
"unusual way." The line that is causing me headaches is:
|
by: =?Utf-8?B?R2Vvcmdl?= |
last post by:
Hello everyone,
I am migrating my C++ COM server to managed code (C# COM server). I am using
the same client to use the same COM class in COM server. The C++ version COM
server works properly, but when using the C# COM server, there is a strange
error indicating dll is not installed correctly (data link error).
I have tried to delete the DLL at the same time to test whether the DLL
could be found correctly when the client is invoking...
|
by: muddasirmunir |
last post by:
I am using vb6.
Now , I am facing a very strange error. I think it might be due to some other problem rather coding not sure.
Actually , i have put a datepicker in the form and at the load even of form i had use the code
Date1.value= Date
|
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...
|
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,...
| |
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...
|
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,...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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();...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |