----------------------------------------------------------- New Message on MumbaiUserGroup
----------------------------------------------------------- From: Star_Venkat Message 1 in Discussion Know about SQL_Variant: If we are unable to predict the datatype, then we will be proceeding with sql_variant datatype. Its used to store data of an unspecified or inconsistant type. Or to store data of almost any SQL Server datatype. Declaration of sql_variant type Declare @variant1 sql_variant Declare @variant2 sql_variant Declare @MyInt int Declare @MyDatetime datetime In the above code i have declared two variables @MyInt an integer type,@MyDatetime a datetime type. Am assigning the values for these two variables. Set @MyInt = 37 Set @MyDatetime = '2/18/02' Am trying to assign the integer variable to @variant1 and Datetime variable to @variant2. Select @variant1 = @MyInt, @variant2 = @MyDatetime Regards, Venkatesan Prabu. J ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
