Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Setting variable

 
   Database Help (Home) -> Notification Services RSS
Next:  SQL Server Agent - startup account  
Author Message
rahavard

External


Since: Jan 11, 2004
Posts: 1



(Msg. 1) Posted: Sun Jan 11, 2004 11:04 am
Post subject: Setting variable
Archived from groups: microsoft>public>sqlserver>notificationsvcs (more info?)

I have a script that read some values from tables to variable at runtime.How
can i get this values directly
or how can i declare global variables.
Fo example :
Declare @SQLStr varchar(500),
@IntVal Int,
@Table Varchasr(50)
Set @Table='Northwind.employee'
Set @SQLStr='Select @IntVal=ID from ' + @Table
Exec(@SQL)

 >> Stay informed about: Setting variable 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> Notification Services All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]