G
Guest
For MS SQL Server...
I am used to declaring local variables in my SQL queries...
Declare @MyInt int, @MyChar varchar(33)
Parameters were idenfitied with a colon...
Where ModDate > :MyDate
But, now that I am stwitching to .NET, the parameters are identified with @
in SqlCommand, so how do I declare local variables in my queries (like in
Query Analyzer)?
Thanks,
Jon
PS: Creating stored procedures on my customers' databases is not an option.
I am used to declaring local variables in my SQL queries...
Declare @MyInt int, @MyChar varchar(33)
Parameters were idenfitied with a colon...
Where ModDate > :MyDate
But, now that I am stwitching to .NET, the parameters are identified with @
in SqlCommand, so how do I declare local variables in my queries (like in
Query Analyzer)?
Thanks,
Jon
PS: Creating stored procedures on my customers' databases is not an option.