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)
 Your sp_ParseArray Sproc

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-12-04 : 09:17:51
James Glover writes "Hello,
First let me say, thanks for this stored procedure. I is rather
ingenious. But I do have a question about it.

Can you dynamically build a SELECT statement in the stored procedure
with this? By this, I mean if a user was to pass 3 values to the stored
procedure, can I take those three values and dynamically build the
statement so it can say "... WHERE ColumnName LIKE '%@array_value%' AND
ColumnName LIKE '%@array_value%'. Then execute the sql statement.

Not sure that this can be done. Any help you can give would be greatly
appreciated.

Thanks,
James Glover"
   

- Advertisement -