Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Set out of range value to a time datatype in sql server 2008

$
0
0

Hi,

I have a variable set to time datatype in SQL server 2008. I need to set a value more than 24 hrs to that. Is there any way? I get an error like Conversion failed when converting date and/or time from character string. .Below is my scenario

declare @QuietBeginTime time
SET @QuietBeginTime  = (SELECT value FROM #RCQD where id=8)---------This has a value like '24:45'
Print @QuietBeginTime

Please help me.


Deepa




Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>