all groups > sql server programming > february 2005 >
You're in the

sql server programming

group:

SQL Server system date?



Re: SQL Server system date? Kalen Delaney
2/22/2005 1:01:01 PM
sql server programming: SELECT getdater() is the date at the server, not the workstation. Why do you
think it's the workstation?

--
HTH
----------------
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com


[quoted text, click to view]

RE: SQL Server system date? Alejandro Mesa
2/22/2005 1:07:03 PM
[quoted text, click to view]

Not really, It returns the date from the server where sql server is installed.


AMB


[quoted text, click to view]
Re: SQL Server system date? KH
2/22/2005 1:27:03 PM
Is the SQL server you're connected to installed on your workstation?

select serverproperty('MachineName')



[quoted text, click to view]
Re: SQL Server system date? Alejandro Mesa
2/22/2005 1:27:05 PM
John,

Are you connecting to an instance installed in your PC?, if so, then your pc
is the server an the workstation.


AMB


[quoted text, click to view]
Re: SQL Server system date? David Portas
2/22/2005 1:32:13 PM
[quoted text, click to view]

No. Kalen *writes* the docs!

--
David Portas
SQL Server MVP
--
Re: SQL Server system date? CBretana
2/22/2005 1:55:08 PM
He was grascious enough to admit he was wrong and apologize. In my book,
that puts him a few notches above quite a few visitors to these forums!!


[quoted text, click to view]
Re: SQL Server system date? Louis Davidson
2/22/2005 3:36:45 PM
After flaming everyone, (including Kalen,) he admits:

[quoted text, click to view]

It always hurts when you get nasty with the people who are helping you out
and it turns out you were wrong :)

--
----------------------------------------------------------------------------
Louis Davidson - drsql@hotmail.com
SQL Server MVP

Compass Technology Management - www.compass.net
Pro SQL Server 2000 Database Design -
http://www.apress.com/book/bookDisplay.html?bID=266
Blog - http://spaces.msn.com/members/drsql/
Note: Please reply to the newsgroups only unless you are interested in
consulting services. All other replies may be ignored :)
[quoted text, click to view]

Re: SQL Server system date? Louis Davidson
2/22/2005 3:49:48 PM
:)

--
----------------------------------------------------------------------------
Louis Davidson - drsql@hotmail.com
SQL Server MVP

Compass Technology Management - www.compass.net
Pro SQL Server 2000 Database Design -
http://www.apress.com/book/bookDisplay.html?bID=266
Blog - http://spaces.msn.com/members/drsql/
Note: Please reply to the newsgroups only unless you are interested in
consulting services. All other replies may be ignored :)
[quoted text, click to view]

Re: SQL Server system date? Aaron [SQL Server MVP]
2/22/2005 4:15:38 PM
[quoted text, click to view]

If you execute it against an active connection to the server, that returns
the date of the server.

--
http://www.aspfaq.com/
(Reverse address to reply.)

Re: SQL Server system date? Aaron [SQL Server MVP]
2/22/2005 4:23:11 PM
[quoted text, click to view]

And what server/workstation is Query Analyzer's active connection?

[quoted text, click to view]

Please, the people answering your question have been using SQL Server for
years.

--
http://www.aspfaq.com/
(Reverse address to reply.)

Re: SQL Server system date? Aaron [SQL Server MVP]
2/22/2005 4:24:43 PM
[quoted text, click to view]

Well, when you opened Query Analyzer, what server did you connect to?

[quoted text, click to view]

Please stop repeating this silly question.

Re: SQL Server system date? Andy Williams
2/22/2005 4:30:01 PM
[quoted text, click to view]

I think she knows what she's talking about:

http://tinyurl.com/48pdh

Re: SQL Server system date? Aaron [SQL Server MVP]
2/22/2005 4:45:18 PM
[quoted text, click to view]

Yeah, why do you think I took a month off from these groups?

Re: SQL Server system date? Aaron [SQL Server MVP]
2/22/2005 4:53:10 PM
[quoted text, click to view]

If he had said it once, I probably would have just ignored it.

Unfortunately, he repeated the same ignorant question to everyone trying to
help him. To me, that's a little more than obstinate. YMMV.

A

Re: SQL Server system date? David Gugick
2/22/2005 4:54:19 PM
OUCH...


Are you running SQL Server locally?


--
David G.
Re: SQL Server system date? David Gugick
2/22/2005 4:56:36 PM
This is the fastest moving thread I've seen in a long time. Everyone,
get back to work...

--
David Gugick
Imceda Software
www.imceda.com
SQL Server system date? John Baima
2/22/2005 8:57:30 PM
Is there a way to return the system date of the SQL Server? If I use

SELECT GETDATE() as Today

that returns the date of the client workstation. I would like to know
if that date is more than a day before or after the date on the
server. Is there a way to get that date??

-John
Re: SQL Server system date? John Baima
2/22/2005 9:18:42 PM
[quoted text, click to view]

Well, because I actually tried

SELECT GETDATE() as Today

in Query Analyzer. Ran it once, looked at the results. Changed my
system date, ran it again and observed. If you can do this and it does
not change, I would be interested to know. Did you really try this or
are you just reading the docs???

Re: SQL Server system date? John Baima
2/22/2005 9:19:14 PM
[quoted text, click to view]

Try

SELECT GETDATE() as Today

in Query Analyzer. I ran it once, looked at the results. Changed my
system date, ran it again and observed. If you can do this and it does
not change, I would be interested to know. Did you really try this or
are you just reading the docs???

Re: SQL Server system date? John Baima
2/22/2005 9:20:40 PM
[quoted text, click to view]


Please explain, I'm not sure what you mean. I actually tried

SELECT GETDATE() as Today

in Query Analyzer. Ran it once, looked at the results. Changed my
system date, ran it again and observed. If you can do this and it does
not change, I would be interested to know. Did you really try this or
are you just reading the docs???

Re: SQL Server system date? John Baima
2/22/2005 9:29:09 PM
[quoted text, click to view]


My apologies. Really. I thought that I was connected to the company
SQL Server, but I was actually connected to my local SQL Server! It's
hard doing good work when being retarded. Sorry!

Re: SQL Server system date? Jamie Thomson
2/22/2005 9:50:20 PM
I don't think he was necassarily being nasty....maybe slightly obstinate!

As long as John got the right answer in the end that's what's most important
right?

Regards
Jamie Thomson
An SSIS blog - http://blogs.conchango.com/jamiethomson/category/71.aspx


[quoted text, click to view]

Re: SQL Server system date? Kalen Delaney
2/23/2005 2:34:58 PM
Thanks, Andy.
Before I realized that several of you had jumped in on my behalf, I was
ready to reply that I had learned everything I know not by reading the docs,
but by reading "Inside SQL Server", and then give an URL to the book.
:-)

--
HTH
----------------
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com


[quoted text, click to view]

Re: SQL Server system date? Anith Sen
2/23/2005 5:39:32 PM
[quoted text, click to view]

Your Mileage May Vary
http://dictionary.reference.com/search?q=YMMV

--
Anith

Re: SQL Server system date? Kalen Delaney
2/23/2005 7:33:57 PM
And I used the term YMMV when responding to you. ;-)

--=20
HTH
----------------
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com


[quoted text, click to view]
Aaron, sorry for asking a dumb question but I've seen you sign off =
"YMMV" a couple times now but can't figure out what it means. =
Translation?

(At least when I flame Kalen I do it tongue-in-cheek (xref: PAE VS SQL =
Server AWE, in microsoft.public.sqlserver.server, Feb 18 2005). :-P )

--
mike hodgson | database administrator | mallesons stephen jaques
T +61 (2) 9296 3668 | F +61 (2) 9296 3885 | M +61 (408) 675 907
E mailto:mike.hodgson@mallesons.nospam.com | W =
http://www.mallesons.com=20



Aaron [SQL Server MVP] wrote:=20
As long as John got the right answer in the end that's what's most
important
right?
=20
If he had said it once, I probably would have just ignored it.

Unfortunately, he repeated the same ignorant question to everyone trying =
to
help him. To me, that's a little more than obstinate. YMMV.

Re: SQL Server system date? Andy Williams
2/24/2005 9:56:54 AM
LOL...

You have to admit, cutting and pasting the same flame three times in the
same thread is not a very good way to earn points around here. ;)



[quoted text, click to view]

Re: SQL Server system date? Mike Hodgson
2/24/2005 10:03:38 AM
Aaron, sorry for asking a dumb question but I've seen you sign off
"YMMV" a couple times now but can't figure out what it means. Translation?

(At least when I flame Kalen I do it tongue-in-cheek (xref: PAE VS SQL
Server AWE, in microsoft.public.sqlserver.server, Feb 18 2005). :-P )

--
*mike hodgson* |/ database administrator/ | mallesons stephen jaques
*T* +61 (2) 9296 3668 |* F* +61 (2) 9296 3885 |* M* +61 (408) 675 907
*E* mailto:mike.hodgson@mallesons.nospam.com |* W* http://www.mallesons.com



[quoted text, click to view]
Re: SQL Server system date? Mike Hodgson
2/24/2005 11:45:49 AM
Ah...it's an American thing. ;-)


[quoted text, click to view]
AddThis Social Bookmark Button