faizan ahmad

Usually the things which were not a straight Google

  Home  |   Contact  |   Syndication    |   Login
  15 Posts | 0 Stories | 55 Comments | 0 Trackbacks

News

Archives

Post Categories

.NET

ASP.NET

I got this error on production for a report which was working fine in Dev and it took me a while to figure out the cause.

Report's Data Source was pointing to a SQL Server View, when I looked at the SQL Query ( Database - > Show SQL Query ), I noticed that Database name was there with view name: "DbName.dbo.ViewName"

I did a lot of googling, trying to figure out a way to change this behaviour and have just "dbo.ViewName" in SQL, but in vain.

For now, I have fixed it by putting the SQL in the view within a Command in Crystal Report and its working.

Its kind of OK for this report as view had a small SQL and report is pretty small.

 

I would love to find REAL solution though, Crystal Reports does not always put the DBName with View.

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted on Thursday, September 17, 2009 10:45 AM

Feedback

# re: Error:'This field name is not known' in Crystal Report when using a SQL View 3/15/2010 7:32 AM Lovjith
Just Try to Remove the Database from the Crystal Report. It will show you under which formula your the invalid field lies.

# re: Error:'This field name is not known' in Crystal Report when using a SQL View 10/28/2011 8:27 AM Vidhya
Thanks for ur info

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: