Showing posts with label real. Show all posts
Showing posts with label real. Show all posts

Wednesday, March 21, 2012

Open Table Query View Only Cross Joins!URGENT

Does anyone know why when I open a table in the enterprise manager in the
query view I don't see the real table name I see table_1 and any query built
that way only produces cross joins any ideas?EM enumerates the table names so that you can refer to more than one alias
of the same table in self-joins.
EM will automatically generate an INNER JOIN in the designer if a foreign
key exists between two of the tables. If no usable foreign key exists then
the query defaults to a CROSS JOIN. You can still add or change the join
type and criteria yourself.
--
David Portas
SQL Server MVP
--|||Because Enterprise Manager tries to think for you. As David states, you can
toggle the SQL button and construct the query however you really want it.
Or, you can use Query Analyzer -- Enterprise Manager is rarely the best
choice for viewing/manipulating data.
See http://www.aspfaq.com/2455
--
http://www.aspfaq.com/
(Reverse address to reply.)
"Chris Calhoun" <calhoun_chris@.hotmail.com> wrote in message
news:u#EzQK9qEHA.3900@.TK2MSFTNGP10.phx.gbl...
> Does anyone know why when I open a table in the enterprise manager in the
> query view I don't see the real table name I see table_1 and any query
built
> that way only produces cross joins any ideas?
>

Open Table Query View Only Cross Joins!URGENT

Does anyone know why when I open a table in the enterprise manager in the
query view I don't see the real table name I see table_1 and any query built
that way only produces cross joins any ideas?
EM enumerates the table names so that you can refer to more than one alias
of the same table in self-joins.
EM will automatically generate an INNER JOIN in the designer if a foreign
key exists between two of the tables. If no usable foreign key exists then
the query defaults to a CROSS JOIN. You can still add or change the join
type and criteria yourself.
David Portas
SQL Server MVP
|||Because Enterprise Manager tries to think for you. As David states, you can
toggle the SQL button and construct the query however you really want it.
Or, you can use Query Analyzer -- Enterprise Manager is rarely the best
choice for viewing/manipulating data.
See http://www.aspfaq.com/2455
http://www.aspfaq.com/
(Reverse address to reply.)
"Chris Calhoun" <calhoun_chris@.hotmail.com> wrote in message
news:u#EzQK9qEHA.3900@.TK2MSFTNGP10.phx.gbl...
> Does anyone know why when I open a table in the enterprise manager in the
> query view I don't see the real table name I see table_1 and any query
built
> that way only produces cross joins any ideas?
>

Open Table not editable, anyone know of a workaround?

I'm wondering if we can get official word on the post below:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=578917&SiteID=1

Its a real problem with no solution available. So far I can't find a work around and concur with the final analysis.

<A quick summary>

In SQL 2000 Enterprise Manager, one was able to edit and commit data

on-the-fly directly from the results pane. Action->Open

Table->Query with the SQL Pane shown gives you an interface similar

to Query Analyzer. One could write a complex select statement with

where clauses and joins, and the results pane would show the resulting

data.

The question is this:

How do you edit data in the results grid in SQL 2005 Management Studio

as you would in SQL 2000 Enterprise Manager when you Open Table via

Query (Action->Open Table->Query), and what option/configuration

setting or panel would you need to enable/show to make this a permanent

feature? In other words, what is the equivalent of Action->Open

Table->Query in Management Studio?


I also found this link that makes me wonder if its a setting: (search for "open table")
http://msdn.microsoft.com/SQL/community/webcasts/ManagementStudioQandA.aspx

<conclusion>

So far it seems it can't be done. Like they removed the feature in favor of application developers creating apps to take care of this for you, which is greatly hampering our environment.

Any official word?You can edit results in the results pane of the View designer.

From Object Explorer, right-click on the Views folder of a

database. Choose New View... . Type your query into the SQL

pane of the designer. Click on the red exclamation point to

execute your query. If the query results are updatable, you

can update them from this results pane.

If you close the criteria and diagram panes, it will be

nicer to look at.

That said, I do not recommend doing this. The view designer

has a bad habit of changing the SQL you type in, and it's

safer to make updates through SQL statements, because if you

slip up, you can at least see what you did by reading the SQL

you just executed, and you can use BEGIN TRAN and COMMIT/ROLLBACK

when you want.

Steve Kass

Drew University

www.stevekass.com

Greenmtnsun@.discussions.microsoft.com wrote:

> This post has been edited either by the author or a moderator in the

> Microsoft Forums: http://forums.microsoft.com I'm wondering if we can

> get official word on the post below:

>

> http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=578917&SiteID=1

>

>

> Its a real problem with no solution available. So far I can't find a

> work around and concur with the final analysis.

>

>

>

>

> In SQL

> 2000 Enterprise Manager, one was able to edit and commit data

> on-the-fly

> directly from the results pane. Action->Open Table->Query with the SQL

> Pane shown gives you an interface similar to Query Analyzer. One could

> write a complex select statement with where clauses and joins, and the

> results pane would show the resulting data.

>

> The question is this: How do you edit data in the results grid in SQL

> 2005 Management Studio as you would in SQL 2000 Enterprise Manager when

> you Open Table via Query (Action->Open Table->Query), and what

> option/configuration setting or panel would you need to enable/show to

> make this a permanent feature? In other words, what is the equivalent of

> Action->Open Table->Query in Management Studio?

>

>

> I also found this link that makes me wonder if its a setting: (search

> for "open table")

> http://msdn.microsoft.com/SQL/community/webcasts/ManagementStudioQandA.a

> spx

>

>

>

> So far it seems it can't be done. Like they removed the feature in favor

> of application developers creating apps to take care of this for you,

> which is greatly hampering our environment.

>

> Any official word?

>

>|||I'm going to have to beg your patience because I am finding this issue very difficult to research. As you can see in this post below, good natured people like yourself have some natural inclination to feel they resolved the question just like you just did. I can't say this any other way, it does NOT work. My frustation with this issue is that if you see the thread below, it got dropped because back and forth people came in the thread thinking they resolved it, and they didn't, and eventually it fell by the wayside. Try multiple tables. It worked in SQL 2000 and does NOT in 2005. We need help.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=578917&SiteID=1

With all due respect. Is there anyone official here who can confirm this? Who can provide

work arounds? Who can see if they can get this resolved in the next SP?|||https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=148844

I'm bummed by Microsoft pulling this long standing precedent from its software. It seems like a bug in their thinking but I think I found my answer.

Does anyone know of a peice of software that we can get around this? We need suggestions.

Thanks,
Keith

Saturday, February 25, 2012

only 1 data row shows up in preview - should have 10

I am relatively new to Reporting services. I have a real basic dataset
select * from tbl1
tbl1 contains 10 rows and 6 fields. I have 6 textboxes in the layout view.
I linked each textbox to a field in the dataset. When I go to preview, I
only see one row of the 10 rows and only 1 page. What do I need to do to
show the rest of the rows (on the same page)? Any suggestions appreciated.
Thanks,
RichWell, I found part of my problem. When I right-click on a textbox I select
"expression" which brings up a dialog box with a variety of selections. I
want to select Fields but see a message that the report has not been linked
to a dataset. So I go to the Dataset option and select fields from there.
But each of those fields has the "First" function leading the expression.
So now my question is: how do you link a dataset to the report?
"Rich" wrote:
> I am relatively new to Reporting services. I have a real basic dataset
> select * from tbl1
> tbl1 contains 10 rows and 6 fields. I have 6 textboxes in the layout view.
> I linked each textbox to a field in the dataset. When I go to preview, I
> only see one row of the 10 rows and only 1 page. What do I need to do to
> show the rest of the rows (on the same page)? Any suggestions appreciated.
> Thanks,
> Rich|||I think I figured this out. You have to add a table to the layout from the
Toolbox and that is where select your dataset.
Just posting for posterity
"Rich" wrote:
> Well, I found part of my problem. When I right-click on a textbox I select
> "expression" which brings up a dialog box with a variety of selections. I
> want to select Fields but see a message that the report has not been linked
> to a dataset. So I go to the Dataset option and select fields from there.
> But each of those fields has the "First" function leading the expression.
> So now my question is: how do you link a dataset to the report?
>
> "Rich" wrote:
> > I am relatively new to Reporting services. I have a real basic dataset
> >
> > select * from tbl1
> >
> > tbl1 contains 10 rows and 6 fields. I have 6 textboxes in the layout view.
> > I linked each textbox to a field in the dataset. When I go to preview, I
> > only see one row of the 10 rows and only 1 page. What do I need to do to
> > show the rest of the rows (on the same page)? Any suggestions appreciated.
> >
> > Thanks,
> > Rich