Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Access and SQL Server Database Developer

$
0
0

This may be a silly question, but I want to make sure I'm correct. I have a query I created in SQL Server Express 2008 R2 which created a file with the sql extension.

I'm using Access 2010 and I want to link the this sql file with the extension of sql in Access.  I can link to tables and views from SQL Server and able to view it in Access, but I can't open the sql file from Access.  I'm thinking I can only view tables and views in SQL Server from Access?

If that's the case can someone explain what I doing wrong when I try to care a view with a filter and sort:

-------------

This is the error message is get:

Msg 1033, Level 15, State 1, Procedure VideosListFilter, Line 7

The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified.

-------------

use Videos;

go

create view Inventory.VideosListFilter

as

select Type, VideoName

from Inventory.Videos

where Type <> 'xxxx'

     and Type <> 'DVD'

order by Type desc , VideoName asc

------------------

Hope someone can help?


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>