>I execute a stored proc...
>exec master.dbo.xp_getnetname
>and the result is put in the window panel (grid)
>but I wonder how I can programmatically work with the result?
>In fact I want to get the current server name, but the
>command select @@servername return null value. Any idea?
If you didn't know the server name how you connect to it?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.