Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access to SQL conversion

Status
Not open for further replies.
Apr 11, 2003
50
US
I have an Access crosstab query that I need to make into a stored proc in SQL. My query looks like this:
TRANSFORM Count(Programs.Unit_No) AS [The Value]
SELECT Programs.LicNo, Count(Programs.Unit_No) AS [Total Of Unit_No]
FROM Programs
GROUP BY Programs.LicNo
PIVOT Programs.Program_No;

SQL will not accept Transform, or Pivot.... How do I correct this to work with SQL?
 
Do you have the database in SQL Server, or did you create a linked server to the Access DB ? Why don't you just explain what you want to do with which fields, that 'll be easier. This is, after all, no Access forum ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top