sql server 2005 - Stored procedure inside a insert statement -


I am trying to generate random data for my SQL server database. Ive created a stored procedure, which takes the length of the string that is generated, but the problem is that it does not allow me to call within the included statement.

  Enter the table 1 (varchar_data, int_data) value ((sp_GenerateRandomString4), CAST (rand (* 10 ANNT)% 6 + 1  

Also do not work

  Enter in Table 1 (select varchar_data, int_data) ((sp_GenerateRandomString4), CAST (RAND (* 10 AS INT)% 6 + 1)  

You use user-defined functions instead of a stored procedure A stored procedure can not be used in the expression, but can not be used. Es.

can be found at a good start here:


Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

c# - ListView onScroll event -

c - Linux mmap() error -