dbTalk Databases Forums  

SQL Server Date

microsoft.public.sqlserver.server microsoft.public.sqlserver.server


Discuss SQL Server Date in the microsoft.public.sqlserver.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Egbon V.
 
Posts: n/a

Default SQL Server Date - 10-16-2003 , 08:23 AM






Hi all,

Is it possible to open a connection to SQL Server and set the date
format once for the connection? I want to set the default date format
for all sql queries I'm running, instead of using CONVERT(varchar, date,
20)

Thanks,

Egbon

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #2  
Old   
Tibor Karaszi
 
Posts: n/a

Default Re: SQL Server Date - 10-16-2003 , 08:31 AM






No, not for output. The available option SET DATEFORMAT does only determine how input is interpreted
for the numeric (separated) format.

--
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=djq&as ugroup=microsoft.public.sqlserver


"Egbon V." <vnjowusi (AT) gosps (DOT) com> wrote

Quote:
Hi all,

Is it possible to open a connection to SQL Server and set the date
format once for the connection? I want to set the default date format
for all sql queries I'm running, instead of using CONVERT(varchar, date,
20)

Thanks,

Egbon

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply With Quote
  #3  
Old   
Egbon V.
 
Posts: n/a

Default Re: SQL Server Date - 10-16-2003 , 05:12 PM




Thanks.

Egbon

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.