Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Populate password field
Message
 
 
To
30/12/2002 10:44:24
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, United States
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00736584
Message ID:
00736617
Views:
8
You'll have to create temp table with structure that matches SP's result set first. For example, assuming that 'GenRand' SP returns integer,
CREATE TABLE #temp1 ( RandPass int  )
INSERT INTO #temp1 
	EXECUTE ('GenRand')
SELECT RandPass 
	FROM #temp1
DROP TABLE #temp1
>I would like to populate a password field in a table with a randomly generated password. I have a sp that generates the password, but cannot figure out how to use it in an INSERT statement. I tried to create a UDF but cannot use RAND() in it.
>
>TIA
>
>John
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform