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

SqlDataSourceControl and AdventureWorks database

Hello

I am trying to use the SqlDaaSource wizard to populate my GridView. If I let
the wizard generate the SQL, then I get an "Invalid object name" error - the
obbject being the table name (Prodcuts) in my case.

This error happens because the AdventureWorks tables belong to Schemas that
the SqlDataSoruce wizard ignores i.e. does not generate the correct SQL.

Anyone have a fix for this problem?

Thanks
Mar 14 '07 #1
2 1547

"Amir" <Am**@discussions.microsoft.comwrote in message
news:6A**********************************@microsof t.com...
Hello

I am trying to use the SqlDaaSource wizard to populate my GridView. If I
let
the wizard generate the SQL, then I get an "Invalid object name" error -
the
obbject being the table name (Prodcuts) in my case.

This error happens because the AdventureWorks tables belong to Schemas
that
the SqlDataSoruce wizard ignores i.e. does not generate the correct SQL.

Anyone have a fix for this problem?

Thanks
You will have to go into the code created by the SQLDataSource and append
the schema to the table name. This is unfortunately the new QA provided by
MS in their new products.

Lloyd Sheen

Mar 14 '07 #2
Hi Lloyd

Thanks for the reply. That's what I have been doing.

And Microsoft wonders why people are moving to OpenSource! Instead of
"innovating" with new products, they ought to fix their existing ones.

Amir
"Lloyd Sheen" wrote:
>
"Amir" <Am**@discussions.microsoft.comwrote in message
news:6A**********************************@microsof t.com...
Hello

I am trying to use the SqlDaaSource wizard to populate my GridView. If I
let
the wizard generate the SQL, then I get an "Invalid object name" error -
the
obbject being the table name (Prodcuts) in my case.

This error happens because the AdventureWorks tables belong to Schemas
that
the SqlDataSoruce wizard ignores i.e. does not generate the correct SQL.

Anyone have a fix for this problem?

Thanks

You will have to go into the code created by the SQLDataSource and append
the schema to the table name. This is unfortunately the new QA provided by
MS in their new products.

Lloyd Sheen
Mar 14 '07 #3

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

Similar topics

5
by: lkrubner | last post by:
I have a webserver through Rackspace. I create a domain. I create an FTP user. I upload some files. I create a database called testOfSetupScript and then I create a database user named setup. I...
1
by: Learner | last post by:
Hi there, I have installed Sql server 2005 developer on my machine which already has a Sql server 2000 installed on. Now i am trying to query the Sqlserver 2005 data(Ex: from Person.Address...
0
by: kcm | last post by:
Hello all, Not sure if this is the right place to post this. I ran up the samples for adventureworks for MSSQL2005. I setup the shop front. The web site is up. But when I try to register a new...
1
by: longinos | last post by:
I am using ms sql server 2005 Enterprise Evaluation Edition, and I can use the other sample dtabases, like pubs, northwind, but not adventureworks I tried diffrent ways, I am very new to this, and...
1
by: john20 | last post by:
Hi All, I have recently installed Sql server 2005 on my machine and i am trying to connect to database for retreiving table information. but it is giving me below error : An error has...
1
by: BobLewiston | last post by:
I heard of a sample database called Pub. Does anyone know about it? Is it an SQL Server sample database that, unlike AdventureWorks, doesn't require SQL Server's Full-text Search capability to...
1
by: BobLewiston | last post by:
After some initial problems with the prerequisite installation of SQL Server Express with Advanced Features, I tried to install AdventureWorks sample databases. Upon launch of the installer,...
0
by: BobLewiston | last post by:
How can I uninstall the AdventureWorks sample databases? They're not an application, so I can't do it via Add / Remove Programs or a downloaded uninstaller. They're apparently corrupt, and they've...
6
by: BobLewiston | last post by:
I've been working with SQL2008 AdventureWorks; specifically database AdventureWorks, table Person.Contact. I experimented with using a DataGrid control's DataSource property to add a new project...
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?
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
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
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
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,...
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.