SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 what role does quotes serve?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AdamWest
Constraint Violating Yak Guru

USA
357 Posts

Posted - 07/11/2013 :  14:01:32  Show Profile  Reply with Quote
This is what the crystal reports makes, when you enter the tables and link. I also have some sql that i pasted there without the quotes. THey both run. Only isssue I have is
that my sql which is a view does not update on demand from the server. IOW, they enter a new row. and it's not immediatlyin the crystal report. I asked the user if he can logout and back in and he says that he doesn't have to do that with other crystal reports.

SELECT "OEIND94"."IDDOCD" AS INV_DATE,
"OEIND94"."IDORD#" AS ORD_NUM,
"OEIND94"."IDORDT" AS ORD_TYPE,
"OEIND94"."IDPRLC" AS PROD_FAMILY,
"OEIND94"."IDPR$C" AS PRICE_CODE,
"OEIND94"."IDCOM#",

Edited by - AdamWest on 07/11/2013 14:04:24

TG
Flowing Fount of Yak Knowledge

USA
6062 Posts

Posted - 07/11/2013 :  14:47:34  Show Profile  Reply with Quote
you have two unrelated questions here:

"quotes" - they can be used in place of brackets [] to surround object names. In this case table identifiers and column identifiers.
But to use quotes you need to insure that SET QUOTED IDENTIFIER is ON. I always just use the square brackets.

"view does not update on demand from the server" -
A view is simply a compiled SELECT statement so by definition it represents the data in the underlying tables. If there is some latency between the updates and the report output then it sounds like the updates may either be on another server which is then log shipped or replicated to the reporting server, or there are rollup jobs that move data from commit-to tables to reporting tables. Something like that.

Be One with the Optimizer
TG
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000