473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Workstation date

Hi all!

Is there any function in SQL that I can use to get current date from
workstation? All functions which I tried (now(), getdate() etc.)
returns current date from server but I need date from workstation.

Regards,

Mirnes Lemes

Jan 31 '06 #1
3 1565
le*****@yahoo.com wrote:
Hi all!

Is there any function in SQL that I can use to get current date from
workstation? All functions which I tried (now(), getdate() etc.)
returns current date from server but I need date from workstation.

Regards,

Mirnes Lemes


You'll have to pass the date in as a parameter from the client end.

--
David Portas, SQL Server MVP

Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.

SQL Server Books Online:
http://msdn2.microsoft.com/library/m...S,SQL.90).aspx
--

Jan 31 '06 #2
Thanks for your response.

First, I have to notice that I use MS Access 2003 as Front-End.

I was affraid that passing date is only way because I constructed other
stored procedures to use view to get some data. In this view I used <=
{ fn NOW() } to limit results and after that I joined all other stored
procedures to this view.

Now I got two problems: I tried to create function which uses @SomeDate
parameter to limit results but I can't get it work.

Another problem is how to pass @SomeDate value when I execute stored
procedure which is joined with this function...

Regards,

Jan 31 '06 #3
le*****@yahoo.com (le*****@yahoo.com) writes:
First, I have to notice that I use MS Access 2003 as Front-End.
I will have to notice that I don't know Access.
Now I got two problems: I tried to create function which uses @SomeDate
parameter to limit results but I can't get it work.
CREATE FUNCTION someorders (@somedate datetime) RETURNS TABLE AS
RETURN (SELECT OrderID, CustomerID
FROM Northwind.dbo.Orders
WHERE OrderDate >= @somedate)
go
select * from someorders ('19980101')
Another problem is how to pass @SomeDate value when I execute stored
procedure which is joined with this function...


Join a procedure with a function?

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Jan 31 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Belinda | last post by:
Hello All I want to install the NT 4.0 Option pack to install the IIS web server. Does the option pack install to get the web server working on my Windows NT workstation running SP6a work. I...
0
by: CartmanLabs | last post by:
Not so long ago, I was able to run MS SQL 7 Server on NT 4.0 Workstation. I am trying to get this Dev Environment Going. There was a simple work around that allowed the Server Edition. to be...
10
by: Zeng | last post by:
I just realized that there are 2 modes for garbage collection modes: server gs and workstation gs. Would someone know how I can go about changing the mode for my web application written in C#? I...
2
by: Steve M | last post by:
A few users today received the message "The trust relationship between this workstation and the primary domain failed" on their web browser while using an ASP.NET web app. The problem went away...
3
by: Hughsie | last post by:
Hi I have created an installation package for my app and I have installed the application onto another machine together with the framework and the correct MDAC version. The problem is when I...
2
by: Phil Galey | last post by:
I have an application written in VB.NET, running on Windows 2000 SP 3. It uses a process object and AppActivate, followed by SendKeys commands, to control a running QuarkXPress application. On...
2
by: tricard | last post by:
Good morning, I am writing code to create a packing list number that is based on the date entered from the workstation that the user is on. However, I do not know how to determine the date...
11
by: Max Vit | last post by:
I have deployed few Access apps splitting it in Front End and Back End. Our environment uses Win XP SP2 for clients, Win 2k3 for servers and Access 2003. The max. number of clients is about 50...
12
by: Bob Cramer | last post by:
I'm a developer using XP Pro for developing business apps with Visual Studio.NET and SQL Server. My current workstation is a few years old and uses a single IDE drive. I'm looking to build a new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.