Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.
CREATE FUNCTION [dbo].[fnGetDataTypes] (@ColumnName VARCHAR(50),@TableName VARCHAR(50)) RETURNS BIT WITH EXECUTE AS CALLER AS BEGIN DECLARE @DataType VARCHAR(25) SET @DataType=(SELECT st.name as UserType FROM dbo.syscolumns c INNER JOIN dbo.systypes st ON st.xusertype = c.xusertype INNER JOIN dbo.systypes bt ON bt.xusertype = c.xtype WHERE c.id = OBJECT_ID(@TableName) and c.name=@ColumnName ) RETURN @DataType END
Join the community of 500,000 technology professionals and ask your questions.