Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Limit length of string returned from FORMAT

Author  Topic 

vesben
Starting Member

7 Posts

Posted - 2013-12-23 : 05:47:36
Hallo,

When I use for instance:
SELECT
FORMAT(BegDate,"dd.mm.yyyy")
FROM TABLE1
result is - |BegDate|22.12.2013.......................|

Is there any way to limit length of string returned
from FORMAT function .

Database is on ACCESS.


SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2013-12-23 : 08:04:56
Access uses double quotes for strings, not single quote as for SQL Server.



Microsoft SQL Server MVP, MCT, MCSE, MCSA, MCP, MCITP, MCTS, MCDBA
Go to Top of Page
   

- Advertisement -