Hi
Can someone please tell me what is done upon creation of a SQL Server 2k stored procedure in terms of any sort of compilation?
I have a stored proc that builds its own SQL based on the params its given and i'm concerned that any optimisation that normally takes place at creation time cannot possibly take place as the SQL is contained in strings (and ultimately EXEC'd). Or is there no such optimisation?
Many thanks in advance,
Julian
Can someone please tell me what is done upon creation of a SQL Server 2k stored procedure in terms of any sort of compilation?
I have a stored proc that builds its own SQL based on the params its given and i'm concerned that any optimisation that normally takes place at creation time cannot possibly take place as the SQL is contained in strings (and ultimately EXEC'd). Or is there no such optimisation?
Many thanks in advance,
Julian