Solved

sqlserver + timespan column datatype

Posted on 2007-04-04
3
2,752 Views
Last Modified: 2012-08-13
I'm using sqlserver and I have
One Column in a Table   whose DataType  is Timespan

How can I retrieve  Timespan Column  Value  on the Form using VB.Net

e.g:
txtcode.text=myDataReader("code")
txtname.text=myDataReader("name")
txttimespan.text=myDataReader("timespancolumn")

0
Comment
Question by:sohrabus
3 Comments
 
LVL 18

Accepted Solution

by:
Sham Haque earned 500 total points
ID: 18849248
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=182986&SiteID=1

"SQL Server 2005 does not support timespan datatypes directly.

You can wrap the CLR timespan type using the SQL CLR functionality and provide a cast that accepts the string format..."
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SLQ View not updating 10 47
Save sql query result in sql server 15 25
Database connection opened on a machine 8 37
Mssql SQL query 14 28
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now