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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 SQL - Create Function....query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-09-28 : 07:21:12
Amit writes "Q. Can we use newid() function in the user defined function ?
- if it is then how to be
- if not then how to generate functionality like newid ?"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2006-09-28 : 07:22:15
1. No, and
2. Why create a new function that does the same thing as an existing one?

Can you explain what you're trying to accomplish, and why you can't use NEWID() for the purpose?
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-09-28 : 08:00:53
You cant use non-deterministic functions like Getdate(), Newid() in a Function
Give us more details on what you are trying to do



Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -